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

(Tweaks to the Create Expense Flow) - follow-up - change workspace subtitle #55863

Conversation

JKobrynski
Copy link
Contributor

@JKobrynski JKobrynski commented Jan 28, 2025

Explanation of Change

Check this comment for details.

Fixed Issues

$ #52981
PROPOSAL: N/A

Tests

  1. Log into the app
  2. Click the FAB
  3. Select 'Create expense' option
  4. Select 'Manual' variant
  5. Check participants selector's Workspace section, make sure the subtitle says "Submits to X" (where X is the name of the person that the expense is submitted to in that workspace)

Disclaimer:

I have a workspace on my account that is linked to an account that can't be found, for that I implemented a fallback that just displays "Workspace", same as before.

  • Verify that no errors appear in the JS console

Offline tests

N/A

QA Steps

Same as Tests section above

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

MacOS: Chrome / Safari
Screen.Recording.2025-01-28.at.15.32.19.mov

@JKobrynski JKobrynski marked this pull request as ready for review January 28, 2025 14:41
@JKobrynski JKobrynski requested a review from a team as a code owner January 28, 2025 14:41
@melvin-bot melvin-bot bot requested review from abdulrahuman5196 and removed request for a team January 28, 2025 14:41
Copy link

melvin-bot bot commented Jan 28, 2025

@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

Copy link
Contributor

🚧 @trjExpensify has triggered a test build. You can view the workflow run here.

@trjExpensify
Copy link
Contributor

Running a build and couldn't see it in the screenie, but just checking @JKobrynski, when you tap on the participant does the submitsTo carry through to the subtitle of the To: row on the confirmation screen as well?

@trjExpensify
Copy link
Contributor

Assigning this to @mananjadhav as he's been on the PRs for this issue.

@trjExpensify trjExpensify requested review from mananjadhav and removed request for abdulrahuman5196 January 28, 2025 14:49
@trjExpensify
Copy link
Contributor

Why does this one say Workspace not the submitsTo? 🤔

image

This comment has been minimized.

@trjExpensify
Copy link
Contributor

Okay, two things from me:

  • Why do some have the submitsTo and others Workspace?
image
  • Can we keep the submitsTo persisted on the confirmation page, please?
image

@grgia grgia self-requested a review January 28, 2025 16:59
@mananjadhav
Copy link
Collaborator

@JKobrynski Can you check the comment from @trjExpensify ?

@trjExpensify
Copy link
Contributor

Ah shit, also spotted another one for the list. We've updated it in the sub-header and in details:

image image

@JKobrynski
Copy link
Contributor Author

Why do some have the submitsTo and others Workspace?

I added it as a fallback, just so it doesn't show Submits to (without an actual name) in some edge cases. This particular one was probably caused by this issue that was already fixed. I updated the PR with the latest main and can't see these workspaces anymore.

Besides that, the PR was updated, all comments have been addressed, feel free to give it another go!

CC: @mananjadhav @trjExpensify

Copy link
Contributor

@grgia grgia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, could you fix lint?

grgia
grgia previously approved these changes Jan 30, 2025
@mananjadhav
Copy link
Collaborator

Just finished the code review, will test this now.

@mananjadhav
Copy link
Collaborator

@JKobrynski I can see still the workspaces that were archived. Am I missing something?

Screenshot 2025-01-30 at 9 03 57 PM

@JKobrynski
Copy link
Contributor Author

@mananjadhav I tried to reproduce this but I couldn't. I also searched through the code and did a bit of debugging to try and find possible causes of this but I think it's not an efficient way to do this so here are a couple solutions that I'd like to suggest:

  1. If it's always the same workspace/workspaces that don't have that display name, can you add me to it/them? I will take a look at all details to understand how that differs from the workspaces that I have. If it's a different workspace each time you reproduce this, it won't help.

  2. You can export your Onyx state and send it to me so I can reproduce it

  3. If you are able to reproduce this on dev, you can add the following code to ReportUtils.ts

    if ((isPolicyExpenseChat(report) && !!report?.isOwnPolicyExpenseChat) || isExpenseReport(report)) {
        const submitToAccountID = getSubmitToAccountID(getPolicy(report?.policyID), report);
        const submitsToAccountDetails = allPersonalDetails?.[submitToAccountID];
        const subtitle = submitsToAccountDetails?.displayName ?? submitsToAccountDetails?.login;
+       console.log('POLICY ID', report?.policyID);
+       console.log('POLICY', getPolicy(report?.policyID));
+       console.log('SUBMIT TO ACCOUNT ID', submitToAccountID);
+       console.log('SUBMIT TO ACCOUNT DETAILS', submitsToAccountDetails);
+       console.log('SUBTITLE', subtitle);

        if (!subtitle || !config.isCreateExpenseFlow) {
            return translateLocal('workspace.common.workspace');
        }

        return translateLocal('iou.submitsTo', {name: subtitle ?? ''});
    }

and look at the console to locate the data of the report that has the missing subtitle, then paste a screenshot of it here so we can discuss where exactly it fails to retrieve it.

Let me know what you think!

@mananjadhav
Copy link
Collaborator

mananjadhav commented Feb 4, 2025

@JKobrynski Here's an data of one the policies. Now I am not sure why the data is different for both the policies on two different platforms.

**Web**
POLICY ID 8A152FCBCD316665
POLICY {
    "isFromFullPolicy": false,
    "id": "8A152FCBCD316665",
    "name": "Applause's Workspace 1",
    "role": "user",
    "type": "corporate",
    "owner": "[email protected]",
    "ownerAccountID": 18593373,
    "outputCurrency": "UAH",
    "avatarURL": "",
    "employeeList": {
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0024",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "",
            "role": "admin",
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "admin",
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0050",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0022",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0042",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0057",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "cgorecki",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0039",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0005",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0013",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "employee graham",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0010",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0054",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0018",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0031",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0006",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "E0088",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0045",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0043",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0036",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "managerbob",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0027",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0034",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "caitlinw",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "dcardoza",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "rdonato",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "christina",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0020",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0011",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "michael",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "garrett",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "ladue",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0003",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0030",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0026",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "12345",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0044",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0025",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0021",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0028",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0038",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0023",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0002",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0007",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0052",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "123456",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0033",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0056",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0037",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0049",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "employeeUserID": "0059",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "forwardsTo": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        },
        "[email protected]": {
            "email": "[email protected]",
            "role": "user",
            "rules": [
                {
                    "tag": ""
                }
            ],
            "submitsTo": "[email protected]"
        }
    },
    "isPolicyExpenseChatEnabled": true,
    "lastModified": 1737741335735176,
    "chatReportIDAnnounce": 7183896727304533,
    "chatReportIDAdmins": 2034737232137592,
    "autoReimbursement": {
        "limit": 0
    },
    "areCategoriesEnabled": true,
    "areTagsEnabled": false,
    "areDistanceRatesEnabled": false,
    "arePerDiemRatesEnabled": false,
    "areWorkflowsEnabled": true,
    "areConnectionsEnabled": false,
    "areInvoicesEnabled": true,
    "areExpensifyCardsEnabled": false,
    "areCompanyCardsEnabled": false,
    "tax": {
        "trackingEnabled": false
    },
    "areRulesEnabled": false,
    "eReceipts": true,
    "shouldShowCustomReportTitleOption": false,
    "shouldShowAutoApprovalOptions": false,
    "shouldShowAutoReimbursementLimitOption": false,
    "maxExpenseAmountNoReceipt": 2500,
    "maxExpenseAmount": 200000,
    "maxExpenseAge": 90,
    "approvalMode": "ADVANCED",
    "invoice": {
        "markUp": 0
    },
    "address": [],
    "approver": "[email protected]",
    "areReportFieldsEnabled": false,
    "autoReimbursementLimit": 0,
    "autoReporting": true,
    "autoReportingFrequency": "manual",
    "autoReportingOffset": 1,
    "connections": {},
    "customUnits": {
        "2D44B11D00AF1": {
            "attributes": {
                "taxEnabled": false,
                "unit": "mi"
            },
            "customUnitID": "2D44B11D00AF1",
            "defaultCategory": "",
            "enabled": true,
            "name": "Distance",
            "rates": {
                "9F0049FE3A05A": {
                    "attributes": [],
                    "currency": "UAH",
                    "customUnitRateID": "9F0049FE3A05A",
                    "enabled": true,
                    "name": "Default Rate",
                    "rate": 67,
                    "subRates": []
                }
            }
        }
    },
    "defaultBillable": false,
    "description": "",
    "disabledFields": {
        "defaultBillable": true,
        "reimbursable": false
    },
    "fieldList": {
        "text_title": {
            "defaultValue": "{report:type} {report:startdate}",
            "deletable": true,
            "disabledOptions": [],
            "externalIDs": [],
            "fieldID": "text_title",
            "isTax": false,
            "keys": [],
            "name": "title",
            "orderWeight": 0,
            "target": "expense",
            "type": "formula",
            "values": []
        }
    },
    "harvesting": {
        "enabled": false
    },
    "hasMultipleTagLists": false,
    "mccGroup": {
        "airlines": {
            "category": "Uncategorized",
            "groupID": "airlines"
        },
        "commuter": {
            "category": "Uncategorized",
            "groupID": "commuter"
        },
        "gas": {
            "category": "Uncategorized",
            "groupID": "gas"
        },
        "goods": {
            "category": "Uncategorized",
            "groupID": "goods"
        },
        "groceries": {
            "category": "Uncategorized",
            "groupID": "groceries"
        },
        "hotel": {
            "category": "Uncategorized",
            "groupID": "hotel"
        },
        "mail": {
            "category": "Uncategorized",
            "groupID": "mail"
        },
        "meals": {
            "category": "Uncategorized",
            "groupID": "meals"
        },
        "rental": {
            "category": "Uncategorized",
            "groupID": "rental"
        },
        "services": {
            "category": "Uncategorized",
            "groupID": "services"
        },
        "taxi": {
            "category": "Uncategorized",
            "groupID": "taxi"
        },
        "uncategorized": {
            "category": "Uncategorized",
            "groupID": "uncategorized"
        },
        "utilities": {
            "category": "Uncategorized",
            "groupID": "utilities"
        }
    },
    "preventSelfApproval": false,
    "reimbursementChoice": "reimburseManual",
    "requiresCategory": true,
    "requiresTag": false,
    "rules": {
        "approvalRules": [],
        "expenseRules": []
    }
}

SUBMIT TO ACCOUNT ID 18593373
SUBMIT TO ACCOUNT DETAILS  {
    "accountID": 18593373,
    "avatar": "https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_22.png",
    "firstName": "",
    "lastName": "",
    "displayName": "[email protected]",
    "login": "[email protected]",
    "pronouns": "",
    "timezone": {
        "automatic": true,
        "selected": "Europe/Kyiv"
    },
    "phoneNumber": "",
    "validated": true
}

SUBTITLE [email protected]
**iOS**
 (NOBRIDGE) LOG  POLICY ID 8A152FCBCD316665
 (NOBRIDGE) LOG  POLICY {"approvalMode": "ADVANCED", "areCategoriesEnabled": true, "areCompanyCardsEnabled": false, "areConnectionsEnabled": false, "areDistanceRatesEnabled": false, "areExpensifyCardsEnabled": false, "areInvoicesEnabled": true, "arePerDiemRatesEnabled": false, "areRulesEnabled": false, "areTagsEnabled": false, "areWorkflowsEnabled": true, "autoReimbursement": {"limit": 0}, "avatarURL": "", "chatReportIDAdmins": 2034737232137592, "chatReportIDAnnounce": 7183896727304533, "eReceipts": true, "employeeList": [], "id": "8A152FCBCD316665", "invoice": {"markUp": 0}, "isFromFullPolicy": false, "isPolicyExpenseChatEnabled": "1", "lastModified": 1737741335735176, "maxExpenseAge": 90, "maxExpenseAmount": 200000, "maxExpenseAmountNoReceipt": 2500, "name": "Applause's Workspace 1", "outputCurrency": "UAH", "owner": "[email protected]", "ownerAccountID": 18593373, "role": "user", "shouldShowAutoApprovalOptions": false, "shouldShowAutoReimbursementLimitOption": false, "shouldShowCustomReportTitleOption": false, "tax": {"trackingEnabled": false}, "type": "corporate"}
 (NOBRIDGE) LOG  SUBMIT TO ACCOUNT ID -1
 (NOBRIDGE) LOG  SUBMIT TO ACCOUNT DETAILS undefined
 (NOBRIDGE) LOG  SUBTITLE undefined

@JKobrynski
Copy link
Contributor Author

@mananjadhav thank you for uploading these objects, I really appreciate it!! I'm taking a look at them now and I see the employeeList is super long, is it always the case? Do all "failing" workspaces have so many members?

@JKobrynski
Copy link
Contributor Author

Conflicts resolved.

@mananjadhav
Copy link
Collaborator

Yes all the Applause Workspaces seems to have several members.

Copy link
Contributor

github-actions bot commented Feb 5, 2025

🚧 @grgia has triggered a test build. You can view the workflow run here.

Copy link
Contributor

github-actions bot commented Feb 5, 2025

@trjExpensify
Copy link
Contributor

What's the latest here, are we ready to merge?

@mananjadhav
Copy link
Collaborator

mananjadhav commented Feb 6, 2025

As I've said I can still reproduce this issue. @JKobrynski I am also not the admin of these workspaces. Can you probably post on the #expensify-open-source channel to ask someone from the QA team to add you?

@grgia Any thoughts on this? I am not sure if this could be a follow up or it's a workspace specific change. getSubmitToAccountID seems to be returning -1 in some cases. I think this issue is coming from an existing method getAccountIDsByLogins.

@JKobrynski
Copy link
Contributor Author

@mananjadhav it might be some kind of Onyx issue, where the object just doesn't fully load as one of its properties is an array with like 100 records 🤔 I'm going to post on that channel so someone can add me. If you'd like, we can merge this and start working on a follow-up to fix this

@mananjadhav
Copy link
Collaborator

I think we should go ahead with the PR, but will let @grgia decide.

@mananjadhav
Copy link
Collaborator

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified tests pass on all platforms & I tested again on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
mweb-chrome-submits-to.mov
iOS: Native
ios-submits-to.mov
iOS: mWeb Safari mweb-safari-submits-to
MacOS: Chrome / Safari web-submits-to
MacOS: Desktop desktop-submits-to

@mananjadhav
Copy link
Collaborator

We can definitely rule out this PR as an issue, because if I select the workspace and then go back to the list + search you'll end up seeing the Submits To (check iOS video). Seems like because of large participants getAccountsByID isn't working fine. So we'll need to fix it.

@grgia @JKobrynski I think we should create a separate issue for the same.

@melvin-bot melvin-bot bot requested a review from grgia February 6, 2025 16:17
@grgia
Copy link
Contributor

grgia commented Feb 6, 2025

We can definitely rule out this PR as an issue, because if I select the workspace and then go back to the list + search you'll end up seeing the Submits To (check iOS video). Seems like because of large participants getAccountsByID isn't working fine. So we'll need to fix it.

@mananjadhav could you help me out with the description of the issue

@grgia grgia merged commit e0972a9 into Expensify:main Feb 6, 2025
17 of 18 checks passed
@OSBotify
Copy link
Contributor

OSBotify commented Feb 6, 2025

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

Copy link
Contributor

github-actions bot commented Feb 6, 2025

🚀 Deployed to staging by https://github.com/grgia in version: 9.0.95-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 success ✅
🍎🔄 iOS HybridApp 🍎🔄 success ✅

@mananjadhav
Copy link
Collaborator

Sorry I missed it. @grgia let me know if this is fine:

Problem:

  • getAccountsByID is failing to retrieve the "Submits To" display name in workspaces with a large number of members.
  • Possible cause is Onyx might not fully load objects when an array (e.g., employeeList) contains many records, causing missing properties.

Repro Steps:

  1. Add yourself to a workspace with very large group of members. (e.g. policyID: 8A152FCBCD316665)
  2. Click on the FAB > Create Expense.
  3. Go to the participant list and verify that for most workspaces it shows Submits to but ones with large members doesn't show.

Debug Findings:

  • Adding debug logs in ReportUtils.ts confirms that submitsToAccountDetails is sometimes undefined.

@grgia
Copy link
Contributor

grgia commented Feb 10, 2025

@mananjadhav #56609

Copy link
Contributor

🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.95-6 🚀

platform result
🤖 android 🤖 true ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 failure ❌
🍎🔄 iOS HybridApp 🍎🔄 failure ❌

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

Successfully merging this pull request may close these issues.

5 participants