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

[PM-12406] Introduce new endpoint and replace SSO details response flow #4177

Merged
merged 20 commits into from
Nov 4, 2024

Conversation

andrebispo5
Copy link
Contributor

@andrebispo5 andrebispo5 commented Oct 28, 2024

🎟️ Tracking

[PM-12406 Introduce new endpoint and replace SSO details response flow](https://bitwarden.atlassian.net/browse/PM-12406)

📔 Objective

In order to align the back-end contract with the front-end expectations, add a net-new GET verified domains flow.
We will keep the original SSO details flow in place, this new implementation will be behind a remote feature flag.

📸 Screenshots

Screen.Recording.2024-10-28.at.16.38.59.mov

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

Attention: Patch coverage is 92.72727% with 4 lines in your changes missing coverage. Please review.

Project coverage is 89.05%. Comparing base (ce180f1) to head (8b573ec).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
...ture/enterprisesignon/EnterpriseSignOnViewModel.kt 95.00% 0 Missing and 2 partials ⚠️
...ature/debugmenu/components/FeatureFlagListItems.kt 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4177   +/-   ##
=======================================
  Coverage   89.05%   89.05%           
=======================================
  Files         445      445           
  Lines       38645    38695   +50     
  Branches     5403     5412    +9     
=======================================
+ Hits        34414    34460   +46     
- Misses       2357     2359    +2     
- Partials     1874     1876    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -1073,4 +1073,5 @@ Do you want to switch to this account?</string>
<string name="bitwarden_tools">Bitwarden Tools</string>
<string name="got_it">Got it</string>
<string name="no_logins_were_imported">No logins were imported</string>
<string name="verified_sso_domain_verified">Verified Sso Domain Endpoint</string>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should Sso be all caps?


@Suppress("MaxLineLength")
@Test
fun `getVerifiedOrganizationDomainSsoDetails when response is success should return valid response`() = runTest {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The formatter should move the runTest { down a line if it's past the line limit

@Suppress("MaxLineLength")
@Test
fun `getVerifiedOrganizationDomainSsoDetails when response is success should return valid response`() =
runTest {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should re-run the formatter here, all the indentation is off

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry thought I had it running automatically. Fixed now. 👍

@andrebispo5 andrebispo5 added this pull request to the merge queue Nov 4, 2024
Merged via the queue into main with commit e5e0464 Nov 4, 2024
9 checks passed
@andrebispo5 andrebispo5 deleted the pm-12406/domain-verified-endpoint branch November 4, 2024 11:16
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.

2 participants