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

Make rules valid within a time range #268

Open
etj opened this issue Feb 4, 2025 · 0 comments
Open

Make rules valid within a time range #268

etj opened this issue Feb 4, 2025 · 0 comments
Assignees

Comments

@etj
Copy link
Member

etj commented Feb 4, 2025

We want some rules to be valid

  • after a given date
  • before a given date
  • both of the previous

Use cases examples:

  • allow the access to a single layer only after a given date
  • deny access to a group/user after an expiration date

Implementation:

  • add a datetime field valid_after; if not null, this rule will be evaluated only after the stored date

  • add a datetime field valid_before; if not null, this rule will be evaluated only before the stored date

  • add the date filtering in RuleFilter

  • parse date filter and create criteria accordingly

  • filtering in Services and REST methods

The filtering date will be provided by the requesting client.

@etj etj added the enhancement label Feb 4, 2025
@etj etj self-assigned this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant