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

Loads a new git history page when user scrolled list to the very bottom #3553

Merged
merged 3 commits into from
Dec 29, 2016

Conversation

tolusha
Copy link
Contributor

@tolusha tolusha commented Dec 28, 2016

What does this PR do?

Pagination at loading git history

What issues does this PR fix or reference?

#3353

Previous behavior

All git history was loaded at one request and blocked ide.

New behavior

Loads git history by page when user scrolled list to the very bottom

Please review Che's Contributing Guide for best practices.

@tolusha tolusha self-assigned this Dec 28, 2016
@tolusha tolusha added this to the 5.1.0 milestone Dec 28, 2016
Promise<LogResponse> log(DevMachine devMachine, Path project, Path[] fileFilter, boolean plainText);

/**
* Get log of commits. The result is the list of {@link Revision}, which is returned by callback in
Copy link
Member

Choose a reason for hiding this comment

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

which is returned by callback

can't see any callback here 😸

private void fetchHistoryPage(final boolean append) {
service.log(appContext.getDevMachine(),
project.getLocation(),
null,
Copy link
Member

Choose a reason for hiding this comment

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

null is passed but log method's javadoc says nothing about it.
I think it would be nice to have documented this possibility.

@@ -87,17 +91,15 @@
Button btnDiffWithWorkTree;
@UiField
Button btnDiffWithPrevCommit;
@UiField
ScrollPanel scrollPanel;
Copy link
Member

Choose a reason for hiding this comment

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

isn't formatted

Promise<LogResponse> log(DevMachine devMachine, Path project, Path[] fileFilter, boolean plainText);

/**
* Get log of commits. The result is the list of {@link Revision}, which is returned by callback in
* <code>onSuccess(Revision result)</code>.
Copy link
Contributor

Choose a reason for hiding this comment

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

Paraphrase this sentence, this api method returns a promise, it doesn't operate with callbacks.

@@ -87,17 +91,15 @@
Button btnDiffWithWorkTree;
@UiField
Button btnDiffWithPrevCommit;
@UiField
ScrollPanel scrollPanel;
Copy link
Contributor

Choose a reason for hiding this comment

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

Apply formatter to this piece of code

@tolusha
Copy link
Contributor Author

tolusha commented Dec 28, 2016

@azatsarynnyy
Have a look pls on new changes

@codenvy-ci
Copy link

@tolusha tolusha merged commit 93f9352 into master Dec 29, 2016
@tolusha tolusha deleted the CHE-3353 branch December 29, 2016 06:09
@JamesDrummond JamesDrummond mentioned this pull request Jan 31, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
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.

None yet

6 participants