Skip to content

Implement scope checking in the existing attribute validator#1298

Draft
thijskh wants to merge 2 commits intomainfrom
feature/move-scope-check-into-attribute-validation
Draft

Implement scope checking in the existing attribute validator#1298
thijskh wants to merge 2 commits intomainfrom
feature/move-scope-check-into-attribute-validation

Conversation

@thijskh
Copy link
Member

@thijskh thijskh commented May 8, 2024

Advantages:

  • makes use of existing Engineblock facility
  • vastly reduces code duplication
  • makes it configurable which attributes are subject to the check
  • makes it configurable which attributes will block vs which will only log
  • makes it possible to display scope violation in the debug page already

Todo:

  • Improve exception message to indicate cause of blockage
  • Update functional tests for changed error screen
  • Integrate into debug page
  • Remove now unused previous code

thijskh added 2 commits May 8, 2024 15:25
Advantages:
- makes use of existing Engineblock facility
- vastly reduces code duplication
- makes it configurable which attributes are subject to the check
- makes it configurable which attributes will block vs which will only log
- makes it possible to display scope violation in the debug page already

Todo:
- Improve exception message to indicate cause of blockage
- Integrate into debug page
- Remove now unused previous code
@baszoetekouw
Copy link
Member

@thijskh Is there an issue that describes what you are trying to achieve here? From the code, I sort of understand what you're trying to do, but I'm not sure which functionality it is that you are replacing here (which seems to be the goal, going from the "Advantages" in the description).

@thijskh
Copy link
Member Author

thijskh commented Mar 18, 2026

Replaces the current separate Scope check filters in the EB processing pipeline which are not very configurable.

Might revive this PR when I would have a working EB development environment.

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.

Error message for invalid Subjectid is confusing

2 participants