Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
792ea75
Version bump 5.9 (#4683)
asanchezr Mar 6, 2025
b423030
CI: Bump version to v5.9.0-101.1
github-actions[bot] Mar 6, 2025
86535a3
IS-101.00 Database Schema (#4679)
dfilteau Mar 10, 2025
292ad2a
CI: Bump version to v5.9.0-101.2
github-actions[bot] Mar 10, 2025
acec27e
IS-101.00 Database Schema - Scaffold (#4691)
eddherrera Mar 11, 2025
3ff0d76
CI: Bump version to v5.9.0-101.3
github-actions[bot] Mar 11, 2025
9000668
PSP-10135: IS101 Automation test set changes (#4693)
stairaku Mar 11, 2025
67246a5
CI: Bump version to v5.9.0-101.4
github-actions[bot] Mar 11, 2025
a0e62b9
PSP-10141: Fix text alignment (#4685)
asanchezr Mar 12, 2025
72924e9
CI: Bump version to v5.9.0-101.5
github-actions[bot] Mar 12, 2025
b4fe3ff
HOTIFX: psp-10149 ensure that user overrides are displayed by L&L pro…
devinleighsmith Mar 12, 2025
2899db1
CI: Bump version to v5.9.0-101.6
github-actions[bot] Mar 12, 2025
01b53f5
Merge remote-tracking branch 'upstream/test' into backmerge_test_to_dev
asanchezr Mar 13, 2025
9f02b20
Merge pull request #4700 from asanchezr/backmerge_test_to_dev
asanchezr Mar 13, 2025
08ce34c
CI: Bump version to v5.9.0-101.7
github-actions[bot] Mar 13, 2025
7b8b142
PSP-8716 fix
stairaku Mar 13, 2025
8e7b9ab
Update snapshots
stairaku Mar 13, 2025
8e69e75
PSP-8716: Reduce Size of Cancel/Save buttons panel (#4701)
stairaku Mar 17, 2025
2e799a3
CI: Bump version to v5.9.0-101.8
github-actions[bot] Mar 17, 2025
37ba68a
PSP-10068 : Research Files List View - Search - By PID and PIN (#4702)
eddherrera Mar 17, 2025
3237c0f
CI: Bump version to v5.9.0-101.9
github-actions[bot] Mar 17, 2025
72f036a
PSP-10038 Integrate Vector Tile Layers into PIMS (#4708)
asanchezr Mar 19, 2025
6895d67
CI: Bump version to v5.9.0-101.10
github-actions[bot] Mar 19, 2025
57f7913
PSP-10155 : UI UX Clean Up - File Details tab text is showing lower c…
eddherrera Mar 19, 2025
2281432
CI: Bump version to v5.9.0-101.11
github-actions[bot] Mar 19, 2025
ee09176
PSP-10168 : FT-REG: Acquisition File - Compensation requisition: Some…
eddherrera Mar 19, 2025
e4c74d2
CI: Bump version to v5.9.0-101.12
github-actions[bot] Mar 19, 2025
3409161
Psp 10010 - placeholder endpoint for LTSA integration (#4694)
devinleighsmith Mar 20, 2025
8636cfa
CI: Bump version to v5.9.0-101.13
github-actions[bot] Mar 20, 2025
e48cb9a
PSP-9843 : SPIKE: UI UX Clean Up - Remove the success (green) toasts …
eddherrera Mar 20, 2025
2ba10e9
CI: Bump version to v5.9.0-101.14
github-actions[bot] Mar 20, 2025
9692b66
Merge branch 'bcgov:dev' into PSP-8716
stairaku Mar 20, 2025
495ef94
Changes on Leases automated test cases
stairaku Mar 20, 2025
633fa21
Myfeature etl r5.8 - PIMS_INTEREST_HOLDER FIX (#4712)
ap-quartech Mar 21, 2025
79d9e75
CI: Bump version to v5.9.0-101.15
github-actions[bot] Mar 21, 2025
f47187b
Changes on automation test set
stairaku Mar 21, 2025
0027f38
Merge branch 'PSP-8716' of https://github.com/stairaku/PSP into PSP-8716
stairaku Mar 21, 2025
4637869
Merge branch 'bcgov:dev' into PSP-8716
stairaku Mar 21, 2025
6c5d2c1
PSP-10001 Search based on latitude and longitude coordinates (#4706)
asanchezr Mar 21, 2025
6853dbd
CI: Bump version to v5.9.0-101.16
github-actions[bot] Mar 21, 2025
6d3b9f3
Merge branch 'dev' into PSP-8716
stairaku Mar 21, 2025
97a023e
PSP-10136: Updating leases automated test set IS101 (#4714)
stairaku Mar 21, 2025
ceb6592
CI: Bump version to v5.9.0-101.17
github-actions[bot] Mar 21, 2025
e76f5e4
PSP-7828 : PIMS - Session Time Out Setting (#4713)
eddherrera Mar 24, 2025
2df65cb
CI: Bump version to v5.9.0-101.18
github-actions[bot] Mar 24, 2025
806e4d3
Increment DEV version (#4718)
asanchezr Mar 28, 2025
3a4d573
CI: Bump version to v5.9.0-102.1
github-actions[bot] Mar 28, 2025
188acd7
PSP-10196 : Remove on-prem sonarqube, and all git action references. …
eddherrera Mar 28, 2025
f3fe0b0
CI: Bump version to v5.9.0-102.2
github-actions[bot] Mar 28, 2025
c95bf0f
Merge branch 'bcgov:dev' into PSP-8716
stairaku Mar 31, 2025
6591a96
New automated test cases
stairaku Mar 31, 2025
6351a47
Merge branch 'PSP-8716' of https://github.com/stairaku/PSP into PSP-8716
stairaku Mar 31, 2025
526c555
Merge pull request #4721 from stairaku/PSP-8716
stairaku Mar 31, 2025
ddb63f4
CI: Bump version to v5.9.0-102.3
github-actions[bot] Mar 31, 2025
5ced742
Merge remote-tracking branch 'upstream/test' into backmerge_test_to_dev
devinleighsmith Mar 31, 2025
dbd5bfd
Merge pull request #4724 from devinleighsmith/backmerge_test_to_dev
asanchezr Apr 1, 2025
9c0bded
CI: Bump version to v5.9.0-102.4
github-actions[bot] Apr 1, 2025
0a84d47
Psp 10010 - service/repository implementation. (#4711)
devinleighsmith Apr 1, 2025
9893cac
CI: Bump version to v5.9.0-102.5
github-actions[bot] Apr 1, 2025
0b7a055
IS-102.00 Database Schema (#4716)
dfilteau Apr 1, 2025
0635970
CI: Bump version to v5.9.0-102.6
github-actions[bot] Apr 1, 2025
a67ee8f
IS-101.00 Database Schema - Scaffold (#4726)
eddherrera Apr 1, 2025
3b650d4
CI: Bump version to v5.9.0-102.7
github-actions[bot] Apr 1, 2025
1419227
Changes of PSP-10097 (#4722)
stairaku Apr 1, 2025
00bcf70
CI: Bump version to v5.9.0-102.8
github-actions[bot] Apr 1, 2025
de4b9a5
Psp 10144 (#4717)
devinleighsmith Apr 1, 2025
bf49d6e
CI: Bump version to v5.9.0-102.9
github-actions[bot] Apr 1, 2025
11c2972
PSP-9900 : PIMS service availability notifications (#4674)
eddherrera Apr 1, 2025
642bd2b
CI: Bump version to v5.9.0-102.10
github-actions[bot] Apr 1, 2025
faa5a9e
psp-10178 Increase map native zoom to match new basemap implementatio…
devinleighsmith Apr 2, 2025
bbc03b2
CI: Bump version to v5.9.0-102.11
github-actions[bot] Apr 2, 2025
70f2f6b
PSP-10208: UI UX Clean Up - Larger header (#4725)
stairaku Apr 3, 2025
3491d41
CI: Bump version to v5.9.0-102.12
github-actions[bot] Apr 3, 2025
1e345a7
PSP-10120: Remove the dates from the current forms section- Form 1, 8…
stairaku Apr 3, 2025
027f939
CI: Bump version to v5.9.0-102.13
github-actions[bot] Apr 3, 2025
88db08b
psp-10192 show all properties by plan# when searching. (#4731)
devinleighsmith Apr 3, 2025
c1a6151
CI: Bump version to v5.9.0-102.14
github-actions[bot] Apr 3, 2025
b59ac51
Updated PIMS_EXPROP_OWNER_HISTORY table and processes (#4736)
dfilteau Apr 3, 2025
22d8882
CI: Bump version to v5.9.0-102.15
github-actions[bot] Apr 3, 2025
7927e6f
IS-102.00 Database Schema - Scaffold (#4737)
eddherrera Apr 3, 2025
3df73ba
CI: Bump version to v5.9.0-102.16
github-actions[bot] Apr 3, 2025
1a811e4
PSP-9933 Acquisition - Add a "Physical file details" text field (#4729)
asanchezr Apr 4, 2025
0801804
CI: Bump version to v5.9.0-102.17
github-actions[bot] Apr 4, 2025
1c948c4
PSP-9900 : PIMS service availability notifications (#4739)
eddherrera Apr 4, 2025
9ff40e6
CI: Bump version to v5.9.0-102.18
github-actions[bot] Apr 4, 2025
0f6e64b
PSP-10217 : Green toast message appears when property is added/remove…
eddherrera Apr 4, 2025
8c70e13
CI: Bump version to v5.9.0-102.19
github-actions[bot] Apr 4, 2025
81c4312
PSP-8758 : Property Information Pane: Property Address - Populate “Pr…
eddherrera Apr 4, 2025
46932b1
CI: Bump version to v5.9.0-102.20
github-actions[bot] Apr 4, 2025
333f92b
correct production GHA errors. (#4740)
devinleighsmith Apr 4, 2025
15cfdde
CI: Bump version to v5.9.0-102.21
github-actions[bot] Apr 4, 2025
1496964
Psp 10088 geographic search (#4738)
devinleighsmith Apr 7, 2025
2c67d20
CI: Bump version to v5.9.0-102.22
github-actions[bot] Apr 7, 2025
97ca213
PSP-9900 : Notification service (#4742)
eddherrera Apr 7, 2025
342d0d2
CI: Bump version to v5.9.0-102.23
github-actions[bot] Apr 7, 2025
1afb0ce
PSP-10153 : UI UX Clean Up - Modals are not necessary when user click…
eddherrera Apr 7, 2025
b208907
CI: Bump version to v5.9.0-102.24
github-actions[bot] Apr 7, 2025
c664b75
PSP-10085 : UI UX Clean Up - All the files - related to ticket 9824 (…
eddherrera Apr 7, 2025
18671e4
CI: Bump version to v5.9.0-102.25
github-actions[bot] Apr 7, 2025
25b6da2
PSP-10179: Additional automated test cases (#4743)
stairaku Apr 7, 2025
e9de3dc
CI: Bump version to v5.9.0-102.26
github-actions[bot] Apr 7, 2025
dc552ba
PSP-9900 : Notification services (#4744)
eddherrera Apr 7, 2025
62bcac7
CI: Bump version to v5.9.0-102.27
github-actions[bot] Apr 7, 2025
79c8e05
Psp 10174 - Create admin interface to upload pid list (#4730)
devinleighsmith Apr 8, 2025
27bb64a
CI: Bump version to v5.9.0-102.28
github-actions[bot] Apr 8, 2025
7d9e6e8
PSP-10016 Implement browser telemetry (#4715)
asanchezr Apr 8, 2025
435fe91
CI: Bump version to v5.9.0-102.29
github-actions[bot] Apr 8, 2025
2e3a4de
PSP-10279 : FT:LTSA Service degradation notification is popping up on…
eddherrera Apr 9, 2025
4ec902d
CI: Bump version to v5.9.0-102.30
github-actions[bot] Apr 9, 2025
7bcb984
psp-9820 lease and license team (#4689)
devinleighsmith Apr 9, 2025
64d9394
CI: Bump version to v5.9.0-102.31
github-actions[bot] Apr 9, 2025
631c504
Ignore pids that cannot be translated to integers. (#4746)
devinleighsmith Apr 9, 2025
56ce230
CI: Bump version to v5.9.0-102.32
github-actions[bot] Apr 9, 2025
de76b5a
Updated label (#4752)
FuriousLlama Apr 14, 2025
fbf341c
CI: Bump version to v5.9.0-102.33
github-actions[bot] Apr 14, 2025
a03c819
psp-10148 allow updates to leases with pre-existing retired propertie…
devinleighsmith Apr 15, 2025
54a66fe
CI: Bump version to v5.9.0-102.34
github-actions[bot] Apr 15, 2025
11ca019
psp-10285, psp-10286 ensure that disposition files save correctly. (#…
devinleighsmith Apr 15, 2025
778f7ea
CI: Bump version to v5.9.0-102.35
github-actions[bot] Apr 15, 2025
4671a37
psp-10008 allow lat/lng search on property picker. (#4734)
devinleighsmith Apr 15, 2025
206a40f
CI: Bump version to v5.9.0-102.36
github-actions[bot] Apr 15, 2025
5e35e7e
Psp 10291 - ensure that 000-000-000 pid is searchable. (#4754)
devinleighsmith Apr 15, 2025
ab22b42
CI: Bump version to v5.9.0-102.37
github-actions[bot] Apr 15, 2025
08a9fba
psp-9536 | Multi property (#4749)
FuriousLlama Apr 15, 2025
a159526
CI: Bump version to v5.9.0-102.38
github-actions[bot] Apr 15, 2025
c6efcf4
PSP-9877 Expropriation History section (#4753)
asanchezr Apr 15, 2025
178453c
CI: Bump version to v5.9.0-102.39
github-actions[bot] Apr 15, 2025
e6d2847
PSP-10292: Fix Management Activity Header (#4755)
stairaku Apr 15, 2025
2867df0
CI: Bump version to v5.9.0-102.40
github-actions[bot] Apr 15, 2025
518390c
use "sub" instead of idir_user_guid to identify users. (#4756)
devinleighsmith Apr 15, 2025
aac149d
CI: Bump version to v5.9.0-102.41
github-actions[bot] Apr 15, 2025
ef4311a
Psp 10193 do not allow selecting a property from the map if there are…
devinleighsmith Apr 15, 2025
6df781b
CI: Bump version to v5.9.0-102.42
github-actions[bot] Apr 15, 2025
9d9933f
Psp 10165 - support lower resolution screens (#4723)
devinleighsmith Apr 16, 2025
57e05dc
CI: Bump version to v5.9.0-102.43
github-actions[bot] Apr 16, 2025
0b9c8a1
psp-10298 styling corrections. (#4757)
devinleighsmith Apr 16, 2025
975c667
CI: Bump version to v5.9.0-102.44
github-actions[bot] Apr 16, 2025
6a0d471
fix environment variable name - this way we don't need to make a chan…
devinleighsmith Apr 16, 2025
58ad308
CI: Bump version to v5.9.0-102.45
github-actions[bot] Apr 16, 2025
4e32056
Fix SMCOOKIE auth issue (#4759)
asanchezr Apr 17, 2025
2b44087
CI: Bump version to v5.9.0-102.46
github-actions[bot] Apr 17, 2025
f583afa
Merge pull request #4760 from bcgov/dev
JamesPayer Apr 17, 2025
8faf6e1
psp-10327 ensure that pmbc properties are displayed by plan search ev…
devinleighsmith Apr 24, 2025
1dc5d21
Add checks to leafletlayerlistener to avoid null/undefined layers.
devinleighsmith Apr 24, 2025
20a1152
psp-10283 fix leaflet error when loading certain PIMS urls.
devinleighsmith Apr 24, 2025
3250cc5
implement monkeypatch on leaflet to correct useage of esri vector lay…
devinleighsmith Apr 24, 2025
aa4ba11
bump hotfix version.
devinleighsmith Apr 24, 2025
5c47f9b
PR comments.
devinleighsmith Apr 24, 2025
50ff155
Merge pull request #4768 from devinleighsmith/test
devinleighsmith Apr 24, 2025
4b0f45d
HOTFIX: psp-10364 rename strata lot to common property. (#4786)
devinleighsmith May 5, 2025
52d2820
Merge pull request #4787 from FuriousLlama/bug/psp-10349
FuriousLlama May 7, 2025
07ec2da
hotfix: Psp 10457 (#4796)
devinleighsmith May 9, 2025
4463095
Fixed properties not having a region if search results were more than 15
FuriousLlama May 13, 2025
662c4ae
Fixed properties not having a region if search results were more than…
devinleighsmith May 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 10 additions & 5 deletions .github/.trufflehog3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@ exclude: # exclude matching issues
- coverage/**
- tests/**
- test/**
- "*.test.tsx"
- "*.test.ts"
- .scannerwork/**
- .sonarqube/**
- zap-report.html
- zap-report.xml
- message: Ignore mocks
paths:
- mockServiceWorker.js
- "mockServiceWorker.js"
- message: Ignore auto-generated scan reports
paths:
- trufflehog_report.*
- message: Ignore lockfiles
paths:
- package-lock.json
- "package-lock.json"
- message: Ignore local .env files
paths:
- "*.env"
Expand All @@ -45,8 +47,8 @@ exclude: # exclude matching issues
# NOTE pattern is re.Pattern, thus escaping of special characters might be required
pattern: sha256-.*
paths:
- index.html
- nginx.conf.template
- "index.html"
- "nginx.conf.template"
- message: Ignore hashes on badge urls
pattern: https://img\.shields\.io/.*
- message: Ignore hashes on github gists
Expand All @@ -56,7 +58,7 @@ exclude: # exclude matching issues
- message: Ignore local keycloak configuration (for local development only)
id: high-entropy
paths:
- realm-export.json
- "realm-export.json"
- message: Ignore SSIS .dtsx files (binary content and verifiers)
paths:
- "*.dtsx"
Expand All @@ -67,6 +69,9 @@ exclude: # exclude matching issues
- message: Ignore integrity hashes on Openshift config files
paths:
- "Test Data/**"
- message: Skip ESRI itemIds everywhere (used mainly in basemaps.json)
pattern: ("?)itemId("?):.*

# NOTE you can also specify IDs or patterns together or without paths, e.g.
#
# - message: Skip ID everywhere
Expand Down
65 changes: 2 additions & 63 deletions .github/workflows/api-dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,6 @@ jobs:
name: pr-codecov
path: pr/

- name: SonarScanner for .NET 8 with pull request decoration support
id: scan
uses: highbyte/sonarscan-dotnet@v2.3.2
if: ${{ github.event_name == 'push' && env.solution-name == 'Pims.sln' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
dotnetBuildArguments: ${{env.working-directory}}/${{ env.solution-name }}
dotnetTestArguments: ${{env.working-directory}}/${{ env.solution-name }} --logger trx --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
# Optional extra command arguments the the SonarScanner 'begin' command
sonarBeginArguments: /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" -d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" -d:sonar.qualitygate.wait=true
# The key of the SonarQube project
sonarProjectKey: ${{secrets.PROJECT_KEY_API}}
# The name of the SonarQube project
sonarProjectName: PIMS-API
# The SonarQube server URL. For SonarCloud, skip this setting.
sonarHostname: ${{secrets.SONAR_URL}}
post-build:
needs: build-backend
runs-on: ubuntu-22.04
Expand All @@ -165,55 +148,11 @@ jobs:
- name: Failure notification to Teams Channel
env:
MS_TEAMS_NOTIFY_URL: ${{ secrets.MS_TEAMS_NOTIFY_URL }}
if: env.MS_TEAMS_NOTIFY_URL != '' && failure() && steps.scan.outcome == 'failure'
if: env.MS_TEAMS_NOTIFY_URL != '' && failure()
uses: dragos-cojocari/ms-teams-notification@v1.0.2
with:
github-token: ${{ github.token }}
ms-teams-webhook-uri: ${{ env.MS_TEAMS_NOTIFY_URL }}
notification-summary: PIMS API Sonar Scan FAILED in ${{env.GIT_BRANCH}} environment
notification-summary: PIMS API FAILED in ${{env.GIT_BRANCH}} environment
notification-color: ff0000
timezone: America/Los_Angeles

- name: Find Comment
if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: QUALITY GATE STATUS FOR .NET 5

- name: Check Quality Gate and Create Comment
if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
PROJECT_KEY: ${{secrets.PROJECT_KEY_API}}
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
QUALITY GATE STATUS FOR .NET 5: FAILED.

[View and resolve details on][1]

[1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}}
reactions: confused
- name: Check Quality Gate and Update Comment
if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id != '' && github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/create-or-update-comment@v1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
PROJECT_KEY: ${{secrets.PROJECT_KEY_APP}}
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
QUALITY GATE STATUS FOR .NET 5: FAILED.

[View and resolve details on][1]

[1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}}
edit-mode: replace
reactions: eyes
63 changes: 2 additions & 61 deletions .github/workflows/app-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,75 +68,16 @@ jobs:
name: pr-codecov
path: pr/

- name: SonarQube Scan
id: scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarqube-3cd915-tools.apps.silver.devops.gov.bc.ca/
PROJECT_KEY: 21faa627-fe70-4a67-89e3-1262a32d2e2c
PROJECT_NAME: PIMS-APP
with:
projectBaseDir: ${{env.working-directory}}
args: >
-Dsonar.projectKey=21faa627-fe70-4a67-89e3-1262a32d2e2c
-Dsonar.projectName=PIMS-APP
-Dsonar.qualitygate.wait=true

# Send notifications only if MS_TEAMS_NOTIFY_URL secret has been set
- name: Failure notification to Teams Channel
env:
MS_TEAMS_NOTIFY_URL: ${{ secrets.MS_TEAMS_NOTIFY_URL }}
if: env.MS_TEAMS_NOTIFY_URL != '' && failure() && steps.scan.outcome == 'failure'
if: env.MS_TEAMS_NOTIFY_URL != '' && failure()
uses: dragos-cojocari/ms-teams-notification@v1.0.2
with:
github-token: ${{ github.token }}
ms-teams-webhook-uri: ${{ env.MS_TEAMS_NOTIFY_URL }}
notification-summary: PIMS APP Sonar Scan FAILED in ${{env.GIT_BRANCH}} environment
notification-summary: PIMS APP FAILED in ${{env.GIT_BRANCH}} environment
notification-color: ff0000
timezone: America/Los_Angeles

- name: Find Comment
if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/find-comment@v1
id: fc
with:
token: ${{secrets.GITHUB_TOKEN}}
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: QUALITY GATE STATUS FOR APP-REACT

- name: Check Quality Gate and Create Comment
uses: peter-evans/create-or-update-comment@v1
if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id == '' && github.event.pull_request.head.repo.full_name == github.repository
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
PROJECT_KEY: ${{secrets.PROJECT_KEY_APP}}
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
QUALITY GATE STATUS FOR APP-REACT: FAILED.

[View and resolve details on][1]

[1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}}
reactions: confused
- name: Check Quality Gate and Update Comment
if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id != '' && github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/create-or-update-comment@v1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
PROJECT_KEY: ${{secrets.PROJECT_KEY_APP}}
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
QUALITY GATE STATUS FOR APP-REACT: FAILED.

[View and resolve details on][1]

[1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}}
edit-mode: replace
reactions: eyes
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
namespace: 3cd915-tools
- name: Hide the maintenance page and display the app
run: |
./tools/cicd/maintenance/maintenance.sh prod off
APPLICATION_NAME=pims-app-prod ./tools/cicd/maintenance/maintenance.sh prod off

ci-cd-end-notification:
name: CI-CD End Notification to Teams Channel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ jobs:
- name: call scripts to sync keycloak
shell: bash
run: |
oc process -f ./openshift/4.0/templates/jobs/keycloak-sync-pipeline-run.yaml -p ASPNETCORE_ENVIRONMENT=$ASPNETCORE_ENVIRONMENT -p NAMESPACE=3cd915-prod -p BRANCH=GIT_BRANCH -p API_URL=http://pims-api:8080/api | oc create -f - | grep -oP "(?<=\/)[^\s]*" | (read PIPELINE_NAME; oc wait --for=condition=succeeded pipelineruns/$PIPELINE_NAME --timeout=500s)
oc process -f ./openshift/4.0/templates/jobs/keycloak-sync-pipeline-run.yaml -p ASPNETCORE_ENVIRONMENT=$ASPNETCORE_ENVIRONMENT -p NAMESPACE=3cd915-prod -p BRANCH=GIT_BRANCH -p API_URL=http://pims-api:8080/api | oc create -f - | grep -oP "(?<=\/)[^\s]*" | (read PIPELINE_NAME; oc wait --for=condition=succeeded pipelineruns/$PIPELINE_NAME --timeout=750s)
14 changes: 0 additions & 14 deletions .github/workflows/zap-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,3 @@ jobs:
target: "https://dev-pims.th.gov.bc.ca/"
cmd_options: "-r ${{ env.HTML_ZAP_REPORT }} -x ${{ env.ZAP_REPORT }}"
fail_action: false
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
if: ${{ github.event_name == 'push' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
PROJECT_KEY: PIMS-ZAP
PROJECT_NAME: PIMS-ZAP
with:
args: >
-Dsonar.projectKey=${{ env.PROJECT_KEY }}
-Dsonar.projectName=${{ env.PROJECT_NAME }}
-Dsonar.zaproxy.reportPath=${{ env.ZAP_REPORT }}
-Dsonar.zaproxy.htmlReportPath=${{ env.HTML_ZAP_REPORT }}
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ refresh: | down build up ## Recreates local docker environment
.PHONY: infra
infra: ## Starts infrastructure containers (e.g. database, geoserver). Useful for local debugging
@echo "$(P) Starting up infrastructure containers..."
@"$(MAKE)" start n="database geoserver grafana prometheus proxy"
@"$(MAKE)" start n="database geoserver proxy"

monitoring-up: ## Calls the docker compose up for the monitoring/telemetry images
@echo "$(P) Create or start local monitoring containers..."
@docker-compose --profile monitoring up -d

start: ## Starts the local containers (n=service name)
@echo "$(P) Starting client and server containers..."
Expand Down Expand Up @@ -279,7 +283,7 @@ db-upgrade: ## Upgrade an existing database to the TARGET_VERSION (if passed) or

db-scaffold: ## Requires local install of sqlcmd
@echo "$(P) regenerate ef core entities from database"
@cd source/backend/entities; eval $(grep -v '^#' .env | xargs) dotnet ef dbcontext scaffold Name=PIMS Microsoft.EntityFrameworkCore.SqlServer -o ../entities/ef --schema dbo --context PimsBaseContext --context-namespace Pims.Dal --context-dir . --no-onconfiguring --namespace Pims.Dal.Entities --data-annotations -v -f --startup-project ../api
@cd source/backend/entities; eval $(grep -v '^#' .env | xargs) dotnet ef dbcontext scaffold Name=PIMS Microsoft.EntityFrameworkCore.SqlServer -o ../entities/ef --schema "dbo" --schema "pmbc" --context PimsBaseContext --context-namespace Pims.Dal --context-dir . --no-onconfiguring --namespace Pims.Dal.Entities --data-annotations -v -f --startup-project ../api

db-generate-master:
@echo "$(P) Generates a master script that for the given sprint."
Expand Down
72 changes: 68 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,19 @@ services:
restart: on-failure
container_name: psp-clamav
healthcheck:
test: [ "CMD", "./check.sh" ]
test: ["CMD", "./check.sh"]
interval: 60s
retries: 3
start_period: 120s
networks:
- psp

####################### Prometheus #######################
prometheus:
profiles:
- all
- monitoring
image: ubuntu/prometheus
image: quay.io/prometheus/prometheus:v3.2.0
container_name: psp-prometheus
ports:
- 9000:9090
Expand All @@ -210,7 +211,10 @@ services:
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--web.enable-lifecycle"
networks:
- psp

####################### Grafana #######################
grafana:
profiles:
- all
Expand All @@ -220,8 +224,68 @@ services:
restart: on-failure
ports:
- 4000:3000
depends_on:
- prometheus
networks:
- psp

####################### OpenTelemetry Collector #######################
otel-collector:
profiles:
- all
- monitoring
image: otel/opentelemetry-collector-contrib:0.120.0
container_name: otel-collector
restart: on-failure
deploy:
resources:
limits:
memory: 500M
command: ["--config=/etc/otel-config.yaml"]
volumes:
- ./tools/otel-collector/otel-config.yaml:/etc/otel-config.yaml
ports:
- 4318:4318 # http receiver
- 55679:55679 # zPages UI
- 9464:9464 # prometheus metrics endpoint
- 13133:13133 # health check
environment:
- OTEL_COLLECTOR_HOST=0.0.0.0
- JAEGER_HOST=jaeger
healthcheck:
test: curl --fail -s http://localhost:13133/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
- psp
####################### Jaeger (browser traces + monitoring dashboards) #######################
jaeger:
profiles:
- all
- monitoring
image: jaegertracing/jaeger:2.4.0
container_name: jaeger
command: ["--config=/jaeger/jaeger-config.yaml"]
volumes:
- ./tools/jaeger/jaeger-config.yaml:/jaeger/jaeger-config.yaml
ports:
- 16686:16686 # Web UI
- 4317:4317 # otlp grpc receiver
- 5318:4318 # otlp http receiver
- 13123:13133 # health check
- 8889:8889 # prometheus metrics endpoint
- 8888:8888 # internal container metrics
environment:
- LOG_LEVEL=debug
- JAEGER_LISTEN_HOST=0.0.0.0
- PROMETHEUS_HOST=prometheus
- PROMETHEUS_PORT=9090
healthcheck:
test: curl --fail -s http://localhost:13123/status || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
- psp

####################### Networks Definition #######################
networks:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DeploymentModel>Project</DeploymentModel>
<ProductVersion>16.0.948.0</ProductVersion>
<ProductVersion>16.0.5270.0</ProductVersion>
<SchemaVersion>9.0.1.0</SchemaVersion>
<State>$base64$PFNvdXJjZUNvbnRyb2xJbmZvIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmRkbDI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yIiB4bWxuczpkZGwyXzI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yLzIiIHhtbG5zOmRkbDEwMF8xMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDA4L2VuZ2luZS8xMDAvMTAwIiB4bWxuczpkZGwyMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAiIHhtbG5zOmRkbDIwMF8yMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAvMjAwIiB4bWxuczpkZGwzMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDExL2VuZ2luZS8zMDAiIHhtbG5zOmRkbDMwMF8zMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDExL2VuZ2luZS8zMDAvMzAwIiB4bWxuczpkZGw0MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEyL2VuZ2luZS80MDAiIHhtbG5zOmRkbDQwMF80MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEyL2VuZ2luZS80MDAvNDAwIiB4bWxuczpkZGw1MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEzL2VuZ2luZS81MDAiIHhtbG5zOmRkbDUwMF81MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEzL2VuZ2luZS81MDAvNTAwIiB4bWxuczpkd2Q9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vRGF0YVdhcmVob3VzZS9EZXNpZ25lci8xLjAiPg0KICA8RW5hYmxlZD5mYWxzZTwvRW5hYmxlZD4NCiAgPFByb2plY3ROYW1lPjwvUHJvamVjdE5hbWU+DQogIDxBdXhQYXRoPjwvQXV4UGF0aD4NCiAgPExvY2FsUGF0aD48L0xvY2FsUGF0aD4NCiAgPFByb3ZpZGVyPjwvUHJvdmlkZXI+DQo8L1NvdXJjZUNvbnRyb2xJbmZvPg==</State>
<Database>
<Name>PAT_PIMS_DOCUMENT_IMPORT.database</Name>
<FullPath>PAT_PIMS_DOCUMENT_IMPORT.database</FullPath>
<Name>PAT_PIMS_DOCUMENT_IMPORT 1.database</Name>
<FullPath>PAT_PIMS_DOCUMENT_IMPORT 1.database</FullPath>
</Database>
<DataSources />
<DataSourceViews />
Expand Down
Loading
Loading