sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
198 stars 76 forks source link

How to provide a consistent Home dashboard for new Homer Users #561

Open jagnetta opened 2 weeks ago

jagnetta commented 2 weeks ago

I have created a set of call search criteria for the "Admin" user on our system. I have managed to export that data, and I can apply it to other systems, and allow the Admin user on the next system to have the same experience as on the original system.

Now the challenge is for adding a new user (i.e., other than Admin or Support), and have the Home dashboard have the same Call SIP Search boxes presented to the new user in the panel.

Thanks for your time.

github-actions[bot] commented 2 weeks ago

Your report is appreciated. Please star this repository to motivate its developers! :star:

bilalrao12 commented 2 weeks ago

Probably you can add a new custome dashboard with required fields and set it as shared.

image

jagnetta commented 2 weeks ago

Hi @bilalrao12 ,

I found this stanza in webapp_config.json which looks oood, but it doesn't seem to be working.

"dashboard_settings": { "_comment": "Here you can define a customs dashboards home", "dashboard_home": "/usr/local/homer/etc/Home_8x8.json" }, If I add a new user the new users' dashboard does not render.....

Please review and advise.

Home_8x8.json

Dletta commented 1 week ago

Please make sure it's set to 'Shared', otherwise it will not show up for the user.

jagnetta commented 1 week ago

Hi Dletta, I hope you're well. There is a line in the json file "shared," I have set it to true. The new user does not see the dashboard on login unfortunately.

I'll repeat the process, but I'm going to generate the file from the "support user" instead of "admin"

LMK if you have any logs or anything you think I should check.

PS - What I'm trying to do is have a standardized dashboard to be displayed when a new user logs in to homer.

lmangani commented 1 week ago

Hi Jim,

This is quite normal and should work out of the box and so far our team could not reproduce the problem. Do those users at least see the default dashboards when accessing?

jagnetta commented 1 week ago

Hi Lorenzo, yeah, I thought so. I seem to have lost the original dashboard_home.json, if you have a copy somewhere, might you send it along? Maybe it's in the repo, I'll look there.

At this point, no, the new users see no dashboards. Only the Admin and Support users can see it. So that's why I kind of wanted to start fresh.

jagnetta commented 1 week ago

Hi Lorenzo,

I have retested this on several machines. I cannot get a specific dashboard to become a "defaut dashboard" for all users to share a common experienced. I've tried a variety of tricks to make it work, and it really isn't working.

If there's anything I can provide, I' happy to send it along.

Thanks!

jagnetta commented 1 week ago

I've attached dashboard_home and webapp_config for your review.

When the dashboard json file is loaded the user does not see all the extra search filters, and the clock TZ is not updated.

webapp_config.json dashboard_home.json

AlexeyOplachko commented 6 days ago

Thanks for your data, managed to replicate it, should provide a fix soon @jagnetta

jagnetta commented 6 days ago

@AlexeyOplachko - Thanks for the update. Please let me know if you need any other information.

AlexeyOplachko commented 4 days ago

So main issue turned out to be due to slightly incorrect format on export. Once we release new version you should be good to go to export new .json file for your dashboard and put it as you did before as default @jagnetta

jagnetta commented 4 days ago

@AlexeyOplachko thanks for the great news. I look forward to the new release.