dieterich-lab / scimodom

GNU Affero General Public License v3.0
0 stars 0 forks source link

Add upsert to importer to be called on startup #87

Closed eboileau closed 2 months ago

eboileau commented 2 months ago

Aims/objectives.

Currently, we do https://github.com/dieterich-lab/scimodom/blob/b5cf746b1fdcbf666cb966665ea4f81047000bc3/docker/app_container/files/run_flask.sh#L9

A clear and concise description of todo items.

After https://github.com/dieterich-lab/scimodom/blob/b5cf746b1fdcbf666cb966665ea4f81047000bc3/server/src/scimodom/app.py#L47

add e.g.

setup_service = get_setup_service()
setup_service.upsert_all()

or integrate this service to the importer directory. Add some checks (import), see also config. Keep option as flask CLI.