Skip to content

Remove deprecated aliases from the renaming of fields to properties - #161

Merged
apdavison merged 2 commits into
HumanBrainProject:masterfrom
apdavison:remove-field-aliases
Oct 17, 2026
Merged

apdavison merged 2 commits into
HumanBrainProject:masterfrom
apdavison:remove-field-aliases

Conversation

@apdavison

@apdavison apdavison commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Version 0.12.0 renamed "fields" to "properties", keeping the old names as deprecated aliases that warn they will be removed in a future release. This PR removes them:

  • the class attributes fields, field_names, required_field_names and existence_query_fields (in fairgraph/registry.py). required_field_names returns the names of all properties, not only the required ones, so it is not a faithful alias for required_property_names anyway.
  • the fairgraph.fields module. It imports fairgraph.properties, which was removed in 0.13.0, so importing it has raised ModuleNotFoundError since then.

Nothing in fairgraph, its tests or its documentation uses these names. The release notes for 0.16.0 list the removals and their replacements.

Remove the fairgraph.fields module and the class attributes fields, field_names, required_field_names and existence_query_fields. The fairgraph.fields module has not worked since 0.13.0, as it imports fairgraph.properties, which no longer exists. The deprecation warnings said that these names would be removed in a future release.
@apdavison
apdavison force-pushed the remove-field-aliases branch from 63f1cd7 to a518532 Compare October 17, 2026 22:04
@apdavison apdavison added this to the 0.16 milestone Oct 17, 2026
@apdavison apdavison added the task Maintenance, reduction of technical debt, software quality improvements, etc. label Oct 17, 2026
@apdavison
apdavison merged commit 35f7f00 into HumanBrainProject:master Oct 17, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in fairgraph development Oct 17, 2026
@apdavison
apdavison deleted the remove-field-aliases branch October 17, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

task Maintenance, reduction of technical debt, software quality improvements, etc.

Projects

Development

Successfully merging this pull request may close these issues.

1 participant