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

Feature: bulk term export and import #8

Open
machawk1 opened this issue Jan 31, 2022 · 3 comments
Open

Feature: bulk term export and import #8

machawk1 opened this issue Jan 31, 2022 · 3 comments
Labels
enhancement Planned new feature

Comments

@machawk1
Copy link
Member

these work in theory but we have no real experience

@machawk1 machawk1 added the enhancement Planned new feature label Jan 31, 2022
@machawk1
Copy link
Member Author

@cr625 Expressed that there is a mechanism to do this on the command line into JSON. How does one do this? Let's give some brief documentation on how to reproduce the process.

Also (this might be a separate ticket), one (e.g., an admin) might want to do this from the web UI.

@cr625
Copy link
Collaborator

cr625 commented Jul 25, 2022

Started this with export terms to json
done from the cli.py file
e.g. # python cli.py exportterms

the export function is defined in admin/data_io.py and the data is exported to app/export

@cr625
Copy link
Collaborator

cr625 commented May 30, 2023

There must be a folder called admin/export in the yamz base directory ../home/cr625/yamz/app/admin/export
if you are in a python environment that has all dependencies installed, typing 'python cli.py exportterms' will generate a json file called terms.json and put it in that directory.

The method is defined in app/admin/data_io.py export_terms() if you want to change the output format or filter it.

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

No branches or pull requests

2 participants