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

Add requirement-is-satisfied-by-id expression function #127

Open
hawkrives opened this issue Aug 14, 2020 · 0 comments
Open

Add requirement-is-satisfied-by-id expression function #127

hawkrives opened this issue Aug 14, 2020 · 0 comments

Comments

@hawkrives
Copy link
Contributor

hawkrives commented Aug 14, 2020

If a requirement has an "id" field, store it in a new structure on RequirementContext, requirement-state. Then allow the "requirement-is-satisfied-by-id" expression to check ctx.requirement-state, raising an error if the ID doesn't exist yet.

Requirements would need to populate this field when they are audited, I think.

Need to ensure uniqueness on the ID field.

Future optimization: check the full document for any expressions that need this value, and skip setting it if there are none.

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