Project

General

Profile

Actions

Bug #5858

closed

Services Status Widget - Hide Service

Added by NOYB NOYB over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Dashboard
Target version:
Start date:
02/09/2016
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3
Affected Architecture:

Description

Hide service hides all services with same name. For example with multiple OpenVPN services running. Hiding one hides all. So it's all or none.

Actions #1

Updated by Jim Thompson over 8 years ago

  • Assignee set to Anonymous
Actions #2

Updated by Anonymous over 8 years ago

  • Status changed from New to Feedback
  • Assignee changed from Anonymous to NOYB NOYB

Not an easy fix. If the services have identical names, the only other option is to hide by table row number. But if you install or remove a service, the rows will now be off.

Perhaps automatically add a suffix to identical service names?

Actions #3

Updated by Anonymous over 8 years ago

An incrementing suffix is added to tth service names so that they remain unique in the multiselect. e.g.:

dpinger
dpinger_2
dpinger_3

Actions #4

Updated by Anonymous over 8 years ago

  • % Done changed from 0 to 100
Actions #5

Updated by NOYB NOYB over 8 years ago

Now though it shows openvpn_2 as being down (yellow x). Guessing because there is no actual service by that name.

Actions #6

Updated by Anonymous over 8 years ago

Could be. I'll investigate.

Actions #7

Updated by Anonymous over 8 years ago

Just pushed a change that should help.

Actions #8

Updated by NOYB NOYB over 8 years ago

It sees the suffixed service as being up. But cannot hide it. Only the non suffixed service can be hidden.

Actions #9

Updated by NOYB NOYB over 8 years ago

In status services there is some code that produces a unique id and link for each of the services. Maybe that could be useful.

<a href="#" id="openvpn-restartservice-server-1" >
<a href="#" id="openvpn-restartservice-server-2" >

Actions #10

Updated by Anonymous over 8 years ago

Should be OK now, but I'll check that out. Thanks.

Actions #11

Updated by NOYB NOYB over 8 years ago

Nope. Still cannot hide openvpn_2. Returning to the config after selecting to hide, it is as though it was not selected.

Hiding the un-suffixed openvpn service works fine still though.

Actions #12

Updated by NOYB NOYB over 8 years ago

Ah, think I missed that last commit. It's working. Thanks.

Actions #13

Updated by Anonymous over 8 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF