Skip to content

Commit f53ba96

Browse files
[DUOS-2835][DUOS-2878][risk=no] Use the url dataset property instead of the dbGap version (#2278)
Co-authored-by: aarohinadkarni <[email protected]>
1 parent 0f28492 commit f53ba96

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

src/main/java/org/broadinstitute/consent/http/service/DatasetService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,6 @@ public Study convertDatasetToStudy(User user, Dataset dataset, StudyConversion s
497497
// Handle "URL"
498498
newPropConversion(dictionaries, dataset, "URL", "url", PropertyType.String,
499499
studyConversion.getUrl());
500-
// Handle "dbGAP"
501-
legacyPropConversion(dictionaries, dataset, "dbGAP", "url", PropertyType.String,
502-
studyConversion.getUrl());
503500
}
504501

505502
// Handle "Data Submitter User ID"

src/main/resources/DataSetSample.tsv

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/main/resources/changelog-master.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,6 @@
146146
relativeToChangelogFile="true"/>
147147
<include file="changesets/changelog-consent-2024-04-01-rm-piname.xml"
148148
relativeToChangelogFile="true"/>
149+
<include file="changesets/changelog-consent-2024-04-02-rm-old-dbgap-url.xml"
150+
relativeToChangelogFile="true"/>
149151
</databaseChangeLog>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
3+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
4+
<changeSet id="changelog-consent-2024-03-28-dataset-dac-id-props.xml" author="grushton">
5+
<sql>
6+
-- Remove duplicate properties
7+
DELETE
8+
FROM dataset_property
9+
WHERE property_key IN (SELECT key_id FROM dictionary d WHERE KEY = 'dbGAP')
10+
</sql>
11+
<sql>
12+
-- Remove deprecated property key from dictionary
13+
DELETE
14+
FROM dictionary
15+
WHERE key = 'dbGAP';
16+
</sql>
17+
</changeSet>
18+
</databaseChangeLog>

0 commit comments

Comments
 (0)