Skip to content

Commit

Permalink
retroactive support for user-defined labs feature for older projects (#…
Browse files Browse the repository at this point in the history
…97)

* retroactive support for user-defined labs feature for older projects, temporary debugging printouts

* remove debugging printouts
  • Loading branch information
roquej authored Nov 7, 2024
1 parent 8bb4563 commit 4070c66
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 90 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pages/js/duster/new-project/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<!-- <link rel="icon" href="../shared/src/assets/images/favicon.ico"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DUSTER</title>
<script type="module" crossorigin src="./assets/index-5af905ab.js"></script>
<link rel="stylesheet" href="./assets/index-f436fa6e.css">
<script type="module" crossorigin src="./assets/index-1d978ef1.js"></script>
<link rel="stylesheet" href="./assets/index-4f7a9f65.css">
</head>
<body>
<div id="app"></div>
Expand Down
9 changes: 7 additions & 2 deletions pages/js/duster/new-project/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,6 @@ const getDusterMetadata = (metadataUrl:string) => {
scoreOptions.value = resp.data.scores;
clinicalDateOptions.value = resp.data.clinical_dates;
// get lab results metadata
} else {
axios.get(metadataUrl)
.then(function (response) {
Expand Down Expand Up @@ -514,6 +512,13 @@ const getDusterMetadata = (metadataUrl:string) => {
};
const loadEditMode = () => {
// add an empty array for missing user-defined labs to each data collection window
// retroactive support for user-defined labs feature for older projects
projectConfig.initial_design.collectionWindows.forEach((cw: any) => {
cw.data.ud_labs = cw.data.ud_labs ? cw.data.ud_labs : [];
});
initialDesign.value = projectConfig.initial_design;
// transform and load researcher-provided data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<template>

<div class="grid">
<div
v-for="(col, index) in filtered"
Expand Down

0 comments on commit 4070c66

Please sign in to comment.