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

[HOLD for payment 2023-09-29] [HOLD for payment 2023-09-27] Web - Pressing CTRL+SHIFT+K opens Send message page with random URL params #27710

Closed
1 of 6 tasks
kbecciv opened this issue Sep 18, 2023 · 17 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@kbecciv
Copy link

kbecciv commented Sep 18, 2023

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


Action Performed:

Note: make sure you don't have policy room permission

  1. Press CTRL+SHIFT+K shortcut to open the Send message page
  2. Observe the URL on the browser address bar

Expected Result:

The URL should show /new without any params (just like when we open it from FAB)

Actual Result:

The URL contains some random params

Workaround:

Unknown

Platforms:

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

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

Version Number: 1.3.71.5
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-09-18.at.01.07.11.mov
Recording.4590.mp4

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

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Sep 18, 2023
@OSBotify
Copy link
Contributor

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

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

Triggered auto assignment to @jasperhuangg (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@Pluto0104
Copy link
Contributor

Proposal

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

Web - When pressing CTRL+SHIFT+K, the "Send Message" page opens with random URL parameters.

What is the root cause of that problem?

The root cause is from beta feature.

Navigation.navigate(ROUTES.NEW_CHAT);

The app works correctly when the beta policy room feature is enabled. However, for normal users, it navigates to "new/chat," which doesn't exist due to the following code:
{Permissions.canUsePolicyRooms(props.betas) ? (
<OnyxTabNavigator
id={CONST.TAB.NEW_CHAT_TAB_ID}
tabBar={({state, navigation, position}) => (
<TabSelector
state={state}
navigation={navigation}
position={position}
/>
)}
>
<TopTab.Screen
name={CONST.TAB.NEW_CHAT}
component={NewChatPage}
/>
<TopTab.Screen
name={CONST.TAB.NEW_ROOM}
component={WorkspaceNewRoomPage}
/>
</OnyxTabNavigator>
) : (
<NewChatPage />

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

To address this issue, I propose modifying this code:

Navigation.navigate(ROUTES.NEW_CHAT);

Navigation.navigate(Permissions.canUsePolicyRooms(this.props.betas) ? ROUTES.NEW_CHAT : ROUTES.NEW);

// or

Navigation.navigate(ROUTES.NEW);

What alternative solutions did you explore? (Optional)

N/A

@situchan
Copy link
Contributor

@Pluto0104's proposal (2nd solution) looks good to me. This is consistent with navigating from FAB.

icon: Expensicons.ChatBubble,
text: props.translate('sidebarScreen.fabNewChat'),
onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.NEW)),

@jasperhuangg
Copy link
Contributor

Ah thank you for the proposals guys. I already started work on this before seeing them.

Please only comment on issues that have the Bug and External labels applied if you want your proposals to be reviewed/accepted. Thanks!

@jasperhuangg jasperhuangg added the Reviewing Has a PR in review label Sep 18, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Hourly KSv2 labels Sep 18, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 20, 2023
@melvin-bot melvin-bot bot changed the title Web - Pressing CTRL+SHIFT+K opens Send message page with random URL params [HOLD for payment 2023-09-27] Web - Pressing CTRL+SHIFT+K opens Send message page with random URL params Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-09-27. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

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

For reference, here are some details about the assignees on this issue:

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

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

@roryabraham roryabraham removed the DeployBlockerCash This issue or pull request should block deployment label Sep 20, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Sep 22, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-09-27] Web - Pressing CTRL+SHIFT+K opens Send message page with random URL params [HOLD for payment 2023-09-29] [HOLD for payment 2023-09-27] Web - Pressing CTRL+SHIFT+K opens Send message page with random URL params Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-09-29. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

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

For reference, here are some details about the assignees on this issue:

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

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

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Sep 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 29, 2023

@jasperhuangg, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@jasperhuangg jasperhuangg added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

Bug0 Triage Checklist (Main S/O)

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

@peterdbarkerUK, @jasperhuangg, @situchan Still overdue 6 days?! Let's take care of this!

@peterdbarkerUK
Copy link
Contributor

peterdbarkerUK commented Oct 3, 2023

Double checking what steps to follow in this case (for my own paper trail)

@peterdbarkerUK
Copy link
Contributor

Confirmed that only the reporter gets paid here, I'm sorry. As @jasperhuangg said: Please only comment on issues that have the Bug and External labels applied if you want your proposals to be reviewed/accepted. Thanks!

I made a mistake with the payment, sending it as a bonus tied to this job instead of creating a new one. I've updated the other issue
so I believe there's no further action required, but please reopen if something goes wrong.

@situchan
Copy link
Contributor

@peterdbarkerUK I think C+ payment for PR review is pending. Can you please check?

@peterdbarkerUK
Copy link
Contributor

I made a mistake here, and didn't realise @situchan had reviewed the PR.

@situchan I've sent you an offer, please accept and bump me here when you have!

@situchan
Copy link
Contributor

situchan commented Nov 2, 2023

@peterdbarkerUK accepted. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

7 participants