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

[WIP] NotExists #635

Draft
wants to merge 1 commit into
base: 1.3.x
Choose a base branch
from

Conversation

lopezton-anthem
Copy link
Contributor

Description

Introduces an experimental validation that would ideally look like the following.

@Label("Enter a value that does not exist")
@TextBox(postEventOnChange=true)
@NotExists(url = "/p/sample_core/_search?fn=query&where=sample_core.myField.eq('<!#this!>')")
private String myField;

Overview of Changes

N/A

Type of Change

  • New feature
  • Bug fix
  • Refactor/Technical Debt
  • Documentation Update
  • Test case change
  • This change requires a documentation update
  • Other

Test Details

N/A

Additional Notes

N/A

@lopezton-anthem lopezton-anthem requested review from soham-anthem and a team October 2, 2019 21:33
@lopezton-anthem lopezton-anthem self-assigned this Oct 2, 2019
@openanthem-admin
Copy link
Contributor

You did it @lopezton-anthem!

Thank you for signing the Anthem Opensource Software CLA.

@lopezton-anthem
Copy link
Contributor Author

@soham-anthem, Just throwing something out there as a starting point for how to capture this scenario.

Scenario being, clients do not want to see the field as valid when the state of myField is matching a value existing in sample_core at sample_core.myField.

If we go with a rule, or statechangehandler... we have to put the information that the field is considered invalid somewhere in the Param for the UI to pick it up. Is this the right direction?

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