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

Merge SSO changes into dev #2342

Merged
merged 8 commits into from
Dec 11, 2023
Merged

Merge SSO changes into dev #2342

merged 8 commits into from
Dec 11, 2023

Conversation

NatSquared
Copy link
Contributor

Issue #: 🎟️DESENG-408

Description of changes:
Most of the configuration changes required to make MET function correctly when using the BC Government's hosted Single Sign On Keycloak servers.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

NatSquared and others added 6 commits November 6, 2023 16:01
* Make role checks platform-agnostic

* default to standard realm

* Remove local Keycloak instances and config

* Use tenant information from DB instead of Keycloak

* Update sample.env files

* Clean up the changelog... and we're good to go! 🥳
* Overhaul of most configuration files

* No longer using semver; update CHANGELOG.MD
* feature/deseng415: Added recording of date with feedback submission and displaying the data on admin side.

* feature/deseng415: Fixed feedback schema, removed yup import, fixed change log date.
* bugfix/deseng429: Removed outdated service class.

* bugfix/deseng429: Changed version and changelog to match deployments to gdx-main.
Co-authored-by: Alex <awintschel@gmail.com>
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 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

'testing': TestConfig,
}
try:
print(f'Loading configuration: {environment}...')
Copy link

@ShawnTurple ShawnTurple Dec 11, 2023

Choose a reason for hiding this comment

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

is print the logging mechanism for this application, no logging plugin or code
I'm guessing you don't have access to the logger at this point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Print was the logging mechanism previously used in this file. I can upgrade to current_app.logger.debug :)

Copy link
Contributor Author

@NatSquared NatSquared Dec 11, 2023

Choose a reason for hiding this comment

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

Nevermind; I cannot. current_app is only defined after the configuration is set up, and that is done in this file. I'll write a ticket to look into uses of print() in the app and see if there are better alternatives

Copy link

@ShawnTurple ShawnTurple left a comment

Choose a reason for hiding this comment

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

This is just reviewing previous commits to be merged into main branch.
Just a final review or look of code, no in depth look.

Copy link
Contributor

@jareth-whitney jareth-whitney left a comment

Choose a reason for hiding this comment

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

Some great changes in here. I appreciate how everything is properly labelled and organized. Gender-neutral comments are always an improvement as well. Maybe resolve Shawn's point about print if applicable. I won't block you, approved :)

@@ -99,7 +97,7 @@ def _get_scope_options(user_roles, has_team_access):
return EngagementScopeOptions(restricted=False)
if has_team_access:
# return those engagements where user has access for edit members..
# either he has edit_member role or check if he is a team member
# either they have edit_member role or check if they are a team member
Copy link
Contributor

Choose a reason for hiding this comment

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

well done

@NatSquared NatSquared merged commit c73ab6b into gdx-dev Dec 11, 2023
2 checks passed
@NatSquared NatSquared deleted the gdx-sso branch December 11, 2023 23:13
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.

4 participants