Skip to content

Commit

Permalink
Merge pull request #2605 from responsible-ai-collaborative/staging
Browse files Browse the repository at this point in the history
Deploy to Production
  • Loading branch information
kepae authored Feb 5, 2024
2 parents 98797bd + a467e6f commit ecd6057
Show file tree
Hide file tree
Showing 19 changed files with 244 additions and 242 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Read node modules from cache
id: cache-nodemodules
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
env:
cache-name: cache-install-folder
with:
Expand All @@ -46,7 +46,7 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4

- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Read node modules from cache
id: cache-nodemodules
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
env:
cache-name: cache-install-folder
with:
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
GATSBY_COMMIT_SHA: ${{ inputs.sha }}

- name: Cache build
uses: actions/cache/save@v3
uses: actions/cache/save@v4
env:
cache-name: cache-build-folder
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Read node modules from cache
id: cache-nodemodules
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
env:
cache-name: cache-install-folder
with:
Expand All @@ -58,7 +58,7 @@ jobs:
install-command: npm ci

- name: Restore build cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
env:
cache-name: cache-build-folder
with:
Expand Down Expand Up @@ -116,6 +116,6 @@ jobs:
REALM_GRAPHQL_API_KEY: ${{ secrets.REALM_GRAPHQL_API_KEY }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
Artificial Intelligence Incident Database
</h1>


<p align="center">
<a href="https://app.netlify.com/sites/aiid/deploys"><img src="https://api.netlify.com/api/v1/badges/9eb0dda2-916c-46f9-a0bd-9ddab3879c6e/deploy-status"></a>
<a href="https://github.com/responsible-ai-collaborative/aiid/actions/workflows/production.yml"><img src="https://github.com/responsible-ai-collaborative/aiid/actions/workflows/production.yml/badge.svg?branch=master"></a>
&nbsp;
<a href="https://github.com/responsible-ai-collaborative/aiid/actions/workflows/staging.yml"><img src="https://github.com/responsible-ai-collaborative/aiid/actions/workflows/staging.yml/badge.svg?branch=staging"></a>
&nbsp;
<a href="https://codecov.io/gh/responsible-ai-collaborative/aiid"><img src="https://codecov.io/gh/responsible-ai-collaborative/aiid/graph/badge.svg?token=SKMVE2G1GU"></a>
&nbsp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@
"apply_when": {
"%%user.custom_data.roles": "admin"
},
"read": true,
"write": true,
"insert": true,
"delete": true,
"search": true,
"additional_fields": {}
"search": true
},
{
"name": "default",
"apply_when": {},
"read": true,
"insert": true,
"delete": true,
"search": true,
"additional_fields": {}
"search": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,118 @@
"apply_when": {
"%%user.custom_data.roles": "admin"
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true,
"additional_fields": {}
"search": true
},
{
"name": "taxonomy_editor",
"apply_when": {
"%%user.custom_data.roles": "taxonomy_editor"
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true,
"additional_fields": {}
"search": true
},
{
"name": "taxonomy_editor_cset",
"name": "taxonomy_editor_csetv0",
"apply_when": {
"%%user.custom_data.roles": "taxonomy_editor_cset"
"%%user.custom_data.roles": "taxonomy_editor_csetv0"
},
"document_filters": {
"write": {
"namespace": "CSETv0"
}
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true
},
{
"name": "taxonomy_editor_csetv1",
"apply_when": {
"%%user.custom_data.roles": "taxonomy_editor_csetv1"
},
"document_filters": {
"write": {
"namespace": "CSETv1"
}
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true
},
{
"name": "taxonomy_editor_csetv1_annotator-1",
"apply_when": {
"%%user.custom_data.roles": "taxonomy_editor_csetv1_annotator-1"
},
"document_filters": {
"write": {
"namespace": "CSETv1_Annotator-1"
}
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true
},
{
"name": "taxonomy_editor_csetv1_annotator-2",
"apply_when": {
"%%user.custom_data.roles": "taxonomy_editor_csetv1_annotator-2"
},
"document_filters": {
"write": {
"namespace": "CSETv1_Annotator-2"
}
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true
},
{
"name": "taxonomy_editor_csetv1_annotator-3",
"apply_when": {
"%%user.custom_data.roles": "taxonomy_editor_csetv1_annotator-3"
},
"document_filters": {
"write": {
"namespace": "CSETv1_Annotator-3"
}
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true
},
{
"name": "taxonomy_editor_gmf",
"apply_when": {
"%%user.custom_data.roles": "taxonomy_editor_gmf"
},
"document_filters": {
"write": {
"namespace": "GMF"
}
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true,
"additional_fields": {}
"search": true
},
{
"name": "default",
Expand All @@ -42,8 +127,7 @@
"write": false,
"insert": false,
"delete": false,
"search": true,
"additional_fields": {}
"search": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"write": false,
"insert": false,
"delete": false,
"search": true,
"additional_fields": {}
"search": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,31 @@
"apply_when": {
"%%user.custom_data.roles": "admin"
},
"fields": {
"flag": {},
"tags": {}
},
"read": true,
"write": true,
"insert": true,
"delete": true,
"search": true,
"additional_fields": {}
"search": true
},
{
"name": "incident_editor",
"apply_when": {
"%%user.custom_data.roles": "incident_editor"
},
"fields": {
"flag": {},
"tags": {}
},
"read": true,
"write": true,
"insert": false,
"delete": false,
"search": true,
"additional_fields": {}
"search": true
},
{
"name": "Add Variant",
"name": "default",
"apply_when": {},
"fields": {
"embedding": {
"write": true,
"read": true
},
"reports": {
"write": true,
"read": true
}
},
"insert": false,
"delete": false,
"search": false,
"additional_fields": {
"write": false,
"read": true
}
},
{
"name": "default",
"apply_when": {},
"fields": {
"flag": {
"write": true,
"read": true
Expand All @@ -65,6 +40,10 @@
"write": true,
"read": true
},
"reports": {
"write": true,
"read": true
},
"tags": {
"write": true,
"read": true
Expand Down
18 changes: 4 additions & 14 deletions site/realm/data_sources/mongodb-atlas/aiidprod/quickadd/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,20 @@
"apply_when": {
"%%user.custom_data.roles": "admin"
},
"fields": {
"date_submitted": {},
"source_domain": {},
"url": {}
},
"read": true,
"write": true,
"insert": true,
"delete": true,
"search": true,
"additional_fields": {}
"search": true
},
{
"name": "default",
"apply_when": {},
"fields": {
"date_submitted": {},
"source_domain": {},
"url": {}
},
"read": true,
"write": true,
"insert": true,
"delete": false,
"search": true,
"additional_fields": {}
"search": true
}
]
}
Loading

0 comments on commit ecd6057

Please sign in to comment.