Skip to content

Conversation

@JakobMiesner
Copy link
Contributor

@JakobMiesner JakobMiesner commented Jul 17, 2025

closes: CERNDocumentServer/cds-ils#1006

tests are failing because it depends on PRs for dependent packages to be merged (e.g. inveniosoftware/invenio-pidrelations#32).
See the PRs in the issue linked above

@JakobMiesner JakobMiesner force-pushed the feature/update-dependencies branch from 1f6994f to 49dbd86 Compare July 18, 2025 12:03
* after the invenio-app update RATELIMIT_STORAGE_URL was renamed to RATELIMIT_STORAGE_URI
* after the flask>=3 update APP_ALLOWED_HOSTS was renamed to TRUSTED_HOSTS
* after the marshmallow 3.13 update `default` was replaced by `load_default`
@JakobMiesner JakobMiesner marked this pull request as ready for review July 18, 2025 15:13
@JakobMiesner JakobMiesner force-pushed the feature/update-dependencies branch from 1cd3756 to 42a3d3b Compare July 22, 2025 15:35
@@ -0,0 +1,103 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

workaround for invenio-theme to use as is. It expects this file to be present

patron_loans = dump(get_loans_by_patron_pid(patron_pid))

patron_profile = UserProfile.get_by_userid(patron_pid).__dict__
del patron_profile["_sa_instance_state"]
Copy link
Contributor

Choose a reason for hiding this comment

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

what was the conclusion for this change? safe to remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the profile is no longer a standalone table, but a JSON column in the users table, it does not have the _sa_instance_state field anymore. The field is something SQLAlchemy adds to ORM instances

@JakobMiesner JakobMiesner force-pushed the feature/update-dependencies branch from 97d9ed5 to 1aa49ca Compare July 31, 2025 09:03
@kpsherva kpsherva merged commit 66f43a6 into inveniosoftware:master Aug 11, 2025
5 checks passed
@JakobMiesner JakobMiesner deleted the feature/update-dependencies branch October 3, 2025 13:06
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.

Upgrade backend dependencies

2 participants