Skip to content

fix(sdf): Preserve default values when vivifying an attribute path #6470

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

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

jkeiser
Copy link
Contributor

@jkeiser jkeiser commented Jun 23, 2025

Right now, if you set an attribute value using PUT /component/:componentId/attributes (or Luminork), and a parent object has never had a value, all other children under that parent are set to si:unset. This means default values are no longer respected.

This PR fixes vivify() to set only the parent value, giving it parity with what happens when you set a value manually.

How was it tested?

  • New integration test
  • Integration tests pass

In short: 🔗

@jkeiser jkeiser requested a review from zacharyhamm June 23, 2025 22:52
Copy link

github-actions bot commented Jun 23, 2025

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

Scanned Files

None

@jkeiser jkeiser force-pushed the jkeiser/gently-set-attributes branch from 1d01c31 to e143220 Compare June 23, 2025 22:53
@jkeiser jkeiser force-pushed the jkeiser/gently-set-attributes branch from e143220 to 8562a51 Compare June 23, 2025 22:54
@jkeiser jkeiser added this pull request to the merge queue Jun 23, 2025
Merged via the queue into main with commit afc4b92 Jun 23, 2025
10 checks passed
@jkeiser jkeiser deleted the jkeiser/gently-set-attributes branch June 23, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy