Skip to content

[BI-1194] - Upload with timestamps#281

Merged
HMS17 merged 5 commits intodevelopfrom
feature/BI-1194
Nov 29, 2022
Merged

[BI-1194] - Upload with timestamps#281
HMS17 merged 5 commits intodevelopfrom
feature/BI-1194

Conversation

@HMS17
Copy link
Contributor

@HMS17 HMS17 commented Nov 15, 2022

Description

Story: BI-1194 - Upload with timestamps

Updates to enable display of timestamp values in experiment import preview and to ensure that dynamic columns (phenotypes and timestamps) are displayed in the same order as in the import file.

Dependencies

bi-api/BI-1194

Testing

  • Import experiment file with phenotypes and timestamps of both date and date/time values (the latter indicated by TS: ontology term name)

  • Ensure preview screen displays phenotype and timestamp columns and values in same order as file

  • Ensure timestamp columns with date only in file also have time of midnight associated in preview

  • Import experiment file with incorrect timestamp format - error should display

  • Import experiment file with timestamp that doesn't correspond to a phenotype column in the file - error should display

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have create/modified unit tests to cover this change
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to documentation
  • I have run TAF: <link to TAF run>

@HMS17 HMS17 marked this pull request as ready for review November 17, 2022 23:10
@HMS17 HMS17 requested review from a team, davedrp and timparsons and removed request for a team November 17, 2022 23:10
Comment on lines +134 to +135
<p v-if="variable.startsWith('TS:')">{{ props.row.data.observations.filter(observation => observation.brAPIObject.observationVariableName === variable.replace(/TS:\s*/,""))[0].brAPIObject.observationTimeStamp}}</p>
<p v-else>{{ props.row.data.observations.filter(observation => observation.brAPIObject.observationVariableName === variable)[0].brAPIObject.value }}</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest making functions to handle fetching the timestamp and value instead of doing it in line here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a function to handle it instead, seems to work from my quick testing.

@HMS17 HMS17 requested a review from timparsons November 29, 2022 19:25
@HMS17 HMS17 merged commit a0c9cc9 into develop Nov 29, 2022
@HMS17 HMS17 deleted the feature/BI-1194 branch November 29, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants