Skip to content

Metadata Attribute Linking#384

Draft
BryonLewis wants to merge 5 commits intomainfrom
metadata-attribute-link
Draft

Metadata Attribute Linking#384
BryonLewis wants to merge 5 commits intomainfrom
metadata-attribute-link

Conversation

@BryonLewis
Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis commented Mar 30, 2026

resolves #373

  • minor fix to the param processing for creating DIVEMetadata from the UI (the button to convert a folder to DIVE Metadata)
  • Added to attributes the possibility of metadataLink which currently is just a string key value and an updateValue. This will be expanded in the future to be more complicated and have conditionals for different data.
  • When updating attributes there is a new function that is called inside useMetadataLinkUpdater that will check and see if there is a metadata link and will update it if possible
    • This updating should properly respond to errors if they happen. Like if the Key doesn't exist or if the key exists but is locked and informs the user to contact the owner/administrator to unlock the field.

TODO:

  • Restructure MetadataLinking so that you can have multiple Updating metadata links with different keys.
    • This means that I can update multiple metadata keys when a value changes
  • Add Conditional logic to updating Metadata Key
    • Some conditional logic looks at the current MetadataKey value and checks if it is lower/greater equal to to determine if the metadata key value should be updated
    • Other logic can look at other attribute values and have some conditions based on their type. I.E only update when "Position" attribute is equal to "L.Colon". Only update when "SampleValue" is >= 20
  • Make it so when editing MetadataLinking for an attribute it can provide existing metadata keys if the editing is done with a linked DIVEMetadataRoot link.
    • This could be some functionality so that as you add new keys and are checking values using conditionals to analyze DIVEMetadata if you are editing in a link that was opened with the DIVEMetadata parameters it will provide some information about the current type and state of keys, or if keys don't exist it will add an option to create and unlock them.
    • This is mostly stuff to make it easier to develop this listing of conditionals that update DIVEMetadata.

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 this pull request may close these issues.

1 participant