context plus utc#1328
Merged
utnapischtim merged 10 commits intoinveniosoftware:masterfrom Feb 3, 2026
Merged
Conversation
Contributor
utnapischtim
commented
Sep 30, 2025
- refactor(schema): remove usage of object_key
- refactor: migrate to context_schema
- fix(chore): DeprecationWarning stdlib
This was referenced Sep 30, 2025
Closed
af08454 to
e475dae
Compare
e475dae to
333d84f
Compare
333d84f to
d73ae03
Compare
* this change enables migration to marshmallow>=4.0 by fixing deprecation warning about removing context usage
* datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). * the decision was made to move to utc aware timestamps
* The 'context' parameter is deprecated and will be removed in marshmallow 4.0. Use 'contextvars.ContextVar' to pass context instead. * since 'is_self' is stored in self.context but also retrieved from it within the same function, it is not necessary to go over self.context
* get_user method is deprecated, user get_user_by_email/get_user_by_id
d73ae03 to
f73c1ef
Compare
f73c1ef to
6c4c2be
Compare
* the route defined in invenio-requests is not added to the blueprint and since it is not used at the moment it is easier to remove it here * for reference it would be REQUESTS_ROUTES.details
7596756 to
6cfac1e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.