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

Update message about task start/stop #5296

Merged
merged 1 commit into from
Jun 18, 2019
Merged

Update message about task start/stop #5296

merged 1 commit into from
Jun 18, 2019

Conversation

vzhukovs
Copy link
Contributor

According to issue there is a changes proposal to update message that indicates about task start/stop operation. Changes replaces task number with human readable name.

Снимок экрана 2019-05-29 в 12 07 47

Снимок экрана 2019-05-29 в 12 07 08

Signed-off-by: Vladyslav Zhukovskyi vzhukovs@redhat.com

@vzhukovs vzhukovs added enhancement issues that are enhancements to current functionality - nice to haves Team: Che-Plugins issues related to the che-plugins team labels May 29, 2019
@vzhukovs vzhukovs self-assigned this May 29, 2019
@vparfonov vparfonov requested a review from akosyakov May 29, 2019 09:19
@@ -97,6 +97,9 @@ export interface TaskExitedEvent {
// Exactly one of code and signal will be set.
readonly code?: number;
readonly signal?: string;

readonly label: string;
Copy link
Member

Choose a reason for hiding this comment

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

@vzhukovskii shouldn't the new label and processType properties be optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't think so, in TaskConfiguration these fields are mandatory.

Copy link
Member

Choose a reason for hiding this comment

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

I was just pointing out that making them mandatory means the update to the TaskExitedEvent is a breaking change.
Perhaps we can instead keep an optional config: TaskConfiguration property?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated PR, now there is only optional config field.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, do you mind squashing your commits into a single commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'm going to squash all changes into a single commit before merge. Just waiting for other feedbacks.

@akosyakov akosyakov requested a review from elaihau May 30, 2019 03:26
@akosyakov
Copy link
Member

@elaihau please review

@akosyakov
Copy link
Member

Should not be there a terminal associated with each task where a user can track progress? Why do we need such notifications then? They are a bit annoying.

@akosyakov
Copy link
Member

@elaihau @RomanNikitenko i would prefer if we implement #5269 (comment) instead. It would align with VS Code instead of spamming with notification.

@@ -97,6 +97,8 @@ export interface TaskExitedEvent {
// Exactly one of code and signal will be set.
readonly code?: number;
readonly signal?: string;

readonly config?: TaskConfiguration;
Copy link
Contributor

Choose a reason for hiding this comment

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

i know that having an optional property does not break API. but is it good to make config optional? all exited tasks have a TaskConfiguration, so it does not look optional conceptually. what do you think @akosyakov ?

@elaihau
Copy link
Contributor

elaihau commented May 30, 2019

@elaihau @RomanNikitenko i would prefer if we implement #5269 (comment) instead. It would align with VS Code instead of spamming with notification.

@vince-fugnitto agreed with you, Anton. Also @vince-fugnitto suggested that we probably could move theia notifications, which for now show up at the top, to the bottom right to match the behaviour of VsCode. From there we could even allow users to view the notification history and perform a search. What do you think? @RomanNikitenko @akosyakov

@vparfonov
Copy link
Contributor

@akosyakov Looks like in this PR we don't change Theia behavior but change message in current notification. So can we go with it for now?

@vince-fugnitto
Copy link
Member

@akosyakov Looks like in this PR we don't change Theia behavior but change message in current notification. So can we go with it for now?

I'm not sure if the comments have been addressed, @elaihau can you clarify?

@elaihau
Copy link
Contributor

elaihau commented Jun 12, 2019

@akosyakov Looks like in this PR we don't change Theia behavior but change message in current notification. So can we go with it for now?

I'm not sure if the comments have been addressed, @elaihau can you clarify?

@vince-fugnitto thank you for pointing it out.

@vparfonov The problem I found in my testing has not been fixed yet.

@vparfonov
Copy link
Contributor

@akosyakov Looks like in this PR we don't change Theia behavior but change message in current notification. So can we go with it for now?

I'm not sure if the comments have been addressed, @elaihau can you clarify?

@vince-fugnitto thank you for pointing it out.

@vparfonov The problem I found in my testing has not been fixed yet.

Yes, thanks I understand now

Copy link
Contributor

@elaihau elaihau 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. please squash commits before merge.

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs vzhukovs force-pushed the task_message_update branch from fdcf442 to 6e93774 Compare June 14, 2019 13:13
@vzhukovs
Copy link
Contributor Author

@akosyakov can I merge this PR?

@vzhukovs vzhukovs merged commit 9395eda into master Jun 18, 2019
@vzhukovs vzhukovs deleted the task_message_update branch June 18, 2019 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that are enhancements to current functionality - nice to haves Team: Che-Plugins issues related to the che-plugins team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants