Skip to content
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

Update schema.xml in-place #7903

Closed
Kris-LIBIS opened this issue May 26, 2021 · 0 comments · Fixed by #8130
Closed

Update schema.xml in-place #7903

Kris-LIBIS opened this issue May 26, 2021 · 0 comments · Fixed by #8130

Comments

@Kris-LIBIS
Copy link
Contributor

With PR #7865 in place, the updateSchemaMDB.sh script no longer works as intended. It used to update the Solr schema by updating two XML files that were included in the schema.xml. Issue #7864 indicated that this update mechanism did not work and after the fix, the schema.xml file should be updated manually.

In order to restore the fully 'automatic' update without breaking #7864, the updateSchemaMDB.sh script should modify the schema.xml directly instead of updating the included XML files.

poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 4, 2021
As of IQSS#7865 (merged DV 5.6), the Solr Schema XML file
did not include <copyField>s for metadata schemas from
an external file anymore. Instead they had been included.

This broke the updateSchemaMDB.sh script, which is IQSS#7903

This commit will remove the other include construction for
<field> definitions (plus remove the file) and include the
content directly in the schema.

It also introduced some docs about the whereabouts of these
fields plus (most importantly) INCLUDE GUARDS. These are
going to be used for new scripting of half-automatic index
management.

IQSS#7903
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 4, 2021
Removing the old updateSchemaMDB.sh script, as it's broken.
It's also of limited use for the container use case it had been
invented for.

Replacing with a script capable of taking the solr schema bits
and stuffing it into a prepared schema.xml file.

IQSS#7903
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 4, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 4, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 4, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 4, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021


Inside update-fields.sh we detect if a STDIN is given as a pipe via
testing if FD 0 (stdin) is not attached to a terminal.
This does not work inside a Github Action, so skip this for now till
we see a problem or find a better solution.
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021


Inside update-fields.sh we detect if a STDIN is given as a pipe via
testing if FD 0 (stdin) is not attached to a terminal.
This does not work inside a Github Action, so skip this for now till
we see a problem or find a better solution.
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021


Inside update-fields.sh we detect if a STDIN is given as a pipe via
testing if FD 0 (stdin) is not attached to a terminal.
This does not work inside a Github Action, so skip this for now till
we see a problem or find a better solution.
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021


Inside update-fields.sh we detect if a STDIN is given as a pipe via
testing if FD 0 (stdin) is not attached to a terminal.
This does not work inside a Github Action, so skip this for now till
we see a problem or find a better solution.
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 5, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 26, 2021
poikilotherm added a commit to poikilotherm/dataverse that referenced this issue Oct 26, 2021
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 a pull request may close this issue.

1 participant