-
Notifications
You must be signed in to change notification settings - Fork 1
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
pycsw_dist fails when using /v1/update endpoint. #187
Comments
See. https://gitlab.met.no/s-enda/pycsw/-/blob/master-met/pycsw/core/repository.py#L312 It looks like the update have two functionalities.
|
The way to solve this is to remove the
Here is an example of a full update from the pycsw testsuite: https://gitlab.met.no/s-enda/pycsw/-/blob/master-met/tests/functionaltests/suites/manager/post/Transaction-dc-02-update-full.xml So I think the update-function in csw_distributor should be more or less the same as the insert-function, but with the |
Fixed and created MR/PR |
Fixed the update-function for pycsw update (#187)
While trying to update parent dataset in dmci, the pycsw_dist fails with exception:
To reproduce:
curl --data-binary "@mmd-xml-dev/arch_b/arch_1/arch_3/c7f8731b-5cfe-4cb5-ac57-168a19a2957b.xml" https://dmci.s-enda-dev.k8s.met.no/v1/update
output:
DEBUG log from DMCI says:
from here we can see that both
file_dist
andsolr_dist
sucessfully updates the file, butpycsw_dist
fails.here is the log from pycsw when dmci fails with the log above:
The text was updated successfully, but these errors were encountered: