Skip to content

Commit

Permalink
Add display name to status (#282)
Browse files Browse the repository at this point in the history
* Add displayName for sample status, add deprecated annotation
  • Loading branch information
jenniferboedker authored Jan 24, 2022
1 parent eb88575 commit 5d4f47c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ This project adheres to `Semantic Versioning <https://semver.org/>`_.

**Added**

* Add displayName to ``life.qbic.datamodel.samples.Status`` (#282)

**Fixed**

**Dependencies**
Expand Down
61 changes: 48 additions & 13 deletions src/main/groovy/life/qbic/datamodel/samples/Status.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,56 @@ package life.qbic.datamodel.samples;
* The status of an sample in the context of <a href="https://github.com/qbicsoftware/sample-tracking-service">sample-tracking</a>
*/
public enum Status {
SAMPLE_QC_FAIL,
SAMPLE_QC_PASS,
SAMPLE_RECEIVED,
LIBRARY_PREP_FINISHED,
SEQUENCING,
SEQUENCING_COMPLETE,
METADATA_REGISTERED,
WAITING,
PROCESSING,
FAILED_QC,
PROCESSED,
DATA_AVAILABLE,
SAMPLE_QC_FAIL ("Sample QC Fail"),
SAMPLE_QC_PASS ("Sample QC Pass"),
SAMPLE_RECEIVED ("Sample Received"),
LIBRARY_PREP_FINISHED ("Library Prep Finished"),
/**
* @deprecated this is deprecated since 2.16.0 please use {@link #SEQUENCING_COMPLETE} instead
*/
@Deprecated
SEQUENCING ("Sequencing"),
SEQUENCING_COMPLETE ("Sequencing Complete"),
METADATA_REGISTERED ("Metadata Registered"),
/**
* @deprecated this is deprecated since 2.16.0
*/
@Deprecated
WAITING ("Waiting"),
/**
* @deprecated this is deprecated since 2.16.0
*/
@Deprecated
PROCESSING ("Processing"),
/**
* @deprecated this is deprecated since 2.16.0 please use {@link #SAMPLE_QC_FAIL} instead
*/
@Deprecated
FAILED_QC ("Failed QC"),
/**
* @deprecated this is deprecated since 2.16.0
*/
@Deprecated
PROCESSED ("Processed"),
DATA_AVAILABLE ("Data Available"),
/**
* @deprecated this is deprecated since 2.4.0 please use {@link #DATA_AVAILABLE} instead
*/
@Deprecated
DATA_AT_QBIC
DATA_AT_QBIC ("Data at QBiC")

private final displayName

private Status(String displayName){
this.displayName = displayName
}

/**
* Returns to the enum item display name
* @return
*/
String getDisplayName() {
return this.displayName
}

}

0 comments on commit 5d4f47c

Please sign in to comment.