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

[HOLD for payment 2022-02-08] Close Account warning modal shown on opening the page - reported by @parasharrajat #7315

Closed
mvtglobally opened this issue Jan 19, 2022 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2

Comments

@mvtglobally
Copy link

mvtglobally commented Jan 19, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open the close account page from Settings => Close Account.
  2. fill required info, Click close account.
  3. Now there is a modal is shown for some accounts.
  4. Now close the app without closing the modal.
  5. Restart the app and go back the close account page.

Expected Result:

Modal should not display on opening

Actual Result:

Close Account warning modal shown on opening the page

Workaround:

unknown

Platform:

Where is this issue occurring?

  • iOS
  • Android

Version Number: 1.1.31-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

screen-2022-01-15_23.57.25.mp4

Screen Shot 2022-01-18 at 11 57 46 PM

Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1642271359491600

View all open jobs on GitHub

@MelvinBot
Copy link

Triggered auto assignment to @danieldoglas (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@parasharrajat
Copy link
Member

Waiting for triage before putting a proposal...

@mountiny
Copy link
Contributor

cc @Julesssss might be the best one to handle this CME if this would be made External.

@danieldoglas
Copy link
Contributor

Confirmed this is a bug that can be fixed through updates in the App only.

@danieldoglas danieldoglas added Improvement Item broken or needs improvement. External Added to denote the issue can be worked on by a contributor labels Jan 19, 2022
@MelvinBot
Copy link

Triggered auto assignment to @mallenexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@parasharrajat
Copy link
Member

parasharrajat commented Jan 19, 2022

Yeah, we can fix it from the app easily.

Proposal

  1. We should use initWithStoredValues: false for this key
    key: ONYXKEYS.IS_CLOSE_ACCOUNT_MODAL_OPEN,
    .

so that it does not take stored values. This key is supposed to be used on runtime in one session.

@Julesssss
Copy link
Contributor

Hmm, why didn't the automated message show, I don't see the missing step 😕

@Julesssss
Copy link
Contributor

Okay, I think we're missing HelpWanted as the UpWork issue hasn't yet been created. Let's await that.

@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 21, 2022
@MelvinBot
Copy link

Current assignee @Julesssss is eligible for the Exported assigner, not assigning anyone new.

@mallenexpensify
Copy link
Contributor

Got a lil behind this week, job's posted https://www.upwork.com/jobs/~01871dd2f8bd13e321

@jahanzaibbaloch99
Copy link

jahanzaibbaloch99 commented Jan 21, 2022

@mallenexpensify in the reference of Upwork proposal.
There are two possible way i could achieve this.

1- on CloseAccountpage.js file we would call the componentWillunmount and check with condition if user has Going back from the page without setting modal state to false we would update the modal state to its initial state which is false.

2- on CloseAccountPage.js file we would Check the App state if the user Quit the app without Setting modal state to false we would update the modal state to its initial state which is false.

@Julesssss
Copy link
Contributor

Proposal

  1. We should use initWithStoredValues: false for this key
    key: ONYXKEYS.IS_CLOSE_ACCOUNT_MODAL_OPEN,

I forgot to implement this when building the close account page, it's the correct solution.

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 24, 2022
@MelvinBot
Copy link

📣 @parasharrajat You have been assigned to this job by @Julesssss!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@mallenexpensify
Copy link
Contributor

@jahanzaibbaloch99 , thanks for chiming in. This was a pretty quick fix that @parasharrajat had already provided an acceptable solution. If you're looking for more jobs, this link will show all the one's with the Help Wanted label.

@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 1, 2022
@botify botify changed the title Close Account warning modal shown on opening the page - reported by @parasharrajat [HOLD for payment 2022-02-08] Close Account warning modal shown on opening the page - reported by @parasharrajat Feb 1, 2022
@botify
Copy link

botify commented Feb 1, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.33-3 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 2022-02-08. 🎊

@mallenexpensify
Copy link
Contributor

@parasharrajat , hired you in Upwork, let me know when you've accepted. Payment will be $500, $250 for reporting and fix.

@mallenexpensify
Copy link
Contributor

Paid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants