Enhancement #2795

Dashboard: remove/hide uneeded services from the list

Added by Stefano Zamboni about 7 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:LowDue date:
Assignee:-% Done:

100%

Category:nethserver-base
Target version:v6.6
Resolution: NEEDINFO:No

Description

In dashboard -> services web panel are present unused services

Example: after removing "statistics" packages (nethserver-collectd, nethserver-collectd-web, netserver-cgp) via packagemanager, admin user can see collectd as an installed, enabled but stopped service in services list

IMHO unused services should be hidden, just like deleted users
a "visible" key in config db with yes/no value
the visible key change could/should be triggered in %postun event

Associated revisions

Revision f8b282db
Added by Giacomo Sanchietti over 6 years ago

Dashboard: hide services without default status. Refs #2795

History

#1 Updated by Giacomo Sanchietti about 7 years ago

  • Target version set to ~FUTURE

I agree: uninstalled services should not be displayed inside service's list.

The simplest implementation is to hide all services records without have a default value.
See http://docs.nethserver.org/projects/nethserver-devel/en/latest/services.html#add-a-new-service.

#2 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version changed from ~FUTURE to v6.6
  • % Done changed from 0 to 20

#3 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#4 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#5 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-base-2.6.4-1.2.g76d0a5b.ns6.noarch.rpm
Test case
  • Create a service like:
    config set fw_myservice service status enabled TCPPort 12345 access private
    
  • Check the service is not visible inside the Services tab

#6 Updated by Davide Principi over 6 years ago

  • Assignee set to Davide Principi

#7 Updated by Davide Principi over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 90

VERIFIED

#8 Updated by Davide Principi over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates 6.6:
nethserver-base-2.6.5-1.ns6.noarch.rpm

Also available in: Atom PDF