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

Scroll down to the debug form when a DocService URL contains … #2045

Merged
merged 1 commit into from
Sep 10, 2019
Merged

Scroll down to the debug form when a DocService URL contains … #2045

merged 1 commit into from
Sep 10, 2019

Conversation

SooJungDev
Copy link
Contributor

@SooJungDev SooJungDev commented Sep 5, 2019

Motivation:

  • User has to manually scroll down the method page to see the debug form.

Modifications:

  • Add move scroll function

Result:

@CLAassistant
Copy link

CLAassistant commented Sep 5, 2019

CLA assistant check
All committers have signed the CLA.

@ikhoon
Copy link
Contributor

ikhoon commented Sep 5, 2019

@SooJungDev Thanks for contributing Armeria! 👍

@ikhoon ikhoon added this to the 0.91.0 milestone Sep 5, 2019
@@ -68,6 +68,8 @@ interface State {
type Props = OwnProps & RouteComponentProps;

class DebugPage extends React.PureComponent<Props, State> {
private scrollRef = React.createRef <HTMLDivElement>();
Copy link
Member

Choose a reason for hiding this comment

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

Question: Is it possible to define a meaningful anchor name to the reference at DOM level, such as debug-form?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes , I'll renaming variable. Thank you for review!

Copy link
Member

Choose a reason for hiding this comment

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

Oh, does just renaming the variable change the anchor ID in DOM?

@@ -589,6 +595,13 @@ class DebugPage extends React.PureComponent<Props, State> {
debugResponse,
});
}

private moveScroll() {
Copy link
Member

Choose a reason for hiding this comment

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

How about renaming to scrollToDebugForm() to make it more meaningful?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll renaming method! Thank you for review!

@ikhoon
Copy link
Contributor

ikhoon commented Sep 6, 2019

@SooJungDev To pass CI build, you might want to check tslint. https://travis-ci.com/line/armeria/jobs/231309728#L397

@minwoox minwoox modified the milestones: 0.91.0, 0.92.0 Sep 6, 2019
@ikhoon
Copy link
Contributor

ikhoon commented Sep 7, 2019

@SooJungDev While I am seeing your commit log and git diff, I thought your branch is mixed with git merge and git rebase --merge, so that this diff shows dependency upgrade work which was done by @minwoox

Could you squash and revise your commits? 😀

@ikhoon
Copy link
Contributor

ikhoon commented Sep 7, 2019

It seems to have failed to rebase the master branch exactly... 😢
We should not see the Implement ProtocolDetectionHandler.exceptionCaught() commit.
image

@ikhoon
Copy link
Contributor

ikhoon commented Sep 8, 2019

@SooJungDev Finally, could you clean up duplicated commit message? :-)

... (+1 squashed commit)
Squashed commits:
[821c3ea] Motivation:
- User has to manually scroll down the method page to see the debug form.

Modifications:
- Add move scroll function

Result:
-  without scrolling down to it.
-  closed #1682

@SooJungDev
Copy link
Contributor Author

@SooJungDev Finally, could you clean up duplicated commit message? :-)

... (+1 squashed commit)
Squashed commits:
[821c3ea] Motivation:
- User has to manually scroll down the method page to see the debug form.

Modifications:
- Add move scroll function

Result:
-  without scrolling down to it.
-  closed #1682

@SooJungDev Finally, could you clean up duplicated commit message? :-)

... (+1 squashed commit)
Squashed commits:
[821c3ea] Motivation:
- User has to manually scroll down the method page to see the debug form.

Modifications:
- Add move scroll function

Result:
-  without scrolling down to it.
-  closed #1682

@SooJungDev SooJungDev closed this Sep 8, 2019
@SooJungDev SooJungDev reopened this Sep 8, 2019
Copy link
Contributor

@ikhoon ikhoon left a comment

Choose a reason for hiding this comment

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

Thanks @SooJungDev 👍

@ikhoon
Copy link
Contributor

ikhoon commented Sep 8, 2019

Please check tslint to pass CI build. 😿 https://travis-ci.com/line/armeria/builds/126346564#L399

…quest (#2045)

Motivation:
- User has to manually scroll down the method page to see the debug form.

Modifications:
- Add move scroll function

Result:
-  without scrolling down to it.
-  closed #1682
@codecov
Copy link

codecov bot commented Sep 8, 2019

Codecov Report

Merging #2045 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2045      +/-   ##
============================================
+ Coverage     73.77%   73.79%   +0.02%     
- Complexity     9388     9389       +1     
============================================
  Files           817      817              
  Lines         36121    36121              
  Branches       4453     4453              
============================================
+ Hits          26648    26656       +8     
+ Misses         7168     7159       -9     
- Partials       2305     2306       +1
Impacted Files Coverage Δ Complexity Δ
.../linecorp/armeria/internal/IdleTimeoutHandler.java 80% <0%> (-20%) 4% <0%> (-1%)
...inecorp/armeria/server/HttpResponseSubscriber.java 82.46% <0%> (-1.9%) 61% <0%> (-4%)
.../main/java/com/linecorp/armeria/server/Server.java 81.58% <0%> (-1.26%) 26% <0%> (ø)
.../linecorp/armeria/client/Http2ResponseDecoder.java 61.66% <0%> (+0.83%) 33% <0%> (+1%) ⬆️
...inecorp/armeria/server/grpc/ArmeriaServerCall.java 88.18% <0%> (+1.57%) 82% <0%> (+1%) ⬆️
...corp/armeria/common/stream/FixedStreamMessage.java 89.28% <0%> (+1.78%) 23% <0%> (+1%) ⬆️
...necorp/armeria/server/GracefulShutdownSupport.java 100% <0%> (+2.56%) 4% <0%> (ø) ⬇️
.../linecorp/armeria/internal/Http2GoAwayHandler.java 56.41% <0%> (+2.56%) 14% <0%> (+1%) ⬆️
...om/linecorp/armeria/server/jetty/JettyService.java 66% <0%> (+2.95%) 24% <0%> (+1%) ⬆️
...meria/common/stream/RegularFixedStreamMessage.java 87.75% <0%> (+6.12%) 14% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad03af2...21d4db0. Read the comment docs.

Copy link
Member

@trustin trustin left a comment

Choose a reason for hiding this comment

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

Good job!

@trustin trustin changed the title Add scroll down to the debug form when a DocService URL contains a re… Scroll down to the debug form when a DocService URL contains … Sep 10, 2019
@trustin trustin merged commit 84abd79 into line:master Sep 10, 2019
@SooJungDev SooJungDev deleted the feature-addMoveScrollForDocService branch September 10, 2019 03:28
eugene70 pushed a commit to eugene70/armeria that referenced this pull request Oct 16, 2019
…2045)

a request.

Motivation:
- User has to manually scroll down the method page to see the debug form when the URL contains a request.

Modifications:
- Scroll down to the debug form if the URL contains a request.

Result:
- No need to scroll down manually
- Closes line#1682
fmguerreiro pushed a commit to fmguerreiro/armeria that referenced this pull request Sep 19, 2020
…2045)

a request.

Motivation:
- User has to manually scroll down the method page to see the debug form when the URL contains a request.

Modifications:
- Scroll down to the debug form if the URL contains a request.

Result:
- No need to scroll down manually
- Closes line#1682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scroll down to the debug form when a DocService URL contains a request.
5 participants