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

Refresh page after workflow uplaod to display new workflow #2915

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

sixsage
Copy link
Collaborator

@sixsage sixsage commented Oct 9, 2024

Purpose

Fix #2736
The user had to manually refresh the page after uploading a JSON workflow - the change is to automatically refresh

Changes

Invoke reload after uploading workflow.

Demo

Before
upload_refresh_before
After
chrome_Yojmsm8WZB

@sixsage sixsage self-assigned this Oct 9, 2024
@sixsage sixsage added the fix label Oct 9, 2024
@sixsage sixsage requested a review from bobbai00 October 9, 2024 11:20
@sixsage sixsage marked this pull request as ready for review October 9, 2024 11:20
Copy link
Collaborator

@bobbai00 bobbai00 left a comment

Choose a reason for hiding this comment

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

Left some comments

@GspikeHalo GspikeHalo self-assigned this Oct 10, 2024
Copy link
Collaborator

@bobbai00 bobbai00 left a comment

Choose a reason for hiding this comment

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

Left some minors.

...this.searchResultsComponent.entries,
new DashboardEntry(uploadedWorkflow),
];
observer.next();
Copy link
Collaborator

Choose a reason for hiding this comment

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

when success, use notification service to log a successful message

Copy link
Collaborator

Choose a reason for hiding this comment

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

when success, use notification service to log a successful message

If I add 'this.notificationService.success("Upload Workflow Successful");' here, there will be two pop-up notifications after success. Should I move the notification from above to below?

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

Successfully merging this pull request may close these issues.

The workflow list is not refreshed when a workflow json is uploaded
3 participants