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

Add TO Go cachegroups/id/deliveryservices #2300

Merged
merged 3 commits into from Sep 13, 2018
Merged

Conversation

rob05c
Copy link
Member

@rob05c rob05c commented May 18, 2018

What does this PR do?

Add TO Go cachegroups/id/deliveryservices

Which TC components are affected by this PR?

  • Documentation
  • Grove
  • Traffic Analytics
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault
  • Other _________

What is the best way to verify this PR?

POST /api/1.2/cachegroups/id/deliveryservices/

Check all that apply

  • This PR includes tests
  • This PR includes documentation updates
  • This PR includes an update to CHANGELOG.md
  • This PR includes all required license headers
  • This PR includes a database migration (ensure that migration sequence is correct)
  • This PR fixes a serious security flaw. Read more: www.apache.org/security

@asfgit
Copy link
Contributor

asfgit commented May 19, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/1618/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented May 22, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/1636/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Jun 5, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/1777/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Jun 25, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/1908/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Jun 27, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/1921/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Jun 28, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/1928/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Jun 28, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/1931/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Jul 6, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2025/
Test PASSed.

return resp, reqInf, nil
}

func (to *Session) GetDeliveryServiceServers() (tc.DeliveryServiceServerResponse, ReqInf, error) {

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@@ -131,3 +133,33 @@ func (to *Session) DeleteServerByID(id int) (tc.Alerts, ReqInf, error) {
err = json.NewDecoder(resp.Body).Decode(&alerts)
return alerts, reqInf, nil
}

func (to *Session) DeleteDeliveryServiceServer(dsID int, serverID int) (tc.Alerts, ReqInf, error) {

Choose a reason for hiding this comment

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

Copy link
Member Author

@rob05c rob05c Jul 6, 2018

Choose a reason for hiding this comment

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

Fixed. I left these, and removed the others, because these return more data.

@asfgit
Copy link
Contributor

asfgit commented Jul 6, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2028/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Jul 9, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2037/
Test PASSed.

@asfgit
Copy link
Contributor

asfgit commented Aug 28, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2357/
Test PASSed.

@rob05c
Copy link
Member Author

rob05c commented Sep 13, 2018

Rebased, API tests pass, unit tests pass.

@asfgit
Copy link
Contributor

asfgit commented Sep 13, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2429/
Test PASSed.

}

// FinishTx commits the transaction if commit is true when it's called, otherwise it rolls back the transaction. This is designed to be called in a defer.
func FinishTx(tx *sql.Tx, commit *bool) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something that needs to be implemented on all Handlers now?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this was a legacy thing, because this PR was made before everything was changed to use transactions. I removed it.

@asfgit
Copy link
Contributor

asfgit commented Sep 13, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2431/
Test PASSed.

@dewrich dewrich merged commit 5197a2d into apache:master Sep 13, 2018
@rob05c rob05c deleted the to-go-cgds branch January 2, 2019 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature, capability or behavior
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants