Skip to content

Make new debug client the default, move old one to classic-debug - #5924

Merged
leonardehrenfried merged 9 commits into
opentripplanner:dev-2.xfrom
leonardehrenfried:swap-debug-clients
Jun 28, 2024
Merged

leonardehrenfried merged 9 commits into
opentripplanner:dev-2.xfrom
leonardehrenfried:swap-debug-clients

Conversation

@leonardehrenfried

@leonardehrenfried leonardehrenfried commented Jun 21, 2024 •

Copy link
Copy Markdown
Member

Summary

As discussed in the dev meeting yesterday, this makes the new debug client the default and moves the old one into a new folder called classic-debug.

Issue

Relates to #4828

@leonardehrenfried leonardehrenfried added the +OTP Debug UI OTP bundled client, the OTP server is normally not changed label Jun 21, 2024
@leonardehrenfried
leonardehrenfried requested a review from a team as a code owner June 21, 2024 09:54
@testower

Copy link
Copy Markdown
Contributor

Should we also rename the folder from client-next to client?

@leonardehrenfried

Copy link
Copy Markdown
Member Author

Sure!

@codecov

codecov Bot commented Jun 24, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.46%. Comparing base (827684a) to head (46c5373).
Report is 16 commits behind head on dev-2.x.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #5924      +/-   ##
=============================================
+ Coverage      69.43%   69.46%   +0.03%     
- Complexity     17065    17076      +11     
=============================================
  Files           1934     1937       +3     
  Lines          73606    73680      +74     
  Branches        7540     7539       -1     
=============================================
+ Hits           51109    51183      +74     
- Misses         19870    19873       +3     
+ Partials        2627     2624       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

testower
testower previously approved these changes Jun 24, 2024
@leonardehrenfried
leonardehrenfried requested review from abyrd and t2gran and removed request for t2gran June 25, 2024 08:46

@abyrd abyrd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall looks good, I just requested a few corrections to documentation details.

Comment thread docs/Frontends.md Outdated
Comment thread docs/Frontends.md Outdated
Comment thread docs/Frontends.md Outdated
Comment thread docs/Frontends.md Outdated
JsonSupport.prettyPrint(exp),
JsonSupport.prettyPrint(actualNode)
)
"Expected '%s' but actual was '%s'".formatted(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this change intentional? The version of assertEquals taking a Supplier<String> would defer the string formatting operation unless the assertion failed. The change here will incur the cost on every assertEqualJson call, even though the resulting string only ever expected to be used in errors. The performance impact is probably light, but it does seem to me like the pre-PR version followed best practices.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reverted in 46c5373

Co-authored-by: Andrew Byrd <abyrd@conveyal.com>
@leonardehrenfried
leonardehrenfried merged commit d62fcd2 into opentripplanner:dev-2.x Jun 28, 2024
t2gran pushed a commit that referenced this pull request Jun 28, 2024
@leonardehrenfried
leonardehrenfried deleted the swap-debug-clients branch June 28, 2024 11:15
@t2gran t2gran added this to the 2.6 (next release) milestone Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

+OTP Debug UI OTP bundled client, the OTP server is normally not changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants