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

Change entries.py to support branch and taxonomy name #69

Closed
alexgarel opened this issue Aug 31, 2022 · 0 comments · Fixed by #101
Closed

Change entries.py to support branch and taxonomy name #69

alexgarel opened this issue Aug 31, 2022 · 0 comments · Fixed by #101
Assignees
Labels

Comments

@alexgarel
Copy link
Member

alexgarel commented Aug 31, 2022

We want to edit a taxonomy with a branch name and a taxonomy name.

Change entries.py so that it defines a class (I propose TaxonomyGraph).

The class takes branch (branch name) and taxonomy name as parameters.

Current functions become methods of this class.

So that the caller can do:

taxonomy = TaxonomyGraph(branch_name, taxonomy_name)
taxonomy.get_nodes(...)

Modify those methods to add the branch_name and taxonomy_name labels. First is prefixed by b_, second is prefixed by t_

alexgarel pushed a commit that referenced this issue Nov 7, 2022
- Add multiple labels (to support branch and taxonomy labelling) in parser
- Add multiple labels in unparser and tests
- Changed API endpoints accordingly to support different branches and taxonomies
- Wrapped entries.py in a class for easier use
- Added import functionality
- Added export functionality

fixes: 
- #69 
relates to:
- #71 
- #83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants