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: add variable name validation for flux identifier #19317

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

AlirieGray
Copy link
Contributor

@AlirieGray AlirieGray commented Aug 12, 2020

This PR adds validation to the Variable kv service and to the UI validator to make sure that the name begins with a letter or underscore. This is because Variables should be valid Flux identifiers, as defined by the Flux docs here: https://github.com/influxdata/flux/blob/master/docs/SPEC.md#identifiers

@AlirieGray AlirieGray force-pushed the variable-name-validation branch from 076d51d to 49412a9 Compare August 12, 2020 21:27
@AlirieGray AlirieGray requested review from a team, GeorgeMac and ebb-tide and removed request for a team August 12, 2020 21:28
@AlirieGray AlirieGray force-pushed the variable-name-validation branch 5 times, most recently from 22ab237 to 36d46c5 Compare August 13, 2020 18:03
@AlirieGray AlirieGray force-pushed the variable-name-validation branch from 36d46c5 to 6483ba2 Compare August 13, 2020 18:49
@AlirieGray AlirieGray force-pushed the variable-name-validation branch from 6483ba2 to 9b4fef0 Compare August 21, 2020 17:28
@AlirieGray AlirieGray merged commit 521500b into master Aug 21, 2020
@AlirieGray AlirieGray deleted the variable-name-validation branch August 21, 2020 17:49
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.

2 participants