-
Notifications
You must be signed in to change notification settings - Fork 35
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 #3138 from responsible-ai-collaborative/staging
Deploy to Production
- Loading branch information
Showing
6 changed files
with
58 additions
and
7 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 |
---|---|---|
|
@@ -68,6 +68,10 @@ jobs: | |
E2E_ADMIN_USERNAME: "" | ||
E2E_ADMIN_PASSWORD: "" | ||
ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN: ${{ secrets.GATSBY_ROLLBAR_TOKEN }} | ||
SENDGRID_API_KEY: something | ||
SENDGRID_SENDER_NAME: Test Preview | ||
SENDGRID_SENDER: [email protected] | ||
PROCESS_NOTIFICATIONS_SECRET: sarasa | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4 | ||
|
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 |
---|---|---|
|
@@ -134,6 +134,10 @@ jobs: | |
SHARD_INDEX: ${{ matrix.shardIndex }} | ||
SHARD_TOTAL: ${{ matrix.shardTotal }} | ||
TEST_FOLDER: playwright/e2e-full/ | ||
SENDGRID_API_KEY: something | ||
SENDGRID_SENDER_NAME: Test Preview | ||
SENDGRID_SENDER: [email protected] | ||
PROCESS_NOTIFICATIONS_SECRET: sarasa | ||
|
||
- name: Upload Playwright traces | ||
if: failure() | ||
|
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 |
---|---|---|
|
@@ -89,6 +89,10 @@ jobs: | |
SHARD_INDEX: ${{ matrix.shardIndex }} | ||
SHARD_TOTAL: ${{ matrix.shardTotal }} | ||
TEST_FOLDER: playwright/e2e/ | ||
SENDGRID_API_KEY: something | ||
SENDGRID_SENDER_NAME: Test Preview | ||
SENDGRID_SENDER: [email protected] | ||
PROCESS_NOTIFICATIONS_SECRET: sarasa | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: ${{ !cancelled() }} | ||
|
30 changes: 30 additions & 0 deletions
30
site/gatsby-site/migrations/2024.10.01T23.20.28.remove-null-epoch_date_modified-values.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,30 @@ | ||
const config = require('../config'); | ||
|
||
/** @type {import('umzug').MigrationFn<any>} */ | ||
exports.up = async ({ context: { client } }) => { | ||
// If the incident has "epoch_date_modified" field and it is null, unset it | ||
const incidents_collection = client | ||
.db(config.realm.production_db.db_name) | ||
.collection('incidents'); | ||
|
||
const incidents_epoch_date_modified_results = await incidents_collection.updateMany( | ||
{ epoch_date_modified: null }, | ||
{ $unset: { epoch_date_modified: '' } } | ||
); | ||
|
||
console.log( | ||
`Updated ${incidents_epoch_date_modified_results.modifiedCount} incidents with null epoch_date_modified field` | ||
); | ||
|
||
// If the report has "epoch_date_modified" field and it is null, unset it | ||
const reports_collection = client.db(config.realm.production_db.db_name).collection('reports'); | ||
|
||
const reports_epoch_date_modified_results = await reports_collection.updateMany( | ||
{ epoch_date_modified: null }, | ||
{ $unset: { epoch_date_modified: '' } } | ||
); | ||
|
||
console.log( | ||
`Updated ${reports_epoch_date_modified_results.modifiedCount} reports with null epoch_date_modified field` | ||
); | ||
}; |
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