Stream: troubleshooting

Topic: Updating Controlled Vocabularies in Custom Metadata Blocks


view this post on Zulip Henning Timm (Dec 06 2023 at 13:49):

Hi all,
I am currently working on updating a custom metadata block. Specifically I would like to modify a controlled vocabulary. Usually the steps to do that are:

  1. Pass the updated metadata block to Dataverse via the /api/admin/datasetfield/load API endpoint
  2. Update the SOLR schema using the update-fields.sh script and reloading the schema

First Question: Am I right to assume that if I only add an entry to my controlled vocabulary, I can skip step 2, since the SOLR schema isn't affected by this?

Second (unrelated) Question: Assuming, purely hypothetically of course, that I want to fix a typo in the Value column of a controlled vocabulary entry. What is the safest way to do so? I have only used the Value column and have not used identifiers for the CV entries. Is that what identifiers are for or should I have used identifiers in the first place so that I could now edit the Values instead?

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 06 2023 at 13:55):

Yes, you're right about the first point. You can skip it.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 06 2023 at 13:56):

For fixing typos, if it's a typo in a block we ship, you should open a pull request of course! For a custom block, I would maybe edit the database?

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 06 2023 at 13:57):

I fear if you simply load it again you'll have two values: one with a typo and one without.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 06 2023 at 13:57):

You're very welcome to open an issue about this. At the very least we should document what to do.

view this post on Zulip Henning Timm (Dec 06 2023 at 14:11):

Thanks for the fast reply :)
The typo is my fault alone and in my custom block. I will open an issue about this.

view this post on Zulip Philip Durbin ๐Ÿš€ (Dec 06 2023 at 14:47):

Thanks!


Last updated: Oct 30 2025 at 06:21 UTC