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

Add method for metadata keys to be unset back to their default values #650

Open
godind opened this issue Jan 19, 2023 · 1 comment
Open

Comments

@godind
Copy link

godind commented Jan 19, 2023

This is about manipulating metadata (baseDeltas.json) using PUT.

Currently, there is no mechanism to unset a key. This limits our ability to set metadata keys back to their default values once the key is present in baseDeltas.json.

For example:
We can, for a given path meta, use PUT to update displayName and:

  1. Create/update the key with a given string value
  2. We can set the value to an empty string ''
  3. We can (not sure if supported yet) set value to null to indicate no value should be use

But we cannot remove the key, which would effectively unset the key and have said metadata key go back to its default value.

I think sk could have plugin that exposes metadata keys using a thread save jsonPatch mechanism, or do we already have something similar?

@godind
Copy link
Author

godind commented Mar 6, 2024

Simplified and revised report.

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

No branches or pull requests

1 participant