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

feat: Show team applock change dialog (WPB-4476) #2388

Merged
merged 34 commits into from Nov 8, 2023

Conversation

ohassine
Copy link
Member

@ohassine ohassine commented Nov 1, 2023

TaskWPB-4476 Enforcing App Lock Based on Team Settings


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Description

  • Display a dialog when team's app lock config has changed
  • Setup team applock when clicking on OK button in the dialog
  • Distinguish between user app lock and team app lock by storing them separtely

Dependencies (Optional)

needs to be merged after #2380 #2363

Needs releases with:

  • GitHub link to other pull request

Notes

Please review #2380 before this one as some changes from it are in this PR

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

Attachments (Optional)

screen-20231102-115801.mp4

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

# Conflicts:
#	app/src/main/kotlin/com/wire/android/ui/WireActivity.kt
…_App_lock_is_on

# Conflicts:
#	app/src/main/kotlin/com/wire/android/biomitric/BiometricPromptUtils.kt
#	app/src/main/kotlin/com/wire/android/ui/WireActivity.kt
…_App_lock_is_on

# Conflicts:
#	app/src/main/res/values/strings.xml
…ck_change_dialog

# Conflicts:
#	app/src/test/kotlin/com/wire/android/ui/home/appLock/LockCodeTimeManagerTest.kt
#	kalium
@AndroidBob
Copy link
Collaborator

Build 1627 failed.

…change_dialog

# Conflicts:
#	app/src/main/kotlin/com/wire/android/datastore/GlobalDataStore.kt
#	app/src/main/kotlin/com/wire/android/ui/WireActivity.kt
Copy link
Contributor

github-actions bot commented Nov 2, 2023

Test Results

678 tests  +4   678 ✔️ +4   9m 44s ⏱️ +24s
  98 suites ±0       0 💤 ±0 
  98 files   ±0       0 ±0 

Results for commit 92296ee. ± Comparison against base commit 162eded.

♻️ This comment has been updated with latest results.

@AndroidBob
Copy link
Collaborator

Build 1628 failed.

@AndroidBob
Copy link
Collaborator

Build 1629 failed.

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #2388 (a0c6e38) into develop (162eded) will decrease coverage by 0.09%.
The diff coverage is 27.81%.

❗ Current head a0c6e38 differs from pull request most recent head 92296ee. Consider uploading reports for the commit 92296ee to get more accurate results

@@              Coverage Diff              @@
##             develop    #2388      +/-   ##
=============================================
- Coverage      41.57%   41.49%   -0.09%     
- Complexity      1078     1080       +2     
=============================================
  Files            344      343       -1     
  Lines          12292    12368      +76     
  Branches        1615     1626      +11     
=============================================
+ Hits            5111     5132      +21     
- Misses          6699     6753      +54     
- Partials         482      483       +1     
Files Coverage Δ
...otlin/com/wire/android/ui/home/FeatureFlagState.kt 100.00% <100.00%> (ø)
...re/android/ui/home/appLock/SetLockCodeViewState.kt 100.00% <100.00%> (ø)
...ire/android/ui/home/appLock/LockCodeTimeManager.kt 84.21% <75.00%> (-4.03%) ⬇️
...main/kotlin/com/wire/android/ui/AppLockActivity.kt 0.00% <0.00%> (ø)
...rc/main/kotlin/com/wire/android/ui/WireActivity.kt 0.00% <0.00%> (ø)
...tlin/com/wire/android/datastore/GlobalDataStore.kt 13.54% <18.60%> (+1.77%) ⬆️
...d/ui/home/sync/FeatureFlagNotificationViewModel.kt 61.64% <37.87%> (-6.59%) ⬇️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 162eded...92296ee. Read the comment docs.

Copy link
Contributor

github-actions bot commented Nov 2, 2023

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 1638 succeeded.

The build produced the following APK's:

@AndroidBob
Copy link
Collaborator

Build 1639 failed.

…change_dialog

# Conflicts:
#	app/src/main/kotlin/com/wire/android/ui/home/appLock/SetLockCodeViewState.kt
#	app/src/test/kotlin/com/wire/android/feature/ObserveAppLockConfigUseCaseTest.kt
#	app/src/test/kotlin/com/wire/android/ui/home/appLock/LockCodeTimeManagerTest.kt
#	app/src/test/kotlin/com/wire/android/ui/home/appLock/SetLockScreenViewModelTest.kt
@pull-request-size pull-request-size bot added size/L and removed size/XL labels Nov 2, 2023
@AndroidBob
Copy link
Collaborator

Build 1644 succeeded.

The build produced the following APK's:

Copy link
Contributor

github-actions bot commented Nov 2, 2023

APKs built during tests are available here. Scroll down to Artifacts!

Copy link
Contributor

github-actions bot commented Nov 7, 2023

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 1664 succeeded.

The build produced the following APK's:

…change_dialog

# Conflicts:
#	app/src/main/kotlin/com/wire/android/ui/AppLockActivity.kt
#	app/src/main/res/values/strings.xml
#	kalium
Copy link
Contributor

github-actions bot commented Nov 7, 2023

@ohassine looks like you are rolling back kalium to a previous commitish.

This means that the PR's target branch (develop) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.

develop This PR
76b3f9528612aa950f464b44ed347914ed837c92 6473f76f8410b9b9b12be8bc2e091b36b137b473

Is this intentional?

Copy link
Contributor

github-actions bot commented Nov 7, 2023

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 1676 succeeded.

The build produced the following APK's:

@ohassine ohassine added this pull request to the merge queue Nov 8, 2023
Merged via the queue into develop with commit 1e614ca Nov 8, 2023
13 checks passed
@ohassine ohassine deleted the show_team_applock_change_dialog branch November 8, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants