Skip to content

context plus utc#1328

Merged
utnapischtim merged 10 commits intoinveniosoftware:masterfrom
utnapischtim:context-plus-utc
Feb 3, 2026
Merged

context plus utc#1328
utnapischtim merged 10 commits intoinveniosoftware:masterfrom
utnapischtim:context-plus-utc

Conversation

@utnapischtim
Copy link
Copy Markdown
Contributor

  • refactor(schema): remove usage of object_key
  • refactor: migrate to context_schema
  • fix(chore): DeprecationWarning stdlib

* 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
* 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
@utnapischtim utnapischtim merged commit c877d82 into inveniosoftware:master Feb 3, 2026
4 of 16 checks passed
@utnapischtim utnapischtim deleted the context-plus-utc branch February 3, 2026 06:34
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.

1 participant