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

Ensure http url entered by the user are provided to the SDK without being altered #1443

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Sep 28, 2023

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

  • Ensure http url entered by the user are provided to the SDK without being altered
  • Also change values in LoginConstants, this was not really correct.

Motivation and context

Be able to connect on a http homeserver.

Screenshots / GIFs

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

…eing altered.

Also change values in `LoginConstants`, this was not really correct.
@bmarty bmarty requested a review from a team as a code owner September 28, 2023 08:34
@bmarty bmarty requested review from ganfra and removed request for a team September 28, 2023 08:34
@@ -109,6 +109,7 @@ fun ChangeAccountProviderView(
// Other
AccountProviderView(
item = AccountProvider(
url = "",
Copy link
Member Author

Choose a reason for hiding this comment

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

Ideally this should be reworked a bit, by encapsulating AccountProvider in a sealed interface to properly handle the Other case.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 28, 2023

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/nRe91v

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (64ae971) 57.91% compared to head (55a9d30) 57.91%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1443   +/-   ##
========================================
  Coverage    57.91%   57.91%           
========================================
  Files         1129     1129           
  Lines        30044    30046    +2     
  Branches      6144     6144           
========================================
+ Hits         17399    17401    +2     
  Misses       10036    10036           
  Partials      2609     2609           
Files Coverage Δ
...ures/login/impl/accountprovider/AccountProvider.kt 100.00% <100.00%> (ø)
...in/impl/accountprovider/AccountProviderProvider.kt 100.00% <100.00%> (ø)
...eaccountprovider/ChangeAccountProviderPresenter.kt 85.71% <100.00%> (ø)
...changeaccountprovider/ChangeAccountProviderView.kt 67.92% <100.00%> (+0.61%) ⬆️
...accountprovider/ConfirmAccountProviderPresenter.kt 89.47% <100.00%> (ø)
...ountprovider/SearchAccountProviderStateProvider.kt 95.45% <100.00%> (ø)
...searchaccountprovider/SearchAccountProviderView.kt 52.43% <100.00%> (ø)
...android/features/login/impl/util/LoginConstants.kt 83.33% <100.00%> (ø)
...s/login/impl/changeserver/ChangeServerPresenter.kt 80.00% <0.00%> (ø)
...firmaccountprovider/ConfirmAccountProviderState.kt 87.50% <0.00%> (ø)

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

@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

@bmarty bmarty merged commit 7b0a855 into develop Sep 28, 2023
@bmarty bmarty deleted the feature/bma/httpHomeserver branch September 28, 2023 12:24
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