Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Implement tags field for Additional Metadata "themes" field #430

Open
1 task
starsinmypockets opened this issue Sep 14, 2020 · 4 comments
Open
1 task

Comments

@starsinmypockets
Copy link

starsinmypockets commented Sep 14, 2020

User story

As a data publisher, I want to be able to choose from a list of existing themes, so that I can reduce duplication and so future publishers can use themes I create

Tasks

  • Copy tags field to Additional Metadata "themes" field

Notes

This field should also load CKAN tags with autocomplete

@kimwdavidson
Copy link
Contributor

currently estimated at about an 8, can we break this into smaller tickets?

@anuveyatsu
Copy link

@adborden can we clarify if we just need to copy "tags" to themes field? It's unclear to me because I'm not sure how it's going to work:

  1. Read available tags from CKAN.
  2. Render it for "themes" field (eg, when showing options for autocomplete).
  3. User selects a theme and submits the form.
  4. Selected theme is written to CKAN as "theme" (or "category" as I can see in USMetadata extension).

Now, what happens if theme doesn't exist in list of tags? Should we create a new tag behind the scenes?

@anuveyatsu
Copy link

@adborden other option for me would be creating a separate object from tags in the CKAN which is called themes or categories. Below is what would be AC and tasks for it:

Acceptance criteria

  • When on additional metadata page, I can
    • type in related theme for my dataset
    • select from already existing themes, eg, by searching (autocomplete)
    • create a new theme if it doesn't exist

Tasks

  • Create a new table in the DB, eg, theme where we store theme names
    • Clarify if we need to have human readable versions of the themes, e.g., apples-and-bananas => Apples and bananas
    • Store theme name and title
  • Implement APIs
    • a read API so we can retrieve list of available themes
    • a write API so we can write a new theme into the db
  • Refactor Metadata app

@kimwdavidson kimwdavidson assigned adborden and unassigned anuveyatsu Dec 14, 2020
@kimwdavidson
Copy link
Contributor

@adborden to provide feedback on plan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants