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

ValidationNotes creation control #93

Open
epuzanov opened this issue Jun 8, 2022 · 0 comments
Open

ValidationNotes creation control #93

epuzanov opened this issue Jun 8, 2022 · 0 comments

Comments

@epuzanov
Copy link
Collaborator

epuzanov commented Jun 8, 2022

Some Validators producing a lot of ValidationNotes. Some ValidationNotes including Codes and Names of the substances this can affect the search results. We need to have a possibility to disable creation of specified ValidationNotes. We can achieve this in the 3 different ways:

  1. Add a new 'addNote' paramater to every Validator, like in this PR configurableValidationNotes gsrs-play#50
  2. Add the MESSAGE_TYPE.WARNING[0-9] Levels to messageType. Create a ValidationNotes based on messageType WARNING Level which can be specified in the application configuration.
  3. Add the ValidationNotes Messages Unique Identifier ([Names02], [Superatom01], etc) at the start of the Validation Messages or as a attribute to the GinasProcessingMessage class. Creation of the ValidationNotes can be controlled by the black list of the messages identifiers or by the regex.
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

No branches or pull requests

1 participant