-
Notifications
You must be signed in to change notification settings - Fork 133
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
Upgrade Inventory to use CKAN 2.11.0 #4861
Comments
Inventory Branch ckan-2-11-0 is pushed with ckan core 2.11.0 and its requirements filled in. The general functionality of Inventory are working. We can add datasets with a publisher. We can export data.json file. Things noticed that are not working:
|
Tracing SAML error stack that results from any attempted login and this is the last line:
Then I found this in the 2.11 changelog: This is the PR: ckan/ckan#7544 |
New error related to NameID.
This SO article points to modifications we might need to make to saml2auth to make the class serializable: https://stackoverflow.com/questions/69234799/typeerror-object-of-type-type-is-not-json-serializable |
Spoke with Fuhu on Monday and we decided to unarchive the GSA's fork of saml2auth plugin, make the tests pass with CKAN 2.11 and then work on integrating it into inventory. To that end, the tests are now configured to be run on demand here: https://github.com/GSA/ckanext-saml2auth/actions/workflows/ci.yml On the latest run, 2.11 fails to start the tests, complaining that https://github.com/GSA/ckanext-saml2auth/actions/runs/12364216015/job/34507036045
|
Updates:
|
This is the PR that breaks ckanext-saml2Auth from running 2.11.1: Removing conftest.py from the extension, as suggested, results in the
|
From action run: https://github.com/GSA/ckanext-saml2auth/actions/runs/12586625210/job/35080860043
|
Following up on this: #4861 (comment) More than likely, the config declaration warnings are due to the newly enforced strict mode, so just a warning and not a red flag: https://docs.ckan.org/en/2.11/maintaining/configuration.html#config-declaration |
Since ckanext-saml2auth is passing the test, giving its integration with ckan-2-11-0 another try. |
Check out this branch for cypress upgrades: GSA/catalog.data.gov#1502 |
Branch https://github.com/GSA/inventory-app/tree/ckan-2-11-0 passed all tests and pushed to Inventory develop. Doing manual QAs. Found saml2 logout issue, it returns 500 on logging out. |
saml logout issue fixed. Pushed to inventory develop for further testing. |
Noticed this datastore/xloader related db error when setting up a fresh instance of inventory with ckan 2.10, or when running 2.11 on existing inventory 2.10 DBs.
The cause of it is that ckan 2.10/2.11 has updated set-permissions.sql script for datastore, but it was fine if the database was originally for ckan 2.9 and later upgraded to 2.10. The error is gone after run updated UPDATE:
Next, focusing on db migration and dataset/resource QA for existing datasets. |
A fresh Inventory with ckan 2.10 was installed on development then get upgraded to 2.11. All inventory functions on the 2.11 are fine. Resources and their API results are as good as existing Inventory (ckan 2.10). Inventory on Prod and Staging are on ckan 2.10 with 2.9 datastore DB. Cant replicate the same setup on Development. Next will upgrade staging to make sure it is fine before prod upgrade. |
Inventory staging upgraded to 2.11 by running |
Great news!!!! |
Deployment will be performed as planned on 2/7 |
Inventory 2.11 verified on development and staging. Release ticket created. |
User Story
Upgrade Inventory to use CKAN 2.11.0
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
ckan_version: "2.11.0"
Sketch
[Notes or a checklist reflecting our understanding of the selected approach]
The text was updated successfully, but these errors were encountered: