Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by Django 5.2.11 on 2026-03-13 13:48

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("gene2phenotype_app", "0017_create_new_user_group"),
]

operations = [
migrations.DeleteModel(
name="GenCCSubmission",
),
]
34 changes: 0 additions & 34 deletions gene2phenotype_project/gene2phenotype_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,40 +816,6 @@ class Meta:
]


### Table to keep track of GenCC submissions ###
class GenCCSubmission(models.Model):
"""
Store the info when the record was submitted to GenCC.
- id: primary key
- submission_id: genCC ID associated with the G2P record
- old_g2p_id: internal G2P ID in the old system (only relevant for submissions with the old data)
- g2p_stable_id: new G2P stable ID
- date_of_submission: date when record was submitted to GenCC
- type_of_submission: 'create' if we submitted a new G2P record to GenCC or 'update' if we updated an existing G2P record in GenCC
"""

SUBMISSION_CHOICES = [
("create", "Create"),
("update", "Update"),
]
id = models.AutoField(primary_key=True)
submission_id = models.CharField(max_length=64)
old_g2p_id = models.IntegerField(null=True, default=False)
g2p_stable_id = models.ForeignKey(
"G2PStableID", on_delete=models.PROTECT, db_column="g2p_stable_id"
)
date_of_submission = models.DateField(null=False)
type_of_submission = models.CharField(
max_length=50, choices=SUBMISSION_CHOICES, default="create"
)

class Meta:
db_table = "gencc_submission"


###################


### Legacy data ###
class Organ(models.Model):
id = models.AutoField(primary_key=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@

from .meta import MetaSerializer

from .gencc_submission import CreateGenCCSubmissionSerializer, GenCCSubmissionSerializer

from .mined_publication import (
LGDMinedPublicationSerializer,
LGDMinedPublicationListSerializer,
Expand Down

This file was deleted.

19 changes: 0 additions & 19 deletions gene2phenotype_project/gene2phenotype_app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,25 +254,6 @@ def perform_create(self, serializer):
path("create/panel/", views.PanelCreateView.as_view(), name="panel_create"),
### Meta information ###
path("reference_data/", views.MetaView.as_view(), name="get_reference_data"),
### GenCC submission  ###
path(
"gencc_create/", views.GenCCSubmissionCreateView.as_view(), name="create_gencc"
),
path(
"unsubmitted_stable_ids/",
views.GenCCSubmissionView.as_view(),
name="unsubmitted_stable_ids",
),
path(
"later_review_date/",
views.StableIDsWithLaterReviewDateView.as_view(),
name="later_review_date",
),
path(
"gencc_deleted_records/",
views.GenCCDeletedRecords.as_view(),
name="gencc_deleted_records",
),
### Activity logs ###
path("activity_logs/", views.ActivityLogs.as_view(), name="activity_logs"),
]
7 changes: 0 additions & 7 deletions gene2phenotype_project/gene2phenotype_app/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@
MergeRecords,
)

from .gencc_submission import (
GenCCSubmissionCreateView,
GenCCSubmissionView,
StableIDsWithLaterReviewDateView,
GenCCDeletedRecords,
)

from .phenotype import (
AddPhenotype,
PhenotypeDetail,
Expand Down

This file was deleted.

Loading