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

Fix temporalConstraints null check in default effectiveRoles script. #201

Closed
wants to merge 1 commit into from

Conversation

krausvo1
Copy link
Contributor

@krausvo1 krausvo1 commented Oct 7, 2024

The null check was not working in case of object.temporalConstraints === null, which can happen when using e.g. postgres database.

While I was at it I also simplified the constraints processing code.

@pavelhoral
Copy link
Member

pavelhoral commented Oct 7, 2024

This needs to be addressed in repo component because there are multiple places that expect those properties (temporalConstraint and conditions) to have a value or be undefined.

I guess we need to add support to treat DB NULL as undefined... it makes sense to have it that way for JSON based properties as null should be the actual JSON null value.

@pavelhoral
Copy link
Member

I am closing this in favor of #202.

@pavelhoral pavelhoral closed this Oct 8, 2024
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.

2 participants