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

Running command python manage.py packages defaults to resetting database #10103

Closed
SDScandrettKint opened this issue Oct 2, 2023 · 1 comment
Assignees

Comments

@SDScandrettKint
Copy link
Member

Arches Version/Branch: All versions.

Describe the bug:
When running the command python manage.py packages (with nothing after and no -o flag) the default action is to run the setup_db function.
Potentially caused by this line: https://github.com/archesproject/arches/blob/6346ab34e10e5cf2331108947e097d8285c183cc/arches/management/commands/packages.py#L82C1-L82C29 as changing it to a different function runs the changed one.

The intended outcome should be to show the same help message as when running python manage.py packages -o.

Example

(env) samuel@DESKTOP:~/testing/v7test/v7test$ python manage.py packages
operation: setup
Drop and recreate the database...

SELECT pg_terminate_backend(pid) FROM pg_stat_activity
    WHERE datname IN ('v7test', 'template_postgis');

DROP DATABASE IF EXISTS v7test;

CREATE DATABASE v7test
    WITH OWNER = postgres
        ENCODING = 'UTF8'
        CONNECTION LIMIT=-1
        TEMPLATE = template_postgis;

deleting index : v7test_terms
... 
@chiatt chiatt added this to pipeline Oct 2, 2023
@chiatt chiatt moved this to 🏗 In Progress in pipeline Oct 3, 2023
@jacobtylerwalls jacobtylerwalls moved this from 🏗 In Progress to 👀 In Review in pipeline Feb 2, 2024
@jacobtylerwalls
Copy link
Member

Fixed in #10577

@github-project-automation github-project-automation bot moved this from 👀 In Review to ✅ Done in pipeline Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants