Skip to content

remove check for acceptableDuration#3735

Closed
khouadrired wants to merge 3 commits intomainfrom
remove-integer-max-value-from-acceptable-duration
Closed

remove check for acceptableDuration#3735
khouadrired wants to merge 3 commits intomainfrom
remove-integer-max-value-from-acceptable-duration

Conversation

@khouadrired
Copy link
Copy Markdown
Contributor

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

// TODO: Remove this check after fixing the acceptableDuration issue on the Powsybl side
acceptableDuration:
limitViolation?.acceptableDuration === MAX_INT32 ? null : limitViolation?.acceptableDuration,
acceptableDuration: limitViolation?.acceptableDuration ?? null,
Copy link
Copy Markdown
Contributor

@antoinebhs antoinebhs Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep this because there are still some MAX INTEGER values in the BD.
This is due to the fact that in powsybl-core, acceptableDuration is an integer. They use the fact that MAX_INTEGER <=> null.
To avoid displaying MAX_INTEGER, we keep this code.

@antoinebhs antoinebhs closed this Feb 18, 2026
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.

3 participants