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

[kie-issues#1755] - Display the correct git URL when creating a snippet, gist, or repo in the online editor #2863

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LightGuard
Copy link
Contributor

@LightGuard LightGuard commented Jan 16, 2025

Closes: apache/incubator-kie-issues#1755

  • Send the correct URL to the alert
  • Call the correct alert
  • Use the provided URL if available

The code has been using successfullyUpdatedGistOrSnippetAlert instead of successfullyCreatedGistOrSnippetAlert. The alert was also not setup to properly make use of the provided URL when the alert was shown.

* Send the correct URL to the alert
* Call the correct alert
* Use the provided URL if available

The code has been using `successfullyUpdatedGistOrSnippetAlert` instead
of `successfullyCreatedGistOrSnippetAlert`. The alert was also not setup to
properly make use of the provided URL when the alert was shown.

Signed-off-by: Jason Porter <lightguard.jp@gmail.com>
@jomarko jomarko self-requested a review January 17, 2025 06:11
Copy link
Contributor

@jomarko jomarko left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. I can confirm that creating of:

  • github gist
  • github repository
  • bitbucket snippet
  • bitbucket repository

does not include .git substring in the alert message shown after the operation is done.

However, the 'update' and 'push' operation for mentioned 4 cases still include .git substring. Should we handle also 'update' and 'push' operations?

@kbowers-ibm kbowers-ibm self-requested a review January 17, 2025 12:56
@@ -225,12 +225,12 @@ export function useGitIntegrationAlerts(workspace: ActiveWorkspace) {

const successfullyCreatedGistOrSnippetAlert = useGlobalAlert(
useCallback(
({ close }) => {
({ close }, staticArgs?: { url: string }) => {
Copy link
Member

Choose a reason for hiding this comment

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

Could you add this to all gist related alerts here?

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.

Incorrect git url in the alert when adding a gist/snippet/repo
3 participants