Skip to content

Feature/push channel support #289

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

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

Conversation

aarnapant-sap
Copy link
Contributor

Push Channel Support for long running jobs:

Backlog link : https://jira.tools.sap/browse/ADTIRA-1494

Changes Made:

  • Changed IProgressWithRunnable based UI thread-blocking approach with Job based approach in PullWizard
  • Changed IProgressWithRunnable based UI thread-blocking approach with Job based approach in PullAfterLinkWizard
  • Updates are reflected in the progressView now

} catch (Exception e) {
Display.getDefault().asyncExec(() -> {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
MessageDialog.openError(shell, "Error", e.getMessage()); //$NON-NLS-1$
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same comment like in AbapGitWizardPull class.
Can reuse the title here.

try {
getContainer().run(true, true, new IRunnableWithProgress() {
Job pullJob = new Job("Pull Repository"){ //$NON-NLS-1$
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same comment like in AbapGitWizardPull class.
Can reuse the title here

Comment on lines 83 to 84
Set<IRepositoryModifiedObjects> pageOverwriteObjects = this.pageOverwriteObjectsSelection.getSelectedObjects();
Set<IRepositoryModifiedObjects> pagePackageWarningObjects = this.pagePackageWarningObjectsSelection.getSelectedObjects();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same comment like in AbapGitWizardPull class.
Can rename the variable names.

return Status.OK_STATUS;

} catch (ResourceException e) {
showErrorMessage(e.getMessage());
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we need to show the error message explicitly.
It will be taken care of by the Jobs API, once we return the Error Status, like you have done in line 192.

Comment on lines 188 to 189
return Status.OK_STATUS;

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we refresh the repositories view after the job is finished ?
I am not very sure.

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

Successfully merging this pull request may close these issues.

2 participants