-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1558 from SciCatProject/master
Release 11-12-2024
- Loading branch information
Showing
18 changed files
with
1,420 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"generatorName": "typescript-angular", | ||
"npmName": "@scicatproject/scicat-sdk-ts", | ||
"npmName": "@scicatproject/scicat-sdk-ts-angular", | ||
"ngVersion": "16.2.12", | ||
"withInterfaces": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"generatorName": "typescript-fetch", | ||
"npmName": "@scicatproject/scicat-sdk-ts-fetch", | ||
"supportsES6": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
/dist | ||
/node_modules | ||
functionalAccounts.json | ||
datasetTypes.json | ||
proposalTypes.json | ||
loggers.json | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"Custom": "custom" | ||
} |
31 changes: 31 additions & 0 deletions
31
migrations/20241202105905-multiple-principal-investigators.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
async up(db, client) { | ||
await db.collection("Dataset").updateMany({}, [ | ||
{ | ||
$set: { | ||
principalInvestigators: ["$principalInvestigator"], | ||
}, | ||
}, | ||
]); | ||
|
||
await db | ||
.collection("Dataset") | ||
.updateMany({}, { $unset: { principalInvestigator: "" } }); | ||
}, | ||
|
||
async down(db, client) { | ||
await db.collection("Dataset").updateMany({}, [ | ||
{ | ||
$set: { | ||
principalInvestigator: { | ||
$arrayElemAt: ["$principalInvestigators", 0], | ||
}, | ||
}, | ||
}, | ||
]); | ||
|
||
await db | ||
.collection("Dataset") | ||
.updateMany({}, { $unset: { principalInvestigators: "" } }); | ||
}, | ||
}; |
Oops, something went wrong.