-
Notifications
You must be signed in to change notification settings - Fork 346
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
Tp interface servers #4747
Tp interface servers #4747
Conversation
aaf175c
to
39401fe
Compare
@ocket8888 - do you want to move the |
I suppose I can. Working on something else atm, though, so it might be a bit. |
39401fe
to
bef4eb3
Compare
Done |
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.
A few things:
- offline reason label looks screwed up:
- how about putting some words on these buttons rather than
+
and-
so you don't have to hover over the button to figure out what it's for:
- how about moving the interfaces section to the bottom of the form rather than putting it between profile and phys location?
...ic_portal/app/src/common/modules/table/cacheGroupServers/TableCacheGroupServersController.js
Outdated
Show resolved
Hide resolved
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.
getting errors on the server create page - https://tp.domain.com/#!/servers/new
first error:
TypeError: Cannot read property 'cdnId' of undefined
at init (FormServerController.js:205)
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.
some more feedback
...ic_portal/app/src/common/modules/table/cacheGroupServers/TableCacheGroupServersController.js
Outdated
Show resolved
Hide resolved
traffic_portal/app/src/common/modules/table/cdnServers/TableCDNServersController.js
Outdated
Show resolved
Hide resolved
...ortal/app/src/common/modules/table/physLocationServers/TablePhysLocationServersController.js
Outdated
Show resolved
Hide resolved
traffic_portal/app/src/common/modules/table/profileServers/TableProfileServersController.js
Outdated
Show resolved
Hide resolved
traffic_portal/app/src/common/modules/table/statusServers/TableStatusServersController.js
Outdated
Show resolved
Hide resolved
traffic_portal/app/src/common/modules/table/typeServers/TableTypeServersController.js
Outdated
Show resolved
Hide resolved
<div class="modal-footer"> | ||
|
||
<fieldset> | ||
<legend>Interfaces</legend> |
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.
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.
What should I do about that? Add a placeholder or a label? I thought using the name as the full legend was pretty neat, looked a little weird with "Name: " in front of everything.
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.
placeholder would be fine. i just think it will confuse people. maybe placeholder: name (i.e. eth0, bond0, etc)
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.
placeholders are only supposed to be example values that would be valid in the input if you typed them in. So I added a placeholder, lemme know if you think that works.
1f321a4
to
d285f33
Compare
I'm not seeing any errors on the server create page. Tried Chrome and Firefox. |
0dc19f9
to
c099126
Compare
I like the way you've nested the interfaces on the form, but i'm still have a hard time visually lining up the buttons with the proper nested box and the interface buttons are interfering with the main buttons of the form as well (update/delete). what about moving a button or a link into the legend like such: |
also, i'm getting this error when trying to create a server:
|
c099126
to
f242110
Compare
<legend>Interfaces<button class="btn btn-success right-button" type="button" title="add a new interface" ng-click="addInterface()">Add Interface</button></legend> | ||
<fieldset ng-repeat="inf in server.interfaces"> | ||
<legend> | ||
<input my-directive type="text" ng-model="inf.name" required aria-label="Interface name" id="{{inf.name}}-name" name="{{inf.name}}-name" ng-class="{'has-error': hasError(serverForm[inf.name+'-name'])}" placeholder="eth0"/> |
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.
my-directive?
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.
this text input acts weird for me. does it for you? i can only put my cursor at the start of the text.
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.
idk what "my-directive" is or why it's in there. I'll get rid of it.
as far as "acting weird," no, I don't think I have noticed that, but I'll look at it.
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.
directive is gone, can't reproduce not being allowed to put your cursor wherever you want
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.
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.
maybe the placeholder was a bad idea because now it looks like text and the update
or create
button is disabled unless i change it....but if i want it to be eth0
it looks like it's already filled in. maybe a better placeholder would be interface-name
?
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.
That could work.
fixed |
If you put your buttons in the legend, i think the icon buttons (like you had originally) work pretty well instead of the words. looks cleaner for example:
|
I created a PR for you if you want to show the success/error message in a more friendly way |
Buttons are back to +/- |
@ocket8888 - doesn't every cache require at least one service address? I can create one w/o a service address. |
… of form on success/error
b44054d
to
801417e
Compare
@ocket8888 did you look at this one? actually, just apply this @ocket8888 - mitchell852@e0f33ad - i tried to PR your PR but it got all screwed up. |
ok, this is fixed now with #4828 |
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.
UI tests pass. did a bunch of manual testing. everything seems to work as expected. nice work!
retest this please |
What does this PR (Pull Request) do?
Updates Traffic Portal tables and forms to account for servers having multiple interfaces, including:
/servers
such asWhich Traffic Control components are affected by this PR?
What is the best way to verify this PR?
If this is a bug fix, what versions of Traffic Control are affected?
The following criteria are ALL met by this PR