Skip to content

Commit

Permalink
[DUOS-2835][DUOS-2878][risk=no] Use the url dataset property instead …
Browse files Browse the repository at this point in the history
…of the dbGap version (#2278)

Co-authored-by: aarohinadkarni <[email protected]>
  • Loading branch information
rushtong and aarohinadkarni committed Apr 4, 2024
1 parent 0f28492 commit f53ba96
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@ public Study convertDatasetToStudy(User user, Dataset dataset, StudyConversion s
// Handle "URL"
newPropConversion(dictionaries, dataset, "URL", "url", PropertyType.String,
studyConversion.getUrl());
// Handle "dbGAP"
legacyPropConversion(dictionaries, dataset, "dbGAP", "url", PropertyType.String,
studyConversion.getUrl());
}

// Handle "Data Submitter User ID"
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/DataSetSample.tsv

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/resources/changelog-master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,6 @@
relativeToChangelogFile="true"/>
<include file="changesets/changelog-consent-2024-04-01-rm-piname.xml"
relativeToChangelogFile="true"/>
<include file="changesets/changelog-consent-2024-04-02-rm-old-dbgap-url.xml"
relativeToChangelogFile="true"/>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
<changeSet id="changelog-consent-2024-03-28-dataset-dac-id-props.xml" author="grushton">
<sql>
-- Remove duplicate properties
DELETE
FROM dataset_property
WHERE property_key IN (SELECT key_id FROM dictionary d WHERE KEY = 'dbGAP')
</sql>
<sql>
-- Remove deprecated property key from dictionary
DELETE
FROM dictionary
WHERE key = 'dbGAP';
</sql>
</changeSet>
</databaseChangeLog>

0 comments on commit f53ba96

Please sign in to comment.