Move REST API into sandbox#5580
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5580 +/- ##
=============================================
- Coverage 67.46% 67.46% -0.01%
+ Complexity 16197 16195 -2
=============================================
Files 1862 1862
Lines 71206 71222 +16
Branches 7405 7407 +2
=============================================
+ Hits 48041 48049 +8
- Misses 20674 20680 +6
- Partials 2491 2493 +2 ☔ View full report in Codecov by Sentry. |
e8b6e2f to
89dbe0d
Compare
t2gran
left a comment
There was a problem hiding this comment.
Here is a few package suggestions. The main principle is to organise packages in a logical order without cyclic dependencies. So, to place something in the right package you can look at the usage - where is it used and what does it use. But, currently it is a mess - the bigest problem is that things are organized by type, not by feature. For example all classes involved in paging should be under the top level package o.o.paging, then sub-domain (itinerary-filter and token-generation), then type: model, service, support, mapping and so on. But, I don´t want some code to follow one way and other code to follow another - so at some point we will try to clean up everything (at least move critical mass 80% of the code).
8be001d to
8768380
Compare
|
Ah, sorry Thomas. I accidentally rebased and probably wiped your review state. |
…ception.java Co-authored-by: Thomas Gran <t2gran@gmail.com>
…ception.java Co-authored-by: Thomas Gran <t2gran@gmail.com>
|
The files in src/ext/java/org/opentripplanner/ext/restapi/model/serverinfo should not be moved, they show up in the review without any changes. |
|
I've moved them back into the main code. |
Summary
This moves the REST API classes into a sandbox folder and adds a feature switch
LegacyRestApifor them. For now this switch will be on. As soon as the new debug UI is ready for prime time, I plan to make it default to off.Then I suggest we have one more release with the API in a sandbox and remove it afterwards.
Issue
#4828
Documentation
The question is if we want to have Sandbox documentation for this feature. I would say no, since that would actually improve the REST API docs, which we don't want.