Add Projects (tag) management and ticket→project association#23
Open
Add Projects (tag) management and ticket→project association#23
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
Projectmodel and relationship, and madeTicket.project_idrequired with aProjectrelationship. (apps/dashboard_api/src/models/entities.py)/projectswith admin-only mutations and viewable by all authenticated users, and added project validation to ticket create/update/list endpoints. (apps/dashboard_api/src/api/projects.py,apps/dashboard_api/src/api/tickets.py)0003_projects_table_and_ticket_projectto createprojects, insert defaultGeneral, backfill existing tickets to that project, and add the foreign key constraint. (apps/dashboard_api/alembic/versions/0003_projects_table_and_ticket_project.py)project_idon ticket schemas and newProjectCreate/ProjectUpdate/ProjectOutschemas. (apps/dashboard_api/src/schemas/common.py)apps/dashboard_api/src/main.py)Projectsnav link and a new/projectspage for management with admin CRUD and member read-only behavior, updated tickets list and ticket edit pages to select/show project, and adjusted agents page to hide admin controls from members. (apps/dashboard_web/app/*)project_idwhen creating tickets. (apps/dashboard_api/tests/test_api_smoke.py)Testing
PYTHONPATH=apps/dashboard_api pytest apps/dashboard_api/tests/test_api_smoke.py, and all tests passed.npm --prefix apps/dashboard_web run dev -- --hostname 0.0.0.0 --port 3000and verified the new Projects page visually (screenshot captured).Codex Task