camunda-community-hub / camunda-7-cockpit-plugin-statistics

camunda BPM community extension providing a statistics plugin for camunda Cockpit
Apache License 2.0
25 stars 20 forks source link

How to persist "Settings" #4

Open melissapalmer opened 9 years ago

melissapalmer commented 9 years ago

Hi

Firstly thanks for a great plugin - I am trying to use and evaluate at the moment. I was wondering if there is a way to persist the "Settings" so that I can ensure all uses will end up seeing the same view? For example I want to exclude one of the sub-processes from the reporting view.

Thanks Melissa

eklieme commented 9 years ago

Hi Melissa,

first of all - thank you for evaluating the plugin :) Regarding your question: In the current version the settings are stored per user per browser as I assumed that everyone would prefer his or her own settings.

Can you give further details on your requirement? An import/export function via some file seems the most proper way for me, as I want to prevent any (camunda) db interaction for that. What do you think?

Anyway, you could probably "hack" that function very quickly:

  1. configure your settings on the "master" machine. Browse your LocalStorage settings via a web developer console (e.g. in chrome) and copy the respective value to an email or so for all recipients of your settings, the key should be like "pluginSettings_"+your username.
  2. Every recipient opens the cockpit and afterwards change their LocalStorage to your configuration

Do you have any additional feedback?

Cheers,

Eric

melissapalmer commented 9 years ago

Hi Eric,

Thanks for the reply... I'm wanting to use this in production environment where there'll be a number of business users who want be knowledgeable about how to setup local storage etc. so this isn't really the best options going forward.

I agree there will be that element where users do want their own settings. In this case we have a sub process... which really doesn't mean much to the end user and therefore want to exclude it from these views.

We have a really small process right, will few users so will be able to train people for now.

Thanks Melissa

eklieme commented 8 years ago

Hi melissa, is there any news on the settings topic?