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

UBER-532: Copy issue URL works wrong #3529

Merged
merged 7 commits into from
Aug 2, 2023
Merged

UBER-532: Copy issue URL works wrong #3529

merged 7 commits into from
Aug 2, 2023

Conversation

mixerka
Copy link
Contributor

@mixerka mixerka commented Jul 27, 2023

… set in web, so there is a fallback for web

Contribution checklist

Brief description

Fix links for the application. Add optional parameter to the metadata.

Checklist

  • - UI test added to added/changed functionality?
  • - Screenshot is added to PR if applicable ?
  • - Does the code work? Check whether function and logic are correct.
  • - Does Changelog.md is updated with changes?
  • - Does the translations are up to date?
  • - Does it well tested?
  • - Tested for Chrome.
  • - Tested for Safari.
  • - Go through the changed code looking for typos, TODOs, commented LOCs, debugging pieces of code, etc.
  • - Rebase your branch onto master and upstream branch
  • - Is there any redundant or duplicate code?
  • - Are required links are linked to PR?
  • - Does new code is well documented ?

Related issues

A list of closed updated issues

@@ -32,6 +33,8 @@
import login from '../plugin'
import { getInviteLink } from '../utils'
import InviteWorkspace from './icons/InviteWorkspace.svelte'

Copy link
Member

Choose a reason for hiding this comment

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

Please use rush format

@@ -64,7 +65,9 @@ export async function issueLinkProvider (doc: Doc): Promise<string> {

export function generateIssueShortLink (issueId: string): string {
const location = getCurrentResolvedLocation()
return `${window.location.protocol}//${window.location.host}/${workbenchId}/${location.path[1]}/${trackerId}/${issueId}`
Copy link
Member

Choose a reason for hiding this comment

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

It should be more places like this one, so please check for window.location usage.

mixerka added 3 commits August 1, 2023 16:44
… set in web, so there is a fallback for web

Signed-off-by: Maksim Karmatskikh <mkarmatskih@gmail.com>
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
mixerka added 4 commits August 1, 2023 17:36
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
@BykhovDenis BykhovDenis merged commit 1d06407 into main Aug 2, 2023
@BykhovDenis BykhovDenis deleted the UBER-532 branch August 2, 2023 04:43
annano pushed a commit that referenced this pull request Aug 24, 2023
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants