-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-10-02] [$500] "Intro to your school principal" page is accessible with a public email #27225
Comments
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
For this solution, we should consolidate the content of both pages in just one page |
ProposalPlease re-state the problem that we are trying to solve in this issue."Intro to your school principal" page is accessible if a user with a public email accesses the URL directly. What is the root cause of that problem?There is no check for the current profile email in the IntroSchoolPrincipalPage component. What changes do you think we should make in order to solve the problem?Solution 1 (consolidation to a single page)
+session: {
+ key: ONYXKEYS.SESSION,
+},
Solution 2 (redirect)
+session: {
+ key: ONYXKEYS.SESSION,
+},
What alternative solutions did you explore? (Optional)None. |
Making it external to assign a C+ to review the proposal and move this forward |
Job added to Upwork: https://www.upwork.com/jobs/~019ebe462993141653 |
Current assignee @anmurali is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.There're 2 issues related to this flow:
What is the root cause of that problem?We're not adding a guard to make sure the condition is met before showing the screen. In IntroSchoolPrincipalPage, we're not validating that the user has non-public email domain, same for the What changes do you think we should make in order to solve the problem?
In
(The session should be connected by using We have to Early return However, there's an issue where it's still going back to the We need to fix it so the pendingRoute will contain the type as well by updating this line to
and this line to
What alternative solutions did you explore? (Optional)We can create a So we can just use it like |
Hello, I saw the posting at https://www.upwork.com/jobs/500-quot-Intro-your-school-principal-quot-page-accessible-with-public-email-27225-Expensify_~019ebe462993141653/?referrer_url_path=find_work_home. For the solution, we can make the changes in the IntroSchoolPrincipalPage, The component receives the logged in email props in the form of loginList. Either we can use the first key in loginList, or we may use the key partnerUserID inside it. We have a util function LoginUtils.isEmailPublicDomain which we can use to determine if the email is from a public domain. Please let me know if this looks good. I have two questions which I am looking to get answered:
|
📣 @sreejit123! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Hi @aimane-chnaif, could you check the proposals when you have a chance? |
Friendly bump @aimane-chnaif |
@akinwale can you please share demo video for the below cases after applying your solution 1? Directly go to
|
How do I create an account with a school email? Can I use any private domain for this? |
I am not sure. Question for @marcochavezf |
I checked the |
@aimane-chnaif Here are the videos. The URL prefix in latest main is 27225-public-email.mp427225-private-email.mp4Since the plan is to eliminate direct navigation to the Intro to School Principal, the route defined in
|
Current assignee @marcochavezf is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
I think the solution in the videos here is better (redirecting the user) instead of showing not-found. The user could be accessing the link directly from another source, and it would be confusing to show the not found page (which can be perceived as a bug) vs. just redirecting them to the page to update their email. |
📣 @aimane-chnaif 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Assigning @akinwale 🚀 |
I was assuming that the In this case, should we:
EDIT: It's 4am and I don't know how to read. I'm assuming that the most likely option we're going with here would be 2. |
@aimane-chnaif My PR is ready for review. |
This issue should be on hold for now until we determine next step - #27750 (comment) |
Commented in the PR, it's fine to continue with the PR while the STW is not enabled. Just we'd need to fix the conflicts @akinwale |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.73-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Both paid. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Update your email address
(which is the pagei-am-a-teacher
).Actual Result:
Workaround:
Navigate to the other page, which should happen automatically
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number:
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
Screen.Recording.2023-09-12.at.16.55.38.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: