Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.0.0 to main merge #2046

Merged
merged 9 commits into from
Jun 26, 2023
Merged

Conversation

andrewsignori-aot
Copy link
Collaborator

Merging the changes for Release v1.0.0 into the main branch.

guru-aot and others added 9 commits June 8, 2023 13:27
Changes as part of this PR:
- Patroni deployment is changed, going forward we are not building in
tools namespace and deploying them. We use the reference as per sample
shared by BCGOV
https://github.com/bcgov/patroni-postgres-container/blob/master/samples/deploy.yaml
for further deployments.
- Network Policies removed which are not used.
- Role Bindings for github actions will be added as part of init-oc
command.
- Removed the secrets that are not used and removed the obselete methods
  - WORKFLOW_SA_USER_NAME
  - WORKFLOW_SA_PASSWORD
  - SIMS_API_CLIENT_ID
  - SIMS_API_CLIENT_SECRET
Formio permission change in the dockerfile while build. 

The tried combinations are 640, 644, 650, 654, 750, 754, 770, 774 and
777. So with the least permission level of 770, 774 and 777 which
worked. Selected 770.
…ploy split (#2000)

Split the github action workflow which currently builds and deploys
simultaneously in a single action into seperate build and deploy github
action.
Updating the `release/v1.0.0` branch with the latest changes on
Openshift files.
Redis cluster command changed, as part of makefile to run in any
terminal(Windows/ mac/ Linux).
- Issue was when trying to get the jsonpath `oc get pods -n $(NAMESPACE)
-l app=redis -o jsonpath='{range .items[*]}{.status.podIP}:6379 ` in mac
it appends an additional ` :6379 `at the end, so to solve it removing
the generated one using the sed command.
- Also running the oc commands inside the redis-cli was not working, so
created variables to fetch the commands output and ran the cluster
creation.
 
Documentation and wiki documentation are updated
- Added a max value to the page number that is globally used for all API
endpoints that have pagination enabled. This fix the 45 issues on Wava
identified in the category `Integer Overflow`.
- Added an E2E test to one of the endpoints mentioned on the Wava scan:
`confirmation-of-enrollment/enrollmentPeriod/current?page=99999999999999999999&pageLimit=10`.
This E2E test case file was used because it already has tests created
and it was easier to have this one added.
- The issues on the category `API Mass Assignment` are not part of this
PR. Further details on the associated ticket.
- Removed the fields in the service definition, which does not allow the connections of other pods to the stateful set.
- Enable db-migration scripts to run on atleast one pod when revert is needed, so enabled it in API pod
- Update the Education Program NOC code to accept 5 digits.
- No DB updates are required for the existing ones as per agreed by
@JasonCTang.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 17.93% ( 2116 / 11803 )
Methods: 8.23% ( 124 / 1506 )
Lines: 20.72% ( 1854 / 8950 )
Branches: 10.24% ( 138 / 1347 )

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 49.81% ( 267 / 536 )
Methods: 41.56% ( 32 / 77 )
Lines: 55.33% ( 218 / 394 )
Branches: 26.15% ( 17 / 65 )

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 69.4% ( 390 / 562 )
Methods: 59.15% ( 42 / 71 )
Lines: 71.52% ( 344 / 481 )
Branches: 40% ( 4 / 10 )

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 49.57% ( 3479 / 7018 )
Methods: 44.29% ( 403 / 910 )
Lines: 54.85% ( 2873 / 5238 )
Branches: 23.33% ( 203 / 870 )

@andrewsignori-aot andrewsignori-aot marked this pull request as ready for review June 26, 2023 20:15
Copy link
Contributor

@ann-aot ann-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

- [Database Migration](./docs/howto/db-migration.md)
- [Keycloak Configuration](./docs/hotwot/keycloak-config.md)
- [Keycloak Configuration](https://github.com/bcgov/SIMS/wiki/Keycloak-Config)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Now the links will work 😄

Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work @andrewsignori-aot

Copy link
Collaborator

@sh16011993 sh16011993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@andrewsignori-aot andrewsignori-aot merged commit d521713 into main Jun 26, 2023
@andrewsignori-aot andrewsignori-aot deleted the release-v1.0.0-to-main-merge branch June 26, 2023 23:35
@andrewsignori-aot andrewsignori-aot temporarily deployed to DEV June 26, 2023 23:46 — with GitHub Actions Inactive
@andrewsignori-aot andrewsignori-aot temporarily deployed to DEV June 26, 2023 23:47 — with GitHub Actions Inactive
@andrewsignori-aot andrewsignori-aot temporarily deployed to DEV June 26, 2023 23:47 — with GitHub Actions Inactive
@andrewsignori-aot andrewsignori-aot temporarily deployed to DEV June 26, 2023 23:47 — with GitHub Actions Inactive
@andrewsignori-aot andrewsignori-aot temporarily deployed to DEV June 26, 2023 23:47 — with GitHub Actions Inactive
@andrewsignori-aot andrewsignori-aot temporarily deployed to DEV June 26, 2023 23:49 — with GitHub Actions Inactive
@andrewsignori-aot andrewsignori-aot temporarily deployed to DEV June 26, 2023 23:49 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants