Skip to content

Task - Infinite skeleton loader when creating a task with a VOIP assignee #40103

Closed

Description

@kbecciv

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: 1.4.62.0
Reproducible in staging?: y
Reproducible in production?: y
Issue found when executing PR: #38730
Issue reported by: Applause - Internal Team

Action Performed:

  1. Create a new task with an assignee of +18183305299

Expected Result:

The task does not get created, the error message is displayed.

Actual Result:

Infinite skeleton loader when creating a task with a VOIP assignee.

Workaround:

n/a

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

Bug6445034_1712778596740.1712776910736_bandicam_2024-04-10_21-19-48-132.mp4

View all open jobs on GitHub

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Apr 11, 2024
  2. melvin-bot commented on Apr 11, 2024

    @melvin-bot

    Triggered auto assignment to @laurenreidexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. kbecciv commented on Apr 11, 2024

    @kbecciv
    Author

    We think that this bug might be related to #vip-vsb

  4. kbecciv commented on Apr 11, 2024

    @kbecciv
    Author

    @laurenreidexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

  5. nkdengineer commented on Apr 11, 2024

    @nkdengineer
    Contributor

    Proposal

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

    Infinite skeleton loader when creating a task with a VOIP assignee.

    What is the root cause of that problem?

    We clear the report in faliureData here so when the task isn't created the report show skeleton.

    App/src/libs/ReportUtils.ts

    Lines 5145 to 5150 in 7d19f82

    {
    onyxMethod: Onyx.METHOD.SET,
    key: `${ONYXKEYS.COLLECTION.REPORT}${assigneeChatReportID}`,
    value: null,
    },
    {

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

    1. We should generate an error for createdChat instead of clearing the chat report in failureData. Or back-end should also return the createChat error for chatReport in CreateTask API as well.

    2. We also shouldn't clear the optimistic personal detail because now we keep the report data, the skeleton will display in header when the request is fail. We should keep the optimistic personal detail to fix this as well and then when we clear the report, we already have the logic to clear optimistic personal detail in deleteReport function.

    failureData.push(
        {
            onyxMethod: Onyx.METHOD.MERGE,
            key: `${ONYXKEYS.COLLECTION.REPORT}${assigneeChatReportID}`,
            value: {
                errorFields: {
                    createChat: {
                        0: ...// error create chat here
                    }
                }
            },
        },
    );
    

    App/src/libs/ReportUtils.ts

    Lines 5145 to 5159 in 7d19f82

    {
    onyxMethod: Onyx.METHOD.SET,
    key: `${ONYXKEYS.COLLECTION.REPORT}${assigneeChatReportID}`,
    value: null,
    },
    {
    onyxMethod: Onyx.METHOD.MERGE,
    key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${assigneeChatReportID}`,
    value: {[optimisticChatCreatedReportAction.reportActionID]: {pendingAction: null}},
    },
    // If we failed, we want to remove the optimistic personal details as it was likely due to an invalid login
    {
    onyxMethod: Onyx.METHOD.MERGE,
    key: ONYXKEYS.PERSONAL_DETAILS_LIST,
    value: {

    OPTIONAL: We also can keep the task report in failureData and generate the error as well.

    What alternative solutions did you explore? (Optional)

    NA

  6. laurenreidexpensify commented on Apr 12, 2024

    @laurenreidexpensify
    Contributor

    This doesn't seem a high value bug to fix given tasks + VOIP assignment are likely an edge case at this point in development. Am closing.

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions