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

fix(dal): export default values correctly #4060

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

zacharyhamm
Copy link
Contributor

A bit of code left over from the old system (where default values were the attribute value for a prop at the schema variant context) was grabbing the first attribute value and making it the default for props if a component existed on export. This fixes it and fixes the export of default values for strings.

Default values now can only be defined in the asset spec.

@zacharyhamm
Copy link
Contributor Author

bors r+

@si-bors-ng
Copy link
Contributor

si-bors-ng bot commented Jun 28, 2024

🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@si-bors-ng
Copy link
Contributor

si-bors-ng bot commented Jun 28, 2024

👎 Rejected by PR status

@zacharyhamm zacharyhamm force-pushed the zack/fix-default-values-on-export branch from 230d379 to 2920caa Compare June 28, 2024 18:01
A bit of code left over from the old system (where default values were
the attribute value for a prop at the schema variant context) was
grabbing the first attribute value and making it the default for props
if a component existed on export. This fixes it and fixes the export of
default values for strings.

Default values now can only be defined in the asset spec.

Co-Authored-By: Paul Stack <paul@systeminit.com>
@zacharyhamm zacharyhamm force-pushed the zack/fix-default-values-on-export branch from 2920caa to b20aa9d Compare June 28, 2024 18:04
@zacharyhamm
Copy link
Contributor Author

bors r+

@si-bors-ng
Copy link
Contributor

si-bors-ng bot commented Jun 28, 2024

Build succeeded:

@si-bors-ng si-bors-ng bot merged commit fa1e489 into main Jun 28, 2024
8 checks passed
@si-bors-ng si-bors-ng bot deleted the zack/fix-default-values-on-export branch June 28, 2024 18:17
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.

1 participant