Skip to content

Organize config + management command dirs#701

Merged
bact merged 4 commits into
spdx:mainfrom
bact:layout-reorganization
Jul 14, 2026
Merged

Organize config + management command dirs#701
bact merged 4 commits into
spdx:mainfrom
bact:layout-reorganization

Conversation

@bact

@bact bact commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator
  • Config relocation: Renamed the configuration package src/src/ to src/config/, make it less confusing and has more meaningful name; updating related code, tests, workflow, and documentation.
  • Cleanup util relocation: Converted src/app/utils.py into a package and moved the media cleanup script from app/scripts/cleanup.py to app/utils/cleanup_media.py (matching the command name); rename test_cron.py to test_cleanup_media.py.

Follow-up of test suite reorganization.

Rename directories to avoid confusing names like `src/src` and make management command consistent with actual implementation file (`cleanup_media` -> `cleanup_media.py`).

Follow-up of test suite reorganization.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the tests Test cases, test infrastructure label Jul 14, 2026
bact added 2 commits July 14, 2026 14:49
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact
bact requested a review from rtgdk July 14, 2026 13:58

@rtgdk rtgdk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review summary

Clean, thorough rename. All 26 files are consistently updated — no remaining from src.* imports, no leftover app.scripts.cleanup references, supervisor_api.conf and manage.py are both correct, and the utils package is properly initialized with __init__.py. README-PRODUCTION.md and the Dockerfile are unaffected (no Dockerfile exists). One cosmetic nit in wsgi.py; nothing blocking.

Verdict: Approved. Ready to merge.

Comment thread src/config/wsgi.py Outdated
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact
bact merged commit 878866a into spdx:main Jul 14, 2026
2 checks passed
@bact
bact deleted the layout-reorganization branch July 14, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Test cases, test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants