Skip to content

feat(medcat-trainer): Meta-task selection in Project Admin UI - #658

Merged
tomolopolis merged 1 commit into
mainfrom
cursor/meta-task-selection-ui-64f6
Nov 2, 2026
Merged

tomolopolis merged 1 commit into
mainfrom
cursor/meta-task-selection-ui-64f6

Conversation

@tomolopolis

Copy link
Copy Markdown
Member

Summary

Adds Meta Annotation Task and Relation Task multi-selects to the /project-admin create/edit form (including project groups), so these no longer need to be attached only via Django admin.

Changes

  • Frontend (ProjectAdmin.vue): load /api/meta-tasks/ and /api/relations/, multi-select on create/edit, include tasks/relations in project and project-group payloads, pre-select MetaCAT-linked tasks when a model pack is chosen
  • Backend (views.py): persist tasks and relations on project-admin create/update; copy relations on clone; shared _parse_m2m_ids helper
  • Docs: project admin + meta annotations guides updated
  • Tests: frontend vitest coverage and Django API create/update/clone coverage

Testing

  • npx vitest run src/tests/views/ProjectAdmin.spec.ts — 7 passed
  • python manage.py test api.tests.test_views.ProjectAdminMetaTaskSelectionTests api.tests.test_views.ProjectAdminCloneTests — 8 passed
Open in Web Open in Cursor 

Allow attaching Meta Annotation and Relation tasks when creating or
editing projects and project groups in /project-admin, including API
persistence on create/update/clone and matching docs/tests.

Co-authored-by: tomolopolis <tomolopolis@users.noreply.github.com>

@mart-r mart-r 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.

Looks good to me

@tomolopolis
tomolopolis merged commit 9733058 into main Nov 2, 2026
11 checks passed
@tomolopolis
tomolopolis deleted the cursor/meta-task-selection-ui-64f6 branch November 2, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants