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

GSGGR-209 Territory ownership and order limits #80

Merged
merged 6 commits into from
Dec 24, 2024
Merged

GSGGR-209 Territory ownership and order limits #80

merged 6 commits into from
Dec 24, 2024

Conversation

lanseg
Copy link
Contributor

@lanseg lanseg commented Dec 20, 2024

There are two parameters that configure how the feature works:

  1. MAX_ORDER_AREA environment variable. If the value is set to 0, then any user can order data for area of any square meters. Otherwise, user must either be a data owner for this area to make unlimited orders.
  2. ProductOwnership that says what group owns the given area (e.g. local gemeinde owns the whole town). Owners can make unlimited queries to the area.
  3. If requested area intersects owned and unowned areas, then unowned part should be less than MAX_ORDER_AREA

Possible extensions:
Use area quotas instead ownership, so it would be possible to define how many square kilometers of data can each user query from each area

@lanseg lanseg requested review from danduk82 and jwkaltz December 20, 2024 15:19
@marionb marionb requested a review from maltaesousa December 20, 2024 15:27
Copy link
Member

@jwkaltz jwkaltz left a comment

Choose a reason for hiding this comment

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

LGTM

@lanseg lanseg merged commit 48ba4bc into master Dec 24, 2024
3 checks passed
@lanseg lanseg deleted the GSGGR-209 branch December 24, 2024 09:51
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