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

Custom filters available for the “ResourceBase” opaque filters #8690

Closed
afabiani opened this issue Jan 25, 2022 · 0 comments
Closed

Custom filters available for the “ResourceBase” opaque filters #8690

afabiani opened this issue Jan 25, 2022 · 0 comments
Assignees
Labels
3.3.x feature A new feature to be added to the codebase

Comments

@afabiani
Copy link
Member

Extend the angular based filter types and the CommonModelAPI tastypie resource based filters in order to be able to dynamically create filters shortcuts associated to the obfuscated JSONField, e.g.:

image

Ideally the JSON structure returned by the view in order to build the filter should be something like:

{
  "custom_filters_label": [
    {
      "filter_one": {
        "param_label": {
          "en": "a"
        },
        "param_key": "b",
        "param_value": "c"
      }
    }
  ]
}

For the example above the final JSON would be something like:

{
  "Sensor Parameters": [
    {
      "uom_filter": {
        "param_label": {
          "en": "Unit of Measure"
        },
        "param_key": "uom"
      }
    }
  ]
}
@afabiani afabiani added feature A new feature to be added to the codebase 3.3.x labels Jan 25, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 2, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 2, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 2, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 3, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 3, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 3, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 3, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 4, 2022
afabiani pushed a commit that referenced this issue Feb 4, 2022
… opaque filters (#8733)

* [Fixes #8689] Extend the ResourceBase metadata model with an opaque JSONField

* [Fixes #8689] Fix missing resource_type for new form instances

* [Fixes #8689] Add test and UI fix for doc, maps and geoapps

* [Fixes #8689] Fix flakee8 formatting

* [Fixes #8689] Extra metadata json saved with format

* [Fixes #8689] Refactor validation def, start defining endpoint for API

* [Fixes #8689] Definition of extra-metadata endpoints for resources

* [Fixes #8689] Converting metadata from jsonfield to manytomany relation

* [Fixes #8689] Fix views with new relation and prettify json on UI

* [Fixes #8689] Fix serializer

* [Fixes #8689] Fix custom metadata endpoint, update metadata schema

* [Fixes #8689] Fix flake8 issues

* [Fixes #8689] Remove endpoint from each resorce, keep it only on base resource

* [Fixes #8689] Fix broken tests

* [Fixes #8689] Add metadata filtering in API v1

* [Fixes #8689] Add test for metadata filtering in API v1

* [Fixes #8689] Fix some of broken tests

* [Fixes #8689] fix flake8

* [Fixes #8689] fix tests

* [Fixes #8689] removed typo on settings.py

* [Fixes #8689] fix broken build

* [Fixes #8689] fix minor error on filter convertion

* [Fixes #8690] first implementation for dynamic filtering

* [Fixes #8690] first implementation for dynamic filtering

* [Fixes #8689] fix flake8

* [Fixes #8689] Update default schema structure

* [Fixes #8690] first implementation for dynamic filtering

* [Fixes #8690] Dynamic metadata facet filtering

* [Fixes #8690] Minor fix for geoapps

* [Fixes #8690] Flake8 format fix
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 4, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 4, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 7, 2022
mattiagiupponi added a commit to mattiagiupponi/geonode that referenced this issue Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.3.x feature A new feature to be added to the codebase
Projects
None yet
Development

No branches or pull requests

2 participants