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

feat: Introduce Disable Collection #32

Merged
merged 3 commits into from
Feb 11, 2025
Merged

feat: Introduce Disable Collection #32

merged 3 commits into from
Feb 11, 2025

Conversation

A-Behairi
Copy link
Contributor

By assigning a collection to the newly introduced Disable option in the indicator configuration a "disable" role will be added to the collection link on the indicator.
E.g config:

...

Collections:
  - E10a2_agricultural_production_area
  - E10a3_agricultural_production_area_change
  - E10a1_agricultural_production_productive_area
  - E10a9_agricultural_workers
  - E10a5_fruit_production
  - E10a6_harvested_parcels_evolution
  - E10a10_harvesting_evolution_winter_cereal
  - E10a10_2_harvesting_evolution_winter_rapeseed
  - E10a8_winter_cereals

Disable:
  - E10a3_agricultural_production_area_change

the corresponding indicator link:

{
      "rel": "child",
      "href": "./agricultural_production_area_change/collection.json",
      "type": "application/json",
      "roles": [
        "disable"
      ],
     ... 
    },

@A-Behairi A-Behairi requested a review from santilland February 11, 2025 14:03
Copy link
Contributor

@santilland santilland left a comment

Choose a reason for hiding this comment

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

looks good, thank you for the implementation! i will quickly update the docs https://github.com/eodash/eodash_catalog/wiki#indicator

@santilland santilland merged commit bf63d15 into main Feb 11, 2025
3 checks passed
@santilland santilland deleted the disable-collection branch February 11, 2025 16:06
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