-
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. |
protected function createTabs(): Tabs | ||
{ | ||
$hasDependencyNode = DependencyNode::on($this->getDb()) | ||
->columns('1') |
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.
->columns('1') | |
->columns([new ipl\Sql\Expression('1')]) |
9ab8072
to
fb557c7
Compare
fb557c7
to
03a160d
Compare
- 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.
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.
TODO
->onlyWithCustomVarSources(['host', 'service', 'hostgroup', 'servicegroup'])
to the chain in
CompleteAction()
ofHost/ServiceController
to fix search suggestions inparents & children
tab.