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

fix: loader can display on top of login screen #11325

Merged
merged 22 commits into from
Oct 3, 2024
Merged

Conversation

abretonc7s
Copy link
Contributor

@abretonc7s abretonc7s commented Sep 19, 2024

Description

This PR addresses issue from updated async key exchange protocol.

  • Prevent double intiialization of the deeplinks
  • Fixes: Prevent sending empty account list when selectedAddress changes
  • Fixes: Terminate from desktop dApp not trigerring channel removal directly
  • This PR prevents the loading modal to display on top of the login screen.
  • Cleanup unnecessary logs in connection management screen.
  • Simplify sdk permission management to remove unnecessary checks linked to previous protocol version

Related issues

Fixes: Regression from protocol update #11314
Related to https://consensyssoftware.atlassian.net/jira/software/projects/SDK/boards/711?assignee=62440610247a4b00691c743a&selectedIssue=SDK-50&sprintStarted=true

Fixed by: #11457

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@abretonc7s abretonc7s requested review from a team as code owners September 19, 2024 15:23
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@github-actions github-actions bot added the team-sdk SDK team label Sep 19, 2024
@abretonc7s abretonc7s force-pushed the androidloader branch 2 times, most recently from 93ccebe to 1d8c928 Compare September 20, 2024 04:09
@abretonc7s abretonc7s changed the title fix: android loader can display on top of login screen fix: loader can display on top of login screen Sep 20, 2024
@abretonc7s abretonc7s marked this pull request as draft September 20, 2024 09:41
@abretonc7s abretonc7s added the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label Sep 26, 2024
@abretonc7s abretonc7s self-assigned this Sep 26, 2024
@christopherferreira9 christopherferreira9 added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Sep 26, 2024
@abretonc7s abretonc7s marked this pull request as ready for review September 26, 2024 10:20
omridan159
omridan159 previously approved these changes Sep 26, 2024
@christopherferreira9 christopherferreira9 added QA in Progress QA has started on the feature. Run Smoke E2E Triggers smoke e2e on Bitrise and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Sep 26, 2024
Copy link
Contributor

github-actions bot commented Sep 26, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: c5e4983
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ca91a743-1637-4d06-a52a-b8051dda037a

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@legobeat legobeat added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 27, 2024
Copy link
Contributor

github-actions bot commented Sep 27, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 3348c4f
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/67125f28-5b42-461d-8418-494f942fbc42

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@christopherferreira9
Copy link
Contributor

Looking good for QA. Waiting for a fix on e2e to be merged in order to merge this.

@christopherferreira9 christopherferreira9 added QA Passed A successful QA run through has been done and removed QA in Progress QA has started on the feature. labels Sep 30, 2024
@christopherferreira9 christopherferreira9 added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 30, 2024
Copy link
Contributor

github-actions bot commented Sep 30, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 0c65140
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/5afe6ee9-3863-4c45-9e3c-09ba32a69681

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@christopherferreira9 christopherferreira9 added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 1, 2024
Copy link
Contributor

github-actions bot commented Oct 1, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 7acf1f5
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/9d8a6a08-ddb2-4b41-b96a-68b2606a88f4

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 40.00000% with 93 lines in your changes missing coverage. Please review.

Project coverage is 53.84%. Comparing base (b9dbf4d) to head (e597a03).
Report is 71 commits behind head on main.

Files with missing lines Patch % Lines
...DKConnect/ConnectionManagement/connectToChannel.ts 2.22% 44 Missing ⚠️
.../core/SDKConnect/ConnectionManagement/reconnect.ts 51.78% 17 Missing and 10 partials ⚠️
app/core/SDKConnect/handlers/handleDeeplink.ts 41.17% 6 Missing and 4 partials ⚠️
app/core/BackgroundBridge/BackgroundBridge.js 0.00% 3 Missing ⚠️
...ore/SDKConnect/handlers/handleConnectionMessage.ts 25.00% 2 Missing and 1 partial ⚠️
...re/SDKConnect/InitializationManagement/postInit.ts 75.00% 2 Missing ⚠️
app/core/SDKConnect/handlers/checkPermissions.ts 60.00% 1 Missing and 1 partial ⚠️
...re/SDKConnect/ConnectionManagement/reconnectAll.ts 80.00% 1 Missing ⚠️
...DKConnect/StateManagement/updateSDKLoadingState.ts 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11325      +/-   ##
==========================================
- Coverage   55.84%   53.84%   -2.01%     
==========================================
  Files        1594     1639      +45     
  Lines       37855    38239     +384     
  Branches     4545     4651     +106     
==========================================
- Hits        21142    20591     -551     
- Misses      16214    16225      +11     
- Partials      499     1423     +924     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@christopherferreira9 christopherferreira9 added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 2, 2024
Copy link
Contributor

github-actions bot commented Oct 2, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: e597a03
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/d2d8ffcd-6256-4e1f-8f41-1071103a5288

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@christopherferreira9
Copy link
Contributor

christopherferreira9 commented Oct 2, 2024

E2E passing here: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/8dbebdac-527d-4ddb-b379-2a818dee6ecb

(Swaps tests have been failing for about a weeb and are unrelated to these changes)

Copy link
Contributor

@tommasini tommasini left a comment

Choose a reason for hiding this comment

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

LGTM! But can we first solve the unit test comment before merge?

@abretonc7s abretonc7s requested a review from a team as a code owner October 3, 2024 00:29
Copy link

sonarcloud bot commented Oct 3, 2024

Copy link
Member

@andreahaku andreahaku left a comment

Choose a reason for hiding this comment

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

LGTM

@christopherferreira9 christopherferreira9 added this pull request to the merge queue Oct 3, 2024
Merged via the queue into main with commit a5bef50 Oct 3, 2024
36 of 37 checks passed
@christopherferreira9 christopherferreira9 deleted the androidloader branch October 3, 2024 08:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed A successful QA run through has been done Run Smoke E2E Triggers smoke e2e on Bitrise team-sdk SDK team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants