Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FolderData: Expose repository API on top-level namespace #6150

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Oct 16, 2023

In 8293e45, the Node interface was refactored to move the API of the repository to the base.repository namespace. The original methods would be forwarded with a deprecation message being printed.

Although this made sense for most node types, in an effort to clean up the node interface which was overpopulated, for the FolderData the repository interface is the main interface and it doesn't make sense to force the users to go all the way down to the nested base.repository namespace to access it. Therefore the public API of the repository is restored on the top-level namespace of the FolderData class.

In 8293e45, the `Node` interface was
refactored to move the API of the repository to the `base.repository`
namespace. The original methods would be forwarded with a deprecation
message being printed.

Although this made sense for most node types, in an effort to clean up
the node interface which was overpopulated, for the `FolderData` the
repository interface is the main interface and it doesn't make sense to
force the users to go all the way down to the nested `base.repository`
namespace to access it. Therefore the public API of the repository is
restored on the top-level namespace of the `FolderData` class.
@sphuber sphuber force-pushed the feature/folder-data-api branch 5 times, most recently from a5de98f to 9180b4a Compare October 16, 2023 10:00
@sphuber sphuber merged commit 3e1f873 into aiidateam:main Oct 17, 2023
17 checks passed
@sphuber sphuber deleted the feature/folder-data-api branch October 17, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants