-
Notifications
You must be signed in to change notification settings - Fork 53
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
Validator form #760
Validator form #760
Conversation
# Survey validators | ||
|
||
Survey validators are Python modules that can be added as plugin. It allows users to implement their own validation | ||
logic on a day1 or day2 operation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
against all field of the survey instead of only one single field with with the "field_validator"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to keep field validator ? Maybe we can stop to maintain field validators and tell users to move on survey validators. They are more user friendly and you can use the same code for both UI and API.
If we decide to stop field validators in X months, we should not include a citation here. Need to discuss
if squest_stars_on_github <= 250: | ||
self.fail("Number of stars on Squest is below 250, come back when it's 251") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a really good example :)
|
||
## Fix | ||
|
||
- Hide disabled operations from Instance view |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and the line that correspond to this feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
service_catalog/forms/form_utils.py
Outdated
|
||
from rest_framework.exceptions import ValidationError | ||
|
||
logger = logging.getLogger(__name__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already in the file.
e803787
to
7aad5bb
Compare
79a2a3b
to
1f8b63e
Compare
@@ -341,6 +341,12 @@ Change the format of all date in Squest UI. Based on Python [strftime](https://s | |||
|
|||
Path to form field validation modules. | |||
|
|||
### SURVEY_VALIDATOR_PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add deprecation warning on the other field
31fb639
to
13a14d3
Compare
13a14d3
to
0eba1ea
Compare
No description provided.