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

Lots of keywords disconnected from resources #583

Open
giohappy opened this issue Apr 5, 2022 · 1 comment
Open

Lots of keywords disconnected from resources #583

giohappy opened this issue Apr 5, 2022 · 1 comment
Assignees
Labels
C182-SPC-2020-PACIFIC GeoNode This issue requires work on GeoNode investigation

Comments

@giohappy
Copy link
Contributor

giohappy commented Apr 5, 2022

The keywords filter returns a long list of keywords with 0 resources connected.

  1. keywords without resources shouldn't be returned by the keywords endpoint
  2. apparently keywords are never removed when the last resource connected to the keywords isn't removed. Maybe this has always been like this since keywords can be a set controlled by admins. I just want to clarify if this is expected or not.
@giohappy giohappy added GeoNode This issue requires work on GeoNode C182-SPC-2020-PACIFIC labels Apr 5, 2022
@marthamareal
Copy link
Contributor

marthamareal commented Apr 5, 2022

@giohappy i i don't see us managing the removal of keywords manually on deleting resources.

The keywords api is also used on the metadata form when users are assigning/updating keywords.
If we make the api consider only ones with atleast one resource connected, does it mean we will need to have a migration to delete ones without resources since they will not be used anywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C182-SPC-2020-PACIFIC GeoNode This issue requires work on GeoNode investigation
Projects
None yet
Development

No branches or pull requests

2 participants