-
-
Notifications
You must be signed in to change notification settings - Fork 45
Connect Login fix #3279
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
Connect Login fix #3279
Conversation
…so it only applies once)
📝 WalkthroughWalkthroughThe private method Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Suggested reviewers
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learningsapp/src/org/commcare/activities/DispatchActivity.java (8)Learnt from: shubham1g5 Learnt from: OrangeAndGreen Learnt from: Jignesh-dimagi Learnt from: OrangeAndGreen Learnt from: OrangeAndGreen Learnt from: pm-dimagi Learnt from: OrangeAndGreen Learnt from: OrangeAndGreen 🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
shubham1g5
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need to be hotixed ?
| private boolean getLaunchedFromConnect() { | ||
| return getIntent().getBooleanExtra(IS_LAUNCH_FROM_CONNECT, false); | ||
| boolean launchedFromConnect = getIntent().getBooleanExtra(IS_LAUNCH_FROM_CONNECT, false); | ||
| if(launchedFromConnect) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed as extras.remove doesn't do anything by itself if the key doesn;t exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, nice. 0a29db0
|
No need for a hotfix, this change was introduced after the code freeze. Just to be safe, I just tested with the latest live beta (477060) and was prompted to unlock when trying to login to the next app (i.e. expected behavior). |
Product Description
Fixes a bug where once the user logs in to an app from the Connect menu and log out, they won't be prompted to unlock when trying to login to any app from the login page.
Technical Summary
Consuming the intent that gets passed to DispatchActivity when launching an app from Connect.
We only want that flag to apply once, the next time Dispatch launches the LoginActivity.
On subsequent launches of LoginActivity after that, we don't want to indicate that it was launched from Connect.
Feature Flag
Connect
Safety Assurance
Safety story
Discovered this during local testing and tested the fix once applied.
This was introduced in a recent phase 4 PR and is not part of the latest released beta.
Automated test coverage
None
QA Plan
Test to run: Login to an app from the Connect menu, then logout. On the Login page, try to login into any installed app (both managed by PersonalID and not managed by PersonalID).
Managed by PersonalID: User should be required to unlock again before logging into the app
Not managed by PersonalID: Traditional login logic should apply (require user-entered password and use it to login)