-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release Anonymous and Report Fixes (#245)
* Adds status banner component * Adds outlined variant to status banner * Build storybook files * Build storybook files * Builds storybook * Test Chromatic GitHub Action * Tests branch * Fix for chromatic github action * Removes index.html from feature branch; adds workingdir params to chromatic workflow file * Adds src to install depency command * Removes src from run command * Testing Chromatic regression testing * Finish up status banner * Adds status variant to Status Banner. Fixes colors, outline variant styling. * Tests Chromatic build to feature branch; resizes status banner title as part of test * Finishing touches to status banner * Clean up status banner folder/package.json chromatic script command * Enlargen, bold status banner title for demo * revert back to original * add await to signin * add await to signin * upd TokenService to use issuer token_endpoint * add debug for token svc * finish adding token endpoint to Token service * add server-side rendering API ROOT * refactor the keycloak services * refactor the keycloak services * refactor the keycloak services * fix crashing bug with delete access * refactor the issuer and uma2 services, updates to whitelist * upd cicd deploy with SSR_API_ROOT * Add queries to whitelist * update whitelist * update whitelist * upd whitelist and permissions * upd UI for environment plugins * upd to env plugins for jwt-keycloak template * upd whitelist * better handling of my access requests * refactor the access mgr and credential admin * adj credential issuer retrieval * upd whitelist * cleanup poc manager pages * upd auth profile failure messages * fix error on environment detail * adj authz matrix * upd whitelist and upd business profile handling * upd scope retrieval and consumer list * fix service account list query * upd whitelists * updated data rules with Blob list type to link blob object to Activity * create connectExclusiveOne function to return one record to connect. Updated data rules to use the new function to connect Blob record to Activity record * fix the ci remove to remote feeder deployment * added label list * First pass at new layout * Add new confirmation dialog and wire up deleting namespaces * Handle redirects after delete * Removes storybook build files * Layout revisions. * first shot at a Namespace report * add icon to export report * upd docker compose fix * implement audience client mapper (#219) Implement audience client mapper * minor fix for publishing auth profile with client mapper * add updating unit testing and ghaction for sonar * add updating unit testing and ghaction for sonar * upd testing * upd readme * upd readme * upd readme * upd readme * upd badges * upd services and tests for xlsx report * Fix hardcoded value * First pass at new layout * Add new confirmation dialog and wire up deleting namespaces * Handle redirects after delete * Layout revisions. * Fix hardcoded value * Add new action menu component, expand card component. * Tidy up menu, applications page. * Restyle the header. * Add disclosure rows * Add custom table component with sorting * Tidy up table hover, use empty pane. * Update theme. * Add footer and remove owner column. * Update docs, add new application services component * add hover state, better mock service access * Tidy up new stories content * Tidy up and improve accessibility support * Layout revisions. * Try removing server side props * Fix type error * Fix missing data error * Add back original code. * Update graphql queries * Name query * Check temp ids * Update httplocalhost3000admingraphiql-70d2f3.gql * Add whitespace after * Update indentation * Remove end whitespace * Remove stray log * Add application services query * Fix query spacing * UI tweaks. * Tidy up ghost button focus/active states * Minor button tweaks. * upd reporting * upd whitelist and services * Update ci-feat-sonar.yaml * upd ds api for namespace * upd unit test and services * upd unit test and services * deal with a few code smells * deal with a few code smells * Hide delete if user is not api-owner. * upd report * fix delete namespace error * Remove redunant text from Applications * Remove test text * draft directory changes * drop products without dataset * upd directory typescript error * seed with dataset for gwa * seed with dataset for gwa * seed with dataset for gwa fix * fix directory api error * upd services supporting report * upd kong admin url for feeder feature deploy * fix services report * fix formatting on hosts xls * fix role placement in xls * Add stubbed out initial layout * Tidy up UI components to be wired up to data. * Wire up new api product item component. * report consumer request * upd id reference and breadcrumb link * adj authz matrix for access request page * resolve consumer requests * return to page on logout, better auth and new flow type * return to page on logout, better auth and new flow type * upd feeder context * fix error on plugin validation * fix ability to add pcontrols on pending request * fix ability to add controls on pending request * upd formatting and fix build error * minor linking fix for service access * upd readme coverage badge * upd readme coverage badge * upd build oauth proxy to fix report gen error * upd authz matrix * upd fix for report * upd product item logic * upd product item * upd authz matrix for access manager * upd authz matrix * Fix bug with report and missing credissuer * upd identifiers * small tweak for service access report * small adj for report * fix the activity error * upd yarn lock * upd package/yarn lock * cleanup failing build * upd locks * Re-render the manage namespace modal when selecting different namespace * rollbacked react version to 17.0.1, removed redundant declarations and fixed issue with namespace delete dialog * Update package.json * fix logic for directory anonymous * upd link on anonymous access * upd product edit * upd plugin validation for active env * add dataset to matrix for ns manager * upd plugin check * Add about json * remove the consumer metrics tab on report * move the export-report to a component Co-authored-by: Justin Tendeck <[email protected]> Co-authored-by: Nithin Shekar Kuruba <[email protected]> Co-authored-by: Joshua Jones <[email protected]>
- Loading branch information
1 parent
6002d43
commit 716693e
Showing
34 changed files
with
603 additions
and
362 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
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,34 @@ | ||
name: Sonar Scanner | ||
|
||
on: | ||
push: | ||
branches: [dev,feat/*] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Run Tests | ||
run: | | ||
cd src | ||
npm i | ||
npm test | ||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
10 changes: 10 additions & 0 deletions
10
.github/workflows/scripts/feeder-init/platform-dataset.yaml
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,10 @@ | ||
entity: DraftDataset | ||
record: | ||
id: 'api-gateway-services' | ||
title: 'API Gateway Services' | ||
notes: 'API Gateway Services provide a way to configure services on the API Gateway, manage access to APIs and get insight into the use of them.' | ||
tags: ['gateway', 'kong', 'openapi'] | ||
sector: 'Service' | ||
license_title: 'Access Only' | ||
view_audience: 'Government' | ||
security_class: 'LOW-PUBLIC' |
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 @@ | |
|
||
python scripts/template.py scripts/feeder-init/legal.yaml legal.yaml | ||
python scripts/template.py scripts/feeder-init/platform-authz-profile.yaml platform-authz-profile.yaml | ||
python scripts/template.py scripts/feeder-init/platform-dataset.yaml platform-dataset.yaml | ||
python scripts/template.py scripts/feeder-init/platform-gwa-api.yaml platform-gwa-api.yaml | ||
|
||
while true; do | ||
|
@@ -15,6 +16,7 @@ while true; do | |
sleep 5 | ||
curl --fail -v http://localhost:8080/push -F [email protected] | ||
curl --fail -v http://localhost:8080/push -F [email protected] | ||
curl --fail -v http://localhost:8080/push -F [email protected] | ||
curl --fail -v http://localhost:8080/push -F [email protected] | ||
kill $FWD_PID | ||
break | ||
|
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
sonar.organization=bcgov-oss | ||
sonar.projectKey=aps-portal | ||
|
||
# relative paths to source directories. More details and properties are described | ||
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/ | ||
sonar.sources=aps-portal | ||
sonar.host.url=https://sonarcloud.io | ||
|
||
sonar.sources=src/auth,src/authz,src/batch,src/services | ||
|
||
sonar.javascript.lcov.reportPaths=./src/__coverage__/lcov.info | ||
|
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
8 changes: 8 additions & 0 deletions
8
src/authz/graphql-whitelist/httplocalhost4180managerproducts-a7ee78.gql
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,8 @@ | ||
|
||
query GET($search: String!, $first: int) { | ||
allDatasets(search: $search, first: $first) { | ||
id | ||
name | ||
title | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/authz/graphql-whitelist/httplocalhost4180managerproducts-b3627d.gql
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,38 @@ | ||
|
||
query GET { | ||
allProductsByNamespace { | ||
id | ||
name | ||
description | ||
organization { | ||
id | ||
title | ||
} | ||
organizationUnit { | ||
id | ||
title | ||
} | ||
dataset { | ||
id | ||
name | ||
title | ||
notes | ||
sector | ||
license_title | ||
} | ||
environments { | ||
id | ||
name | ||
active | ||
flow | ||
services { | ||
id | ||
name | ||
host | ||
} | ||
credentialIssuer { | ||
name | ||
} | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/authz/graphql-whitelist/httplocalhost4180managerproducts-fbb712.gql
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,8 @@ | ||
|
||
query GET($search: String!, $first: Int) { | ||
allDatasets(search: $search, first: $first) { | ||
id | ||
name | ||
title | ||
} | ||
} |
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
Oops, something went wrong.