-
Notifications
You must be signed in to change notification settings - Fork 23
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
(Host|Service) Detail view: Introduce parents and children tab #1098
base: dependencies
Are you sure you want to change the base?
Conversation
59dc8c9
to
74bb945
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.
From the issue:
The tabs are only visible if the object is linked in the database table dependency_node.
The tabs are always visible right now.
c37ece0
to
9ab8072
Compare
Except for the error in the search bar while trying to apply filter in Parents/Children tabs, everything else seems to work as listed out in the issue. |
fb557c7
to
03a160d
Compare
03a160d
to
2caf0ae
Compare
|
||
$limitControl = $this->createLimitControl(); | ||
$paginationControl = $this->createPaginationControl($nodesQuery); | ||
$sortControl = $this->createSortControl( |
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.
IMO, it would be nice to have a default sort here. Or you could add getDefaultSort
method to DependencyNode
model. In which case you do not have to change the code every where createSortControl
method is called.
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 inclined to agree, why is this resolved without change and comment?
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.
We discussed this offline and i added the $defaultSort
afterward.
This cannot be added as DependencyNode::getDefaultSort()
, as the columns are only aliases and do not work.
df52697
to
25d1b6b
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.
I still need to review HostController::joinFix
, can't wrap my head around it right now…
|
||
$limitControl = $this->createLimitControl(); | ||
$paginationControl = $this->createPaginationControl($nodesQuery); | ||
$sortControl = $this->createSortControl( |
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 inclined to agree, why is this resolved without change and comment?
013432d
to
0564431
Compare
->setParams($requestParams) | ||
)->setSuggestionUrl( | ||
Url::fromPath('icingadb/service/children-complete') | ||
->setParams($requestParams) |
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.
it's the same here, clone the params please
->setParams($requestParams) | ||
)->setSuggestionUrl( | ||
Url::fromPath('icingadb/host/children-complete') | ||
->setParams($requestParams) |
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.
you know the deal :)
.item-list.detailed { //TODO: ipl-web item-list applies these changes for .default-layout class, which is removed for detailed view, because detail view can show long display names on multiple lines. | ||
.redundancy-group-list-item { // but this margin rules are actually general and can be applied to all list items, so we should add them separately (without .default-layout class) in item-list.less instead to generalize them. | ||
.title > * { | ||
margin: 0 .28125em; // 0 calculated width | ||
|
||
&:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
&:last-child { | ||
margin-right: 0; | ||
} | ||
} | ||
} | ||
} | ||
// remove code above once https://github.com/Icinga/ipl-web/pull/240 is merged. |
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.
please clean this up, the linked pr is closed and the label seems still being wrapped in a span
- Otherwise the searchbar uses it as base filter and apply it on the query
- Set the outer tab as active. Previously, the inner tab was activated in the setTitleTab method, but the outer tab does not know about the state of inner tabs. So whenever sendMultipartUpdate() -> getActiveTab() was called, the retured value was always null.
…n` for `parent & children tab`
0564431
to
aa33908
Compare
…th context This msg should be handled same as the host <is/on> word, no element wrapping. This way, the margin arround the msg is applied properly.
TODO
Once ObjectSuggestions: Make CustomVar suggestion sources adjustable #1100 is merged, add the following method:
->onlyWithCustomVarSources(['host', 'service', 'hostgroup', 'servicegroup'])
to the chain in
CompleteAction()
ofHost/ServiceController
to fix search suggestions inparents & children
tab.Adjust
redundancy-group-list-item.less
once item-list.less: Always applycalculated
margin to.title
content ipl-web#240 is merged.