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

[Tagging] Import a Taxonomy ("Bare Bones") #115

Closed
bradenmacdonald opened this issue Sep 21, 2023 · 3 comments
Closed

[Tagging] Import a Taxonomy ("Bare Bones") #115

bradenmacdonald opened this issue Sep 21, 2023 · 3 comments

Comments

@bradenmacdonald
Copy link
Contributor

bradenmacdonald commented Sep 21, 2023

"As a global staff user (instance-level super user), I can import a taxonomy from the taxonomies list page."

Acceptance Criteria

  1. From the taxonomy list page, global staff and org-level admins will see an Import button in the top right.
    Screenshot 2023-09-20 at 5 14 10 PM
  2. Clicking it will open a file dialog that the user can use to select any .json or .csv file. Only .csv or .json files should be selectable.
  3. Prompt the user for a name for the new taxonomy.
    Screenshot 2023-10-06 at 9 45 08 AM
  4. Prompt the user for a description for the new taxonomy.
    Screenshot 2023-10-06 at 9 45 33 AM
  5. The taxonomy will then be imported and automatically linked to the org for which the user is an org-level admin. If the user is an admin of multiple orgs, it will be linked to each org. If the user is global staff (instance-level admin) it will not be linked to any orgs; display a link to the django admin so they can edit that linking themselves.
  6. Global staff they can change the org linking via the Django admin.
  7. If an error occurs, display an alert/toast and put the details in the browser console.
    Screenshot 2023-10-06 at 9 46 33 AM

Developer Notes

  • Implementing any required backend API / REST API is required as part of this story! There is import code on the backend but no REST/upload API.
  • See the accept attribute for how to implement # 2, limit selection to .csv or .json files.
  • The UX will be significantly improved in [Tagging] Set taxonomy metadata during import #116
  • Screenshots above are for convenience - Figma is the most up-to-date source for mockups. The scale of UI elements seen in the screenshots above may be incorrect.
@pomegranited
Copy link

@bradenmacdonald once the taxonomy create/import is successful, do we stay on the Taxonomy List page, or redirect to the new Taxonomy's Detail page?

@bradenmacdonald
Copy link
Contributor Author

once the taxonomy create/import is successful, do we stay on the Taxonomy List page, or redirect to the new Taxonomy's Detail page?

@ali-hugo @jmakowski1123 any preference?

@ali-hugo
Copy link

ali-hugo commented Nov 8, 2023

@bradenmacdonald @pomegranited I think the user should stay on the Taxonomy List page.

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

No branches or pull requests

3 participants