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

uow: import from invenio_db #596

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Conversation

liptakpanna
Copy link
Contributor

Unit of work classes which were not related to Records, Tasks, Indexes were moved to invenio_db: inveniosoftware/invenio-db#175

The goal was that the import would still work from other modules.

@liptakpanna liptakpanna marked this pull request as draft October 1, 2024 13:42
@@ -8,6 +8,8 @@

"""Unit of work.

Classes were moved to invenio-db.

Used to group multiple service operations into a single atomic unit. The Unit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these comments should probably be removed from here to avoid duplication (and one of them getting stale).
Maybe something like: For documentation see ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some parts which are specific to the classes that remained in this module and in invenio_db I modified the comment so it's only about the functionalities that I copied over and can be used from there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I thought it was an exact copy-paste, but I now see that it's been adapted.
I think it's fine, this part of the code did not change much over the years, and people should think about updating if there are every big changes.

@ntarocco ntarocco marked this pull request as ready for review October 1, 2024 15:53
@ntarocco ntarocco merged commit 844365f into inveniosoftware:master Oct 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants