Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename release workspace to "release prep workspace" in user-facing text #661

Merged
merged 2 commits into from
Aug 1, 2024
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
4 changes: 2 additions & 2 deletions gregor_django/gregor_anvil/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ class ReleaseWorkspaceAdapter(BaseWorkspaceAdapter):
"""Adapter for ReleaseWorkspace."""

type = "release"
name = "Release workspace"
description = "Workspaces for release to the general scientific community via dbGaP"
name = "Release prep workspace"
description = "Workspaces for preparing releases for the general scientific community via dbGaP"
list_table_class_view = tables.ReleaseWorkspaceTable
list_table_class_staff_view = tables.ReleaseWorkspaceTable
workspace_data_model = models.ReleaseWorkspace
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 4.2.14 on 2024-08-01 18:14

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('gregor_anvil', '0024_member_upload_groups'),
]

operations = [
migrations.AlterModelOptions(
name='historicalreleaseworkspace',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical release prep workspace', 'verbose_name_plural': 'historical release prep workspaces'},
),
migrations.AlterModelOptions(
name='releaseworkspace',
options={'verbose_name': 'release prep workspace'},
),
]
3 changes: 2 additions & 1 deletion gregor_django/gregor_anvil/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class CombinedConsortiumDataWorkspace(TimeStampedModel, BaseWorkspaceData):


class ReleaseWorkspace(TimeStampedModel, BaseWorkspaceData):
"""A model to track a workspace for release to the scientific community."""
"""A model to track a workspace for preparing data releases for the scientific community."""

phs = 3047
"""dbGaP-assigned phs for the GREGoR study."""
Expand Down Expand Up @@ -285,6 +285,7 @@ class Meta:
fields=["consent_group", "upload_cycle"],
),
]
verbose_name = "release prep workspace"

def get_dbgap_accession(self):
return "phs{phs:06d}.v{v}.p{p}".format(phs=self.phs, v=self.dbgap_version, p=self.dbgap_participant_set)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h2>Combined consortium data workspaces</h2>
{% render_table tables.1 %}
</div>

<h2>Release workspaces</h2>
<h2>Release prep workspaces</h2>
<div class="container">
{% render_table tables.2 %}
</div>
Expand Down