Cacti/plugin_weathermap

Missing link to the page "Weathermap Editor" to create new weathermap

nbz6 opened this issue · 2 comments

nbz6 commented

Describe the bug

Weathermap 1.2 is missing link to create new weathermap from scratch or a copy of a previous weathermap like it was in Weathermap 0.98
This page is the Weathermap Editor : /plugins/weathermap/weathermap-cacti-plugin-editor.php

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Console' > 'Management' > 'Weathermap'

  2. Click on '+'

  3. On the Weathermap Management Page, you can't create a new weathermap.
    Only already created config file are present, impossible to create a new weathermap and no link to the Editor Page.

Expected behavior

We should be able to create a new weathermap from scratch as it was in the previous version.
The page still exist but there is no link to it, we have to open it manually :
/plugins/weathermap/weathermap-cacti-plugin-editor.php

Weathermap plugin both "Management Page" and "Editor Page" to exist, but there is not link to the Editor page anymore.

Alternatively this "Weathermap Editor" page could be present here too :

  1. Go to 'Console' > 'Create'
  2. It could be present a 'New Weathermap' option

Screenshots

Weathermap 0.98 :
image
"Editor" link open : /plugins/weathermap/weathermap-cacti-plugin-editor.php

Weathermap 1.2 :
image
"New map" link open : /plugins/weathermap/weathermap-cacti-plugin-mgmt.php?action=addmap_picker

But it's the Management page, not the Editor page. And still no link to open the Editor page.
The "New Map" here should open /plugins/weathermap/weathermap-cacti-plugin-editor.php instead in a more integrated way inside Cacti and not in a new white page.

Additionals contexts

In the Management Page, we can't even make a copy of an existing weathermap :
image

In Console Management Pages the "Weathermap help link" aren't present anymore too :
Weathermap 0.98 :
image

Weathermap 1.2 :
image

So here too there is no way to open the Editor page, even if the footer had the correct link.
Even if the "Show Weathermap Help Links" is checked in configuration.

Set the weathermap_db_version to something like 1.0 and then let weathermap upgrade again:

UPDATE settings SET value='1.0' WHERE name='weathermap_db_version';

That should get it.