-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
playground: exporting is always final
The old logic had two different spots where it decided whether or not the concrete boolean should be set. In particular, the first one was based on the output format, presumably since JSON and YAML are only available in functionExport. Instead, derive this boolean from fn being functionExport. Note that we use Final but not Concrete here. We don't want to use Concrete, since that would break "export to CUE" playground examples out there which use incomplete values. A TODO is added to add a reminder with a bit more context. Also apply the concrete boolean consistently for Validate and Syntax; for Syntax it was only being applied when the output format was CUE. Fixes #2417. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Id1d5023ac6304cdfd5fe6c27343021a2c63d98f6 Dispatch-Trailer: {"type":"trybot","CL":1170814,"patchset":2,"ref":"refs/changes/14/1170814/2","targetBranch":"alpha"}
- Loading branch information
Showing
2 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters