-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into snyk-upgrade-9efc152836b940a0ac52f636fe99af96
- Loading branch information
Showing
638 changed files
with
51,231 additions
and
26,072 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
|
||
--- | ||
"fusion-project-portal": patch | ||
--- | ||
Order and IsLegacy is removed from Onboarded apps. Order is removed from Portal. | ||
|
||
|
||
> [!IMPORTANT] | ||
> This change requires database migration. |
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 @@ | ||
|
||
--- | ||
"fusion-project-portal": minor | ||
--- | ||
Portal administration application. for managing portal configurations |
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 @@ | ||
|
||
--- | ||
"fusion-project-portal": patch | ||
--- | ||
ContextTypes are returned as array of string |
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 @@ | ||
|
||
--- | ||
"fusion-project-portal": patch | ||
--- | ||
Added endpoint to delete a portal |
File renamed without changes.
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,21 @@ | ||
--- | ||
"fusion-project-portal": minor | ||
--- | ||
|
||
feat: add Configuration to Portal domain | ||
|
||
To enable the configuration of pages such as the project page, facility page, and root page, it should be possible to add a route configuration to the portal. | ||
|
||
A configuration model as been added, currently only with a router property (but designed to be exteded if needed in the future) | ||
|
||
The following endpoints has been added: | ||
|
||
- GET /portal/ID/configuration | ||
- PUT /portal/ID/configuration | ||
|
||
In addition the data is now included in the following endpoint: | ||
|
||
- GET /portal/ID | ||
|
||
> [!IMPORTANT] | ||
> This change requires database migration. |
File renamed without changes.
File renamed without changes.
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,6 @@ | ||
|
||
--- | ||
"fusion-project-portal": patch | ||
--- | ||
Endpoint for Apps activated on portal combined with available apps for portal. | ||
Endpoint for Portal-app with reference to contextIds. |
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 @@ | ||
|
||
--- | ||
"fusion-project-portal": patch | ||
--- | ||
Added Fusion cli on build |
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 @@ | ||
|
||
--- | ||
"fusion-project-portal": patch | ||
--- | ||
apps are now on separate build pipeline |
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 @@ | ||
|
||
--- | ||
"fusion-project-portal": patch | ||
--- | ||
Delete app now removes an app from a portal even if the app is contextual or global |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Get Fusion token | ||
description: "Runs a composite step action" | ||
inputs: | ||
client-id: | ||
description: "SP client id" | ||
required: true | ||
tenant-id: | ||
description: "Equinor tenant id" | ||
required: true | ||
resource-id: | ||
description: "Resource id" | ||
required: true | ||
|
||
outputs: | ||
token: | ||
description: "Fusion token" | ||
value: ${{ steps.token.outputs.token }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Login to Azure" | ||
uses: azure/login@v1 | ||
with: | ||
client-id: ${{inputs.client-id}} | ||
tenant-id: ${{ inputs.tenant-id }} | ||
allow-no-subscriptions: true | ||
|
||
- name: "Obtain token for upload" | ||
id: token | ||
shell: bash | ||
run: echo "token=$(az account get-access-token --resource '${{ inputs.resource-id }}' | jq '.accessToken')" >> $GITHUB_OUTPUT |
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Deploy apps CI | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- "client/apps/portal-administration/**" | ||
|
||
permissions: | ||
actions: read | ||
checks: write | ||
contents: read | ||
deployments: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
environment: non-prod | ||
name: Deploy | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Get fusion token | ||
id: "get-fusion-token" | ||
uses: ./.github/actions/get-fusion-token | ||
with: | ||
client-id: ${{secrets.AZURE_SP_FUSION}} | ||
tenant-id: ${{secrets.AZURE_TENANT_ID}} | ||
resource-id: ${{secrets.AZURE_FUSION_SCOPE}} | ||
|
||
- name: Install | ||
run: | | ||
cd client | ||
yarn install | ||
npm i -g @equinor/fusion-framework-cli | ||
cd apps/portal-administration | ||
yarn install | ||
- name: Build | ||
run: | | ||
cd client | ||
yarn build:apps | ||
- name: Deploy | ||
run: | | ||
cd client/apps/portal-administration | ||
yarn bundle | ||
curl -T "app-bundle.zip" -H "Authorization: bearer ${{steps.get-fusion-token.outputs.token}}" -H "Content-Disposition: attachment; filename=app-bundle.zip" -H "Content-Type: application/zip" -X POST --show-error -i --url https://fusion-s-portal-ci.azurewebsites.net/api/apps/portal-administration/versions | ||
- name: Publish | ||
run: | | ||
curl -H "Authorization: bearer ${{steps.get-fusion-token.outputs.token}}" -X POST --show-error -i --url https://fusion-s-portal-ci.azurewebsites.net/api/apps/portal-administration/publish |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: [16.x] | ||
version: [21.x] | ||
env: | ||
commit-author: bot | ||
author-email: [email protected] | ||
|
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ node_modules | |
coverage | ||
# Visual Studio cache/options directory | ||
|
||
.vs/ | ||
.vs/ | ||
todo.md |
Oops, something went wrong.