Skip to content

Status- Date "Clear After" of Status is Unstable #50170

Closed

Description

@lanitochka17

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


Version Number: 9.0.44-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): applausetester+tw4355353122@applause.expensifail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to Account Settings > Profile
  2. Add a status and click Save

Expected Result:

The Status "Clear After" date should remain stable

Actual Result:

The Status "Clear After" date is unstable

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6623424_1727972963195.Screen_Recording_2024-10-03_at_9.04.45_AM.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021841884588235486621
  • Upwork Job ID: 1841884588235486621
  • Last Price Increase: 2024-10-03
  • Automatic offers:
    • ahmedGaber93 | Contributor | 104251800
    • Krishna2323 | Contributor | 104251856
Issue OwnerCurrent Issue Owner: @jayeshmangwani

Activity

  1. added
    DeployBlockerCash
    on Oct 3, 2024
  2. melvin-bot commented on Oct 3, 2024

    @melvin-bot

    Triggered auto assignment to @jasperhuangg (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  3. github-actions commented on Oct 3, 2024

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  4. added
    External
    Daily
    and removed
    DeployBlockerCash
    Hourly
    on Oct 3, 2024
  5. melvin-bot commented on Oct 3, 2024

    @melvin-bot
  6. changed the title [-]Status- Date "Clear After" of Status is Unstable[/-] [+][$250] Status- Date "Clear After" of Status is Unstable[/+] on Oct 3, 2024
  7. added
    Help Wanted
    on Oct 3, 2024
  8. melvin-bot commented on Oct 3, 2024

    @melvin-bot

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

  9. 11 remaining items

  10. melvin-bot commented on Oct 3, 2024

    @melvin-bot

    📣 @ahmedGaber93 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job
    Please accept the offer 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 📖

  11. changed the title [-][$250] Status- Date "Clear After" of Status is Unstable[/-] [+]Status- Date "Clear After" of Status is Unstable[/+] on Oct 3, 2024
  12. Krishna2323 commented on Oct 3, 2024

    @Krishna2323
    Contributor

    @jasperhuangg, I need 30 mins to start working on this. You can assign me if that's okay.

  13. melvin-bot commented on Oct 3, 2024

    @melvin-bot

    📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job
    Please accept the offer 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 📖

  14. Krishna2323 commented on Oct 3, 2024

    @Krishna2323
    Contributor

    @jasperhuangg, after many tries, I believe I’ve understood the bug. I think it's not worth fixing since it’s a very minor visual issue, and I believe it’s happening due to the migration to useOnyx. The PR changes are very straightforward—we just prevented multiple navigation. Please check it out and let me know your thoughts. Thanks!

  15. mkzie2 commented on Oct 4, 2024

    @mkzie2
    Contributor

    Proposal

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

    • When saving status, the Status "Clear After" date is changed to "Never" for a while.

    What is the root cause of that problem?

    • When clicking "Save" button, we call User.clearDraftCustomStatus():

    User.clearDraftCustomStatus();

    it makes the dataToShow:

    const dataToShow = draftClearAfter || currentUserClearAfter;

    is "", and because the modal is not closed immediately:

    navigateBackToPreviousScreenTask.current = InteractionManager.runAfterInteractions(() => {

    so the "Never" is the fallback value.

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

    Remove:

    User.clearDraftCustomStatus();

    will fix the issue since we already have the cleanup function:

    return () => User.clearDraftCustomStatus();

    What alternative solutions did you explore? (Optional)

    Remove the InteractionManager.runAfterInteractions in:

    navigateBackToPreviousScreenTask.current = InteractionManager.runAfterInteractions(() => {
    navigateBackToPreviousScreen();
    });

    and just need navigateBackToPreviousScreen();

  16. mkzie2 commented on Oct 4, 2024

    @mkzie2
    Contributor

    @jasperhuangg It is easy to reproduce the bug ("Never" is displayed for a while) in IOS/Android native and based on RCA, I think it is not related to @Krishna2323 's PR:

    Screen.Recording.2024-10-04.at.10.14.46.mov
  17. ahmedGaber93 commented on Oct 4, 2024

    @ahmedGaber93
    Contributor

    @jasperhuangg, ..., and I believe it’s happening due to the migration to useOnyx. The PR changes are very straightforward—we just prevented multiple navigation.

    @jasperhuangg I agree with that, this issue not a regression from our fix, it seems it is appeared after migration to useOnyx. I think we should fix it here as a new issue.

  18. jasperhuangg commented on Oct 7, 2024

    @jasperhuangg
    Contributor

    Yeah agree that we don't really need to fix this. Also agree that it isn't a regression from the PR, and that it was caused separately by the useOnyx migrations.

  19. mkzie2 commented on Nov 25, 2024

    @mkzie2
    Contributor

    @jasperhuangg A similar issue is reported in here. I think we should re-open this one.

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

Metadata

Metadata

Labels

BugDailyEngineeringExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions