Skip to content

[HOLD for #16296][$1000] pronouns search breaks when we reload on pronouns search page #20095

Closed

Description

@kavimuru

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:

  • Login to NewExpensify on web at www.staging.expensify.com
  • Go to Settings > Profile > Pronouns Page.
  • Search and select a pronoun if you don't have one
  • You'll be redirected to the Profile Page > click Pronoun again
  • Search for another pronoun but do not select it
  • Refresh browser
  • You'll see the pronoun you've previously selected after the page load
  • Search and Select a different pronoun
  • You'll be redirected to the Profile Page.
  • Click on the Pronouns menu item again.
  • You'll notice that this time, the chosen pronoun is not prefilled in the search box, which should be the expected behaviour.

Expected Result:

Pronouns search page should display current selection when opened

Actual Result:

Pronouns search page displays blank result with blank search if we search anything, reload, select any result and reopen the search page.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.22-0
Reproducible in staging?: y
Reproducible in production?: y
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

pronouns.break.on.search.page.reload.mp4
Recording.855.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685609323316469

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c81d6b609195757b
  • Upwork Job ID: 1665772405170659328
  • Last Price Increase: 2023-06-12

Activity

  1. added
    Daily
    Bug
    on Jun 2, 2023
  2. melvin-bot commented on Jun 2, 2023

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Jun 2, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. Christinadobrzyn commented on Jun 2, 2023

    @Christinadobrzyn
    Contributor

    this is really difficult to reproduce - I can't get it to happen consistently with the above steps... It sees like just a bug with the loading or something?

  5. Prince-Mendiratta commented on Jun 3, 2023

    @Prince-Mendiratta
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    In this issue, we can notice that when we refresh the website on the Pronouns page, change the pronoun and navigate back to the pronouns page, the default selected option is not displayed.

    What is the root cause of that problem?

    Another component that uses a similar mechanism is the Select Timezone page. You will notice that the bug is not reproducible in this page, thus confirming this is indeed an issue with this page.

    This is an issue with the component lifecycle and the state. In the normal lifecycle of the component, the loadPronouns function is called, which sets the initiallyFocusedOption and then the state's searchValue obtains it's value from it.

    When we refresh the site on the Pronouns Page, choose a pronoun, then the this.onChangeText(); function is called, setting the searchValue to be empty. Then, the loadPronouns function updates the this.initiallyFocusedOption. At this point however, since we only set the state search value in the constructor, it causes the empty string to be used.

    What changes do you think we should make in order to solve the problem?

    We should update the state searchValue after the loadPronouns function is called in the componentDidUpdate with the value this.initiallyFocusedOption.text.

    What alternative solutions did you explore? (Optional)

    None

  6. Prince-Mendiratta commented on Jun 3, 2023

    @Prince-Mendiratta
    Contributor

    @Christinadobrzyn The repro steps are indeed a bit vague, here is a bit readable way to reproduce this error:

    1. Login to ND.
    2. Go to Settings > Profile > Pronouns Page.
    3. Refresh the website.
    4. Enter a text in the search box and select a new pronoun.
    5. You'll be redirected to the Profile Page.
    6. Click on the Pronouns menu item again.
    7. You'll notice that this time, the chosen pronoun is not prefilled in the search box, which should be the expected behaviour.

    In order to confirm this is a bug on this page, you can try to reproduce this bug on the Select a Timezone Page. You'll notice that on Step 7, the new timezone is prefilled in the search box, confirming this is a bug on the Pronouns Page.

  7. Christinadobrzyn commented on Jun 5, 2023

    @Christinadobrzyn
    Contributor

    @Prince-Mendiratta - this is soooo helpful and thoughtful of you to test/clarify. I am able to reproduce it. Going to add an external to this.

  8. Prince-Mendiratta commented on Jun 5, 2023

    @Prince-Mendiratta
    Contributor

    @Christinadobrzyn Glad to be able to help! :)

  9. added
    External
    on Jun 5, 2023
  10. changed the title [-] pronouns search breaks when we reload on pronouns search page[/-] [+][$1000] pronouns search breaks when we reload on pronouns search page[/+] on Jun 5, 2023
  11. melvin-bot commented on Jun 5, 2023

    @melvin-bot
  12. 33 remaining items

  13. dhanashree-sawant commented on Jul 4, 2023

    @dhanashree-sawant

    Hi @Christinadobrzyn, yes now it is working correct. Seems to be resolved.

  14. priyeshshah11 commented on Jul 4, 2023

    @priyeshshah11
    Contributor

    @priyeshshah11 you are eligible for the speed bonus per this comment - #16296 (comment) were you not paid that extra 50%?

    @Christinadobrzyn No I did not & I don't think I am even eligible for that 50% bonus but what I was referring to was the compensation for fixing #20095.

  15. Christinadobrzyn commented on Jul 5, 2023

    @Christinadobrzyn
    Contributor

    @priyeshshah11 from what I can see in the Upwork job https://www.upwork.com/jobs/~010517ed943d1f3420, you were paid for your work on #16296. If there was an issue with that payment can you please comment in the other GH?

    In terms of a reporting payment, this GH was created internally so there were no external reporters (at least from what I can see)

    However, on occasion, we will compensate external contributors who report the same issue that was found by an internal QA team or engineer. That was the case here.

    @dhanashree-sawant found a bug that we were already fixing in #16296. Since there was no external reporter, I chose to compensate @dhanashree-sawant for finding this bug. Also I'm paying out @Prince-Mendiratta because they were monumental in helping me narrow down the bug.

    Related to this comment #20095 (comment) - so this GH is basically an exception. Hopefully that clarifies but let me know if you have any questions!

  16. Christinadobrzyn commented on Jul 5, 2023

    @Christinadobrzyn
    Contributor

    Hi @Christinadobrzyn, yes now it is working correct. Seems to be resolved.

    Yay! Paying out this GH based on my comment here - #20095 (comment)

    @Prince-Mendiratta $250
    @dhanashree-sawant $250

    closed Upwork job https://www.upwork.com/jobs/~01c81d6b609195757b
    Closing this issue! Thanks!

  17. mountiny commented on Jul 8, 2023

    @mountiny
    Contributor

    @Christinadobrzyn i believe we should pay @priyeshshah11 here for this fix too as his pr resolved this bug while also migrated to the functional component which was paid in the other issue.

    I believe that would be $1000 for the pr to them.

    Let me know if anything if this works 🙇

  18. Christinadobrzyn commented on Jul 10, 2023

    @Christinadobrzyn
    Contributor

    Awesome, sent an offer to a new Upwork job -

    Internal job - https://www.upwork.com/ab/applicants/1678512838515896320/job-details
    External job - https://www.upwork.com/jobs/~01ec86bf1d98921bf1

    @priyeshshah11 Let me know when you've accepted the job and I'll pay it out!

  19. aimane-chnaif commented on Jul 10, 2023

    @aimane-chnaif
    Contributor

    Coming from #16296 (comment), I might also be eligible.

  20. mountiny commented on Jul 10, 2023

    @mountiny
    Contributor

    Yep C+ should be paid the same as the contributor.

  21. Christinadobrzyn commented on Jul 10, 2023

    @Christinadobrzyn
    Contributor

    Invited @aimane-chnaif also to the Upwork job. The job is these links #20095 (comment)

    I'm very confused as I thought we pay in the Upwork job related to the fix so that is this job #16296 (comment)

    Since @aimane-chnaif and @priyeshshah11 aren't assigned to this GH. I'm confused I pay @rushatgabhane as they are assigned to this job?

  22. priyeshshah11 commented on Jul 11, 2023

    @priyeshshah11
    Contributor

    Awesome, sent an offer to a new Upwork job -

    Internal job - https://www.upwork.com/ab/applicants/1678512838515896320/job-details External job - https://www.upwork.com/jobs/~01ec86bf1d98921bf1

    @priyeshshah11 Let me know when you've accepted the job and I'll pay it out!

    @Christinadobrzyn Accepted, thanks 😊

  23. Christinadobrzyn commented on Jul 11, 2023

    @Christinadobrzyn
    Contributor

    Awesome! I paid @aimane-chnaif and @priyeshshah11 $1000 for the fix of #16296 (comment)

    I think this is good? Let me know if anything else needs to happen! Thanks

  24. rushatgabhane commented on Jul 12, 2023

    @rushatgabhane
    Member

    no pay for me here. good to close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions