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

[WAITING ON ASHIM] [$1000] Web - Task name is not searchable #21565

Closed
1 of 6 tasks
kbecciv opened this issue Jun 26, 2023 · 39 comments
Closed
1 of 6 tasks

[WAITING ON ASHIM] [$1000] Web - Task name is not searchable #21565

kbecciv opened this issue Jun 26, 2023 · 39 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.

Comments

@kbecciv
Copy link

kbecciv commented Jun 26, 2023

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:

  1. Go to '+" button,
  2. Go to assign task -> add task name -> next
  3. Add assignee and share to whom
  4. Now a new page with a task details should appear.
  5. Go to LHN and search for the particular task.
    Notice that it shows " Results not found".

Expected Result:

The task name should be searchable. It will be easier to search, manage and complete tasks.

Actual Result:

The task name is not searchable causing difficult to locate tasks.

Workaround:

Unknown

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.32-5
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

Untitled_video.2.mov
Recording.5155.mp4

Expensify/Expensify Issue URL:
Issue reported by: @ashimsharma10
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687420359552779

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b3d8ba26f1f06973
  • Upwork Job ID: 1676016162463776768
  • Last Price Increase: 2023-07-10
@kbecciv kbecciv added Daily KSv2 NewFeature Something to build that is a new item. Bug Something is broken. Auto assigns a BugZero manager. labels Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

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

@melvin-bot melvin-bot bot removed the Daily KSv2 label Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

Triggered auto assignment to Design team member for new feature review - @shawnborton (NewFeature)

@shawnborton
Copy link
Contributor

Hmm yeah, I would expect anything that shows up in the LHN to be available in Search.

@mountiny @danieldoglas thoughts on this one?

@hungvu193
Copy link
Contributor

hungvu193 commented Jun 26, 2023

Proposal

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

Web - Task name is not searchable

What is the root cause of that problem?

Our search function has the value includeTasks: false by default, so we couldn't see the task in our search result.

includeTasks = false,

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

In order to see task in our SearchPage, we can add includeTasks: true in our getSearchOptions function.

Also we need to update our createOptions function here to make our search task result has alternateText:

        if (result.isChatRoom || result.isPolicyExpenseChat) {
            result.alternateText = showChatPreviewLine && !forcePolicyNamePreview && lastMessageText ? lastMessageText : subtitle;
        } else if (result.isMoneyRequestReport) {
            result.alternateText = lastMessageTextFromReport.length > 0 ? lastMessageText : Localize.translate(preferredLocale, 'report.noActivityYet');
        } else if (result.isTaskReport) {
// update the alternateText for task report
            result.alternateText = showChatPreviewLine && lastMessageText ? lastMessageTextFromReport :  Localize.translate(preferredLocale, 'report.noActivityYet');
        } else {
            result.alternateText = showChatPreviewLine && lastMessageText ? lastMessageText : LocalePhoneNumber.formatPhoneNumber(personalDetail.login);
        }

And finally update the visibility of the title inside our OptionRow here:

 shouldUseFullTitle={
    this.props.option.isChatRoom || this.props.option.isPolicyExpenseChat || this.props.option.isMoneyRequestReport || 
    this.props.option.isThread || this.props.option.isTaskReport
}

What alternative solutions did you explore? (Optional)

N/A

Result:

Screen.Recording.2023-07-04.at.17.46.20.mov

@melvin-bot melvin-bot bot added the Daily KSv2 label Jun 26, 2023
@jliexpensify
Copy link
Contributor

jliexpensify commented Jun 26, 2023

I can repro this one:

image

Here's my search:

image

Let me know if you want this as External @mountiny @danieldoglas

@melvin-bot melvin-bot bot added the Overdue label Jun 29, 2023
@jliexpensify
Copy link
Contributor

jliexpensify commented Jun 30, 2023

Bump @mountiny and @danieldoglas - are you tackling this one Internally?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 30, 2023
@danieldoglas
Copy link
Contributor

Sorry, I think we were both OOO last week!

@jliexpensify This is not an issue related to the search project for now since this is a local search. It's probably more related to the Tasks project, cc @ thienlnam.

@jliexpensify
Copy link
Contributor

No worries! Might tag @thienlnam again (I don't think it worked in your comment Daniel). Jack - is this something you'd want to tackle internally?

@melvin-bot melvin-bot bot removed the Overdue label Jul 3, 2023
@thienlnam
Copy link
Contributor

Let's make this external! We didn't have this problem before since Tasks were not yet showing up in the LHN. But now that they are, let's handle this - agree it should be included!

@jliexpensify jliexpensify added the External Added to denote the issue can be worked on by a contributor label Jul 3, 2023
@melvin-bot melvin-bot bot changed the title Web - Task name is not searchable [$1000] Web - Task name is not searchable Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01b3d8ba26f1f06973

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

Current assignees @JmillsExpensify and @jliexpensify are eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

📣 @rushatgabhane Please request via NewDot manual requests for the Reviewer role ($1000)

@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

📣 @rushatgabhane We're missing your Upwork ID to automatically send you an offer for the Reviewer role.
Once you apply to the Upwork job, your Upwork ID will be stored and you will be automatically hired for future jobs!

@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

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

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 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

📣 @ashimsharma10 We're missing your Upwork ID to automatically send you an offer for the Reporter role.
Once you apply to the Upwork job, your Upwork ID will be stored and you will be automatically hired for future jobs!

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Jul 12, 2023
@hungvu193
Copy link
Contributor

@rushatgabhane @Beamanator #22734 is now ready for review!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 19, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Web - Task name is not searchable [HOLD for payment 2023-07-26] [$1000] Web - Task name is not searchable Jul 19, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.42-26 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-07-26. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

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:

  • [@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@rushatgabhane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@rushatgabhane] Determine if we should create a regression test for this bug.
  • [@rushatgabhane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@JmillsExpensify / @jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 25, 2023
@jliexpensify
Copy link
Contributor

jliexpensify commented Jul 27, 2023

Hi @rushatgabhane looks like this is due for payment, but the checklist isn't complete. Can you do this please?

Payments:

Upwork job

@jliexpensify
Copy link
Contributor

Bump @rushatgabhane to complete the checklist

@rushatgabhane
Copy link
Member

rushatgabhane commented Aug 2, 2023

  1. The PR that introduced the bug has been identified. Link to the PR: Show tasks in LHN #18931

  2. The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: https://github.com/Expensify/App/pull/18931/files#r1282240904

  3. A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N.A.

  4. Determine if we should create a regression test for this bug. Yes

  5. If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again

    1. Login with any account that has tasks beta.
    2. Go to a chat and assign a task.
    3. Go to search page
    4. Search for that task you assigned
    5. Verify that the task appears in the search result.

@rushatgabhane
Copy link
Member

Created a manual request - https://staging.new.expensify.com/r/6576015972951396

@rushatgabhane rushatgabhane mentioned this issue Aug 2, 2023
56 tasks
@jliexpensify
Copy link
Contributor

Thanks Rushat, I will pay now!

@jliexpensify
Copy link
Contributor

Invited Ashim, paid @hungvu193 and working on the QA list now.

@jliexpensify jliexpensify changed the title [HOLD for payment 2023-07-26] [$1000] Web - Task name is not searchable [WAITING ON ASHIM] [$1000] Web - Task name is not searchable Aug 3, 2023
@jliexpensify
Copy link
Contributor

Paid Ashim and job now removed, thanks everyone!

@JmillsExpensify
Copy link

Reviewed details for @rushatgabhane. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot.

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.
Projects
None yet
Development

No branches or pull requests

10 participants