This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Flexible Topologies in Traffic Ops and Traffic Portal#4633
Merged
rawlinp merged 113 commits intoapache:masterfrom May 13, 2020
Merged
Flexible Topologies in Traffic Ops and Traffic Portal#4633rawlinp merged 113 commits intoapache:masterfrom
rawlinp merged 113 commits intoapache:masterfrom
Conversation
rawlinp
reviewed
Apr 14, 2020
Member
Author
|
This PR is ready for review. |
mitchell852
reviewed
Apr 20, 2020
mitchell852
reviewed
Apr 22, 2020
Member
Author
|
Rebased onto master |
ocket8888
suggested changes
Apr 22, 2020
- Create topology table - Create topology_cachegroup table - Create topology_cachegroup_parents table - Goose migration to add topology column to deliveryservice table
rawlinp
suggested changes
May 1, 2020
Contributor
rawlinp
left a comment
There was a problem hiding this comment.
I got most of the way through reviewing this, except for the real meat of the API implementation and validation. I'll hopefully finish up the rest early next week.
7 tasks
rawlinp
suggested changes
May 13, 2020
Contributor
rawlinp
left a comment
There was a problem hiding this comment.
Ok, I got through the rest of the TO changes. We need to be adamant about defer rows.Close() whenever we run a DB query -- otherwise, we may end up depleting all of the available DB connections over time if we're not careful.
| return interfaces, nil, nil, http.StatusOK | ||
| } | ||
|
|
||
| func (topology *TOTopology) removeParents() error { |
| return nil, nil, http.StatusOK | ||
| } | ||
|
|
||
| func (topology *TOTopology) addParents() (error, error, int) { |
rawlinp
approved these changes
May 13, 2020
Contributor
rawlinp
left a comment
There was a problem hiding this comment.
Unit tests, TO API tests, manual CRUD testing via TP, and DB up/down migration were all successful.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR (Pull Request) do?
This PR
Closes:
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
You can also navigate in TP to tp.domain.com/#!/topologies and CRUD topologies.
The following criteria are ALL met by this PR