Hackathon: Initial draft for resource data model#12010
Conversation
|
Here are the key topics worth discussing before moving to implementation: 1. Controlled vocabulary for
|
- Add METADATA and PRIORITY to node semantics table - Expand import file format from 3 to 5 optional columns (add METADATA, PRIORITY) - Add METADATA examples to data file example rows - Fix migration SQL: use RESOURCE_ID (not rd.DISPLAY_NAME) as DISPLAY_NAME - Expand migration SQL to cover all 3 tables (was placeholder comment) - Fix resource_study migration to use CANCER_STUDY_ID as ENTITY_INTERNAL_ID - Clarify GROUP node DISPLAY_NAME = path segment string in importer logic - Update implementation step 3 to mention METADATA and PRIORITY handling Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Entity ID columns are optional — their presence depends on resource scope: - STUDY resources: no PATIENT_ID or SAMPLE_ID - PATIENT resources: PATIENT_ID required, no SAMPLE_ID - SAMPLE resources: both PATIENT_ID and SAMPLE_ID required Entity type is resolved from resource_definition.RESOURCE_TYPE, not column presence. Updated column table and added a study-resource example. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
PR Mismatch FindingsSources reviewed:
1. [Backend + Importer] Mapper queries columns that don't exist in the schemaFiles: Problem: The MyBatis mapper's resource_node.node_type AS "nodeType"
resource_node.parent_id AS "parentId"But The plan (PR #12010) designed the schema with Will cause: SQL runtime error the moment any resource API endpoint is called. Fix: Resolve
|



Fix # (see https://help.github.com/en/articles/closing-issues-using-keywords)
Describe changes proposed in this pull request:
Checks
Any screenshots or GIFs?
If this is a new visual feature please add a before/after screenshot or gif
here with e.g. Giphy CAPTURE or Peek
Notify reviewers
Read our Pull request merging
policy. It can help to figure out who worked on the
file before you. Please use
git blame <filename>to determine thatand notify them either through slack or by assigning them as a reviewer on the PR