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

Check constraint violations on a specific simulationDatasetId if present #1006

Closed
skovati opened this issue Jun 28, 2023 · 1 comment · Fixed by #1013
Closed

Check constraint violations on a specific simulationDatasetId if present #1006

skovati opened this issue Jun 28, 2023 · 1 comment · Fixed by #1013
Assignees
Labels
feature A new feature or feature request simulation Anything related to the simulation domain

Comments

@skovati
Copy link
Contributor

skovati commented Jun 28, 2023

Related problems

After merging #976, the constraintViolations Hasura action now accepts an optional simulationDatasetId. However, this ID only filters the external datasets included in constraint checking, not the simulation results used for checking (which still defaults to the latest simulation).

Describe the feature request

If the sim dataset ID is provided, it would be beneficial to check constraints for that specific simulation dataset ID. This would enable constraint checking on historical simulation results, rather than solely relying on the latest one.

public List<Violation> getViolations(final PlanId planId, final Optional<SimulationDatasetId> simulationDatasetId)
should be changed to retrieve the passed simulationDatasetId if it's nonempty; otherwise, retain the current behavior of defaulting to the latest simulation.

@skovati skovati added feature A new feature or feature request simulation Anything related to the simulation domain labels Jun 28, 2023
@skovati skovati self-assigned this Jun 28, 2023
@github-project-automation github-project-automation bot moved this to Todo in Aerie Jun 28, 2023
@skovati skovati linked a pull request Jul 20, 2023 that will close this issue
@skovati
Copy link
Contributor Author

skovati commented Jul 20, 2023

Closed by #1013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or feature request simulation Anything related to the simulation domain
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants