-
Notifications
You must be signed in to change notification settings - Fork 344
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
Remove api v1 #5539
Remove api v1 #5539
Conversation
This can't be done until #5541 is closed |
6fc776d
to
ac1cebe
Compare
59e5fc4
to
83966b3
Compare
The tests all pass now |
fd9ab8a
to
7a8a075
Compare
9b45a0b
to
9b40c8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When grepping the repo for api/1
, there are still matches in several files:
- cache-config/t3c-request/getdata/getdata.go
- cache-config/t3cutil/getdata.go
- docs/source/development/debugging.rst
- experimental/ort-python/traffic_ops_ort/to_api.py
- grove/grovetccfg/grovetccfg.go
- infrastructure/docker/README.md
- infrastructure/docker/traffic_monitor/run.sh
- infrastructure/docker/traffic_ops/run.sh
- infrastructure/docker/traffic_router/run.sh
- infrastructure/docker/traffic_server_edge/run.sh
- infrastructure/docker/traffic_server_mid/run.sh
- infrastructure/docker/traffic_stats/run.sh
- infrastructure/docker/traffic_vault/run.sh
- lib/go-tc/federation.go
- test/router/js/load-test.jsx
- test/router/server/server.go
- test/traffic_ops_cfg/cfg_test.pl
- traffic_control/clients/python/trafficops/restapi.py
- traffic_control/clients/python/trafficops/tosession.py
- traffic_ops/install/bin/copy-pgdata.sh
- traffic_ops/testing/api/v2/cdnfederations_test.go
- traffic_ops/testing/api/v3/cdnfederations_test.go
- traffic_ops/testing/api/v4/cdnfederations_test.go
- traffic_ops/traffic_ops_golang/deliveryservice/consistenthash/consistenthash.go
- traffic_ops/traffic_ops_golang/deliveryservice/servers/servers.go
- traffic_ops/traffic_ops_golang/invalidationjobs/invalidationjobs.go
- traffic_ops/traffic_ops_golang/login/logout_test.go
- traffic_ops/traffic_ops_golang/routing/routing_test.go
- traffic_ops/traffic_ops_golang/swaggerdocs/v13/docs.go
- traffic_ops/traffic_ops_golang/trafficstats/util_test.go
- traffic_portal/app/src/scripts/config.js
Usages in Usage in docs example has been updated Usage in the ORT.py package is irrelevant, since that is due for removal. Pointless to change now, since it can't possibly work now that Usage in Grove is in a comment that wouldn't even appear in package documentation. I can get rid of it if you want, but it's not affecting anything. I don't tend to touch anything in Usage in Usage in
Usage in restapi.py is for a generic API, an API base URL containing an Usage in Usage in Usage in Swagger is not actually supported by Traffic Ops. The Usage in TP was previously removed, but must have been re-introduced during rebase with the commit that added/updated the |
Updating all of these makes sense to me, IMO.
Sounds like it could have been removed in the Perlectomy. Removing it with the rest of API v1 is the next best thing, right?
trafficcontrol/grove/grovetccfg/grovetccfg.go Line 195 in 1c72915
I'm seeing more API v1 stuff lower down: trafficcontrol/grove/grovetccfg/grovetccfg.go Lines 232 to 265 in 1c72915
Removing the Grove API v1 stuff would make more sense in a separate PR.
Agreed that taking care of these outside of #5539 makes sense. |
Oops, missed a response.
https://github.com/apache/trafficcontrol/blob/b64fcd5bf675c73ea1d085ee40245fcbd92e0df5/traffic_control/clients/python/trafficops/restapi.py#L141 Updating these makes sense to me, too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm only seeing 1 unaddressed comment, the rest looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Things to address outside of this PR:
-
Remaining API v1 references:
- Grove API v1 references
- Swagger API v1 references
test/router
API v1 referencesinfrastructure/docker
API v1 references
API 1.x endpoint calls need to be updated to 2.0 #4461 captures most of these already.
-
Deprecating API v2 and API v3. Ideally, API v2 and API v3 responses would show deprecation alerts, but at a minimum, we need to deprecate the endpoints in the documentation.
What does this PR (Pull Request) do?
This PR removes API version 1 entirely, including documentation and tests.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
verify existing API tests pass for all versions greater than 1, make a request to APIv1 and verify it doesn't succeed.
The following criteria are ALL met by this PR