You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/07/22 17:05:14 UTC
[GitHub] [trafficcontrol] ocket8888 opened a new pull request #3744: Rewrote
jobs endpoints to go
ocket8888 opened a new pull request #3744: Rewrote jobs endpoints to go
URL: https://github.com/apache/trafficcontrol/pull/3744
## What does this PR (Pull Request) do?
- [x] This PR fixes #3416
Rewrites the "Jobs" endpoints from Perl to Go. This includes
- /jobs
- `DELETE` method - *NEW* deletes an existing Job. Queues reval_pending on all servers.
- `GET` method
- `PATCH` method - *NEW* edits an existing Job. Queues reval_pending on all servers.
- `PUT` method - *NEW* replaces an existing Job. Queues reval_pending on all servers.
- `POST` method - *NEW* creates a new Job. Queues reval_pending on all servers.
- /user/current/jobs
- `GET` method
- `POST` method - now requires privilege Role >= Portal
Input timestamps are now accepted in RFC3339 format (with or without nanosecond precision) as well as our proprietary format used for "Last Updated" fields.
## Which Traffic Control components are affected by this PR?
- Documentation
- Traffic Ops
- Traffic Ops Client (Go)
- Traffic Portal
## What is the best way to verify this PR?
Creating, deleting, editing, replacing and viewing Jobs. Output and behavior should match the provided documentation. Client code has associated tests, which should pass when run.
## The following criteria are ALL met by this PR
- [x] This PR includes tests
- [x] This PR includes documentation
- [x] This PR includes an update to CHANGELOG.md OR such an update is not necessary
- [x] This PR includes any and all required license headers
- [x] This PR does not include a database migration
- [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the Apache Software Foundation's security guidelines](https://www.apache.org/security/) for details)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services