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

feat: variable references #1654

Merged
merged 6 commits into from
May 16, 2024
Merged

feat: variable references #1654

merged 6 commits into from
May 16, 2024

Conversation

pd93
Copy link
Member

@pd93 pd93 commented May 12, 2024

This does the following:

  • References can now be used in the base code (no experiments needed)
  • If the "Map Variables" experiment (proposal 1) is enabled, references can be accessed by prefixing with #
    • This is similar to how dynamic variables are prefixed with a $.
  • Adds deprecation warnings for template functions to the deprecations documentation
  • Template functions can now be used in references (ref).
  • Removes json and yaml keys from map variable experiment
    • The same functionality can now be achieved by using ref: fromJson {...}
  • Docs:
    • Removed ref, yaml and json docs from Map Variables 2 experiment doc
    • Added section on ref prefix (#) in Map Variables 1 experiment
    • Added a "References" sections to the "Usage" documentation
    • Added a section on how map variables can technically be created without the map variables experiment in the variables section of the "Usage" documentation.
  • Added tests for refrerences

@pd93 pd93 linked an issue May 12, 2024 that may be closed by this pull request
@pd93 pd93 requested a review from andreynering May 12, 2024 23:41
Base automatically changed from template-function-docs to main May 16, 2024 10:11
@pd93 pd93 merged commit a3fce1c into main May 16, 2024
13 checks passed
@pd93 pd93 deleted the references branch May 16, 2024 15:21
pd93 added a commit that referenced this pull request May 16, 2024
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.

defalt and join not available in ref variables
2 participants