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

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

Merged

Conversation

leonardehrenfried
Copy link
Member

@leonardehrenfried leonardehrenfried commented Jun 21, 2024

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 The OTP bundled client label Jun 21, 2024
@leonardehrenfried leonardehrenfried requested a review from a team as a code owner June 21, 2024 09:54
@testower
Copy link
Contributor

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

@leonardehrenfried
Copy link
Member Author

Sure!

Copy link

codecov bot commented Jun 24, 2024

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 t2gran and abyrd and removed request for t2gran June 25, 2024 08:46
Copy link
Member

@abyrd abyrd left a comment

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.

docs/Frontends.md Outdated Show resolved Hide resolved
docs/Frontends.md Outdated Show resolved Hide resolved
docs/Frontends.md Outdated Show resolved Hide resolved
docs/Frontends.md Outdated Show resolved Hide resolved
JsonSupport.prettyPrint(exp),
JsonSupport.prettyPrint(actualNode)
)
"Expected '%s' but actual was '%s'".formatted(
Copy link
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
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

@leonardehrenfried leonardehrenfried merged commit d62fcd2 into opentripplanner:dev-2.x Jun 28, 2024
6 checks passed
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 The OTP bundled client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants