Skip to content

Releases: dot-mike/nmscustomfields

Release 2.0.2

Choose a tag to compare

@dot-mike dot-mike released this 19 Aug 16:07

Changed

  • Table search matches whole words, so ampere no longer matches deciAmpere. Use * as a wildcard for the old substring behaviour: amp*, *ampere*, pdu*timeout.
  • CSV export now uses LibreNMS' own bootgrid export (the download dropdown in the table toolbar) instead of a plugin-specific button.
  • Tidied the toolbar layout on the per-field devices page.

Note

2.0.1 has the same code but its tag was moved after publishing, so Packagist locked it to a commit that no longer exists. Use 2.0.2.

Release 2.0.0

Choose a tag to compare

@dot-mike dot-mike released this 19 Aug 16:07

Requires LibreNMS 26.5+.

Storage was simplified: custom field values used to live in their own table, now they sit directly on the device-field link. The REST API behaves the same. Text and integer fields are now separate types; integer fields only accept whole numbers.

Breaking

  • custom_field_values table dropped. Values now live on custom_field_device as value_text / value_int.
  • CustomFieldValue model and customFieldValue relation removed.

Fixed

  • #4: integer fields no longer accept text. Rejected with 422 on all write paths.
  • Bulk edit / "add to devices" form on the per-field page silently dropped custom_field_id.
  • Device's custom fields page rendered "View [device.header] not found" on recent LibreNMS releases.

Migration notes

The migration runs automatically and cleans up old data. Duplicate fields and duplicate device links are collapsed to the oldest, and for each device+field the newest value from the old table wins. Older history is discarded.

Release 1.0.11

Choose a tag to compare

@dot-mike dot-mike released this 27 May 14:16

Fixed

Fixed issue #5. Compatible with Librenms v26.5+.

Release 1.0.10

Choose a tag to compare

@dot-mike dot-mike released this 19 Mar 20:39

Fixed

  • Sorting the custom field values list on the plugin page now works correctly.
    The sorting was previously broken and would not sort the values

  • Show which custom field is being edited in the modal.

Added

  • Added export functionality to the custom field values list on the plugin page.
    The export is available in CSV format and can be downloaded by clicking the "Export" button.

Release 1.0.9

Choose a tag to compare

@dot-mike dot-mike released this 20 Nov 14:35

Changed

  • Api for /devices/{device}/customfields now returns the proper value for the custom field id and name with the value.
    The response now includes the id and name keys.

  • Api for /customfields/query has been refactored to use POST-method instead of GET.
    The method has been updated to accept a JSON body with a much more flexible query structure to allow for more complex queries.
    The response has been updated to reflect standard response format for paginated results.

Release 1.0.8

Choose a tag to compare

@dot-mike dot-mike released this 01 Nov 13:21

Fixed

  • Fixed a bug where searching for custom field values would not work correctly.
    It would return all devices containing the value instead of only the devices with the value set for the custom field.

Release 1.0.7

Choose a tag to compare

@dot-mike dot-mike released this 30 Oct 14:08

Added

  • Added a new API method for fetching all custom fields defined in the system
    The method is a GET to /customfields

  • Added a new API method for querying all custom fields with optional filter
    The method is a GET to /customfields/query

Release 1.0.6

Choose a tag to compare

@dot-mike dot-mike released this 28 Oct 13:33

This releases fixes compatibility issue with LibreNMS version newer than 24.9.

Release 1.0.5

Choose a tag to compare

@dot-mike dot-mike released this 25 Oct 14:05

Fixed

  • Fixed PHP error preventing plugin to work and breaking librenms #3

Release 1.0.4

Choose a tag to compare

@dot-mike dot-mike released this 18 Oct 13:53

Added

  • Show both hostname and sysName with clickable links in the custom field list on plugin page.

Fixed

  • Fix modal state reset #2
  • Fix bulk delete so it does not delet all values. Behaves correctly.
  • Fix JS code to use let instead of var.