-
Notifications
You must be signed in to change notification settings - Fork 134
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
ckan-php-manager tagging cli script gives 409 error #2413
Comments
We want to check that this is still a problem with catalog 2.8+ before we put effort into fixing it. |
(Iceboxing inside the catalog 2.8 epic for potential review after catalog 2.8+ is live) |
Same issue on Catalog with CKAN 2.8. |
So by hitting the API directly I was able to get to the bottom of this. The test case has a tag, Need to research
|
Turns out there are ~2K tags with a
Splitting on There are also a large number of other bad tag values that could be used that should be cleaned up as well. The api |
Tracked down where all this logic occurs.
I propose we attempt option 1 now (use geodatagov to overwrite the create_package_schema, well documented how to do this), and make a new ticket for option 2 as the long term fix. |
For future, found logic by tracing from the error message backwards:
This last is the key point, either it takes the default or takes the |
Option 1 sounds good, solving the issue without any side effect. Just document it well so that once option 2 is completed and all existing tag fixed, we can remove option1 code. |
This is a messy topic. As a sort of summary, here's what I gather from above,
We already do custom validation in ckanext_usmetadata, I'm not opposed to creating the new feature. I think it has to be decided whether it helps our mission to restrict the tagging capability. It also is a consideration of how quick this bug needs to be fixed. @jbrown-xentity All in all, great find! |
The changes that were made to resolve this ticket:
Since this tagging process is not a heavily utilized feature, we will leave this to be fully live on Py3 on cloud.gov. Attaching to the epic to close once live. |
Verified it is fixed on catalog on cloud.gov. |
Running ckan-php-manager tagging cli script on latest Climate spreadsheet, more than half datasets failed with error message
409: Conflict (e.g. name already exists)
.How to reproduce
assign_climate_test.csv
in./data
folder in your local ckan-php-manager repo directory.$ php cli/tagging/assign_groups_and_tags.php
Expected behavior
Two datasets updated successfully.
Actual behavior
Second dataset updated successfully, but first one gives error:
The log generated in
./results
did not capture the error. It considered both updates successful.The text was updated successfully, but these errors were encountered: