Skip to content

Commit

Permalink
Remove places where the flag influences "hidden" status
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Jul 17, 2023
1 parent a473cd6 commit 451bb93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion followthemoney/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self, schema: "Schema", name: str, data: PropertySpec) -> None:
self.deprecated = as_bool(data.get("deprecated", False))

#: This property should not be shown or mentioned in the user interface.
self.hidden = as_bool(data.get("hidden", self.deprecated))
self.hidden = as_bool(data.get("hidden"))

type_ = data.get("type", "string")
if type_ is None or type_ not in registry.named:
Expand Down
2 changes: 1 addition & 1 deletion followthemoney/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self, model: "Model", name: str, data: SchemaSpec) -> None:

#: Hide this schema in listings.
self.hidden = as_bool(data.get("hidden"), False)
self.hidden = self.hidden and not self.abstract and not self.deprecated
self.hidden = self.hidden and not self.abstract

#: Entities with this type are generated by the system - for example, via
#: `ingest-file`. The user should not be offered an option to create them
Expand Down

0 comments on commit 451bb93

Please sign in to comment.