Skip to content

Commit

Permalink
feat(3636): track reasons for choosing cloud provider
Browse files Browse the repository at this point in the history
  • Loading branch information
golebu2020 committed Sep 27, 2024
1 parent dcb1a18 commit f9afa9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .bin/copy-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ echo "Most recent file: $recent_file"

# Copy the most recent back file to unarchive into the sandbox database
oc cp "$pod_name:backup/$recent_file" "$tmp_dir/$recent_file"
echo "pltsvc"
mongo-unarchive --uri="mongodb://mongodb:mongodb@localhost:27017/?authSource=admin" --db=pltsvc --local-path="$tmp_dir" # pragma: allowlist secret
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export const up = async (db, client) => {
await Promise.all([
db
.collection('PublicCloudRequestedProject')
.updateMany(
{ $or: [{ providerSelectionReasonsNote: null }, { providerSelectionReasonsNote: { $exists: false } }] },
{ $set: { providerSelectionReasonsNote: '' } },
),
db
.collection('PublicCloudProject')
.updateMany(
{ $or: [{ providerSelectionReasonsNote: null }, { providerSelectionReasonsNote: { $exists: false } }] },
{ $set: { providerSelectionReasonsNote: '' } },
),
]);
};

export const down = async (db, client) => {};

0 comments on commit f9afa9b

Please sign in to comment.