Commit Graph

6174 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] a6d3b85614 Fix set-alias endpoint: return HTTP 200 with normalized error key on failure
Agent-Logs-Url: https://github.com/netalertx/NetAlertX/sessions/05ab18a3-4ac2-492d-bb80-67a1cc089bd9

Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-04-08 23:28:50 +00:00
copilot-swe-agent[bot] 6eaa477ed3 Initial plan 2026-04-08 23:23:52 +00:00
copilot-swe-agent[bot] e3a4c62d5f Fix set_alias 404 check: simplify to match generic updateDeviceColumn pattern
Agent-Logs-Url: https://github.com/netalertx/NetAlertX/sessions/661c66ce-45e8-4f96-b51d-1bb0b918c669

Co-authored-by: jokob-sk <96159884+jokob-sk@users.noreply.github.com>
2026-04-08 23:05:54 +00:00
Jokob @NetAlertX da8b694a49 Update API documentation and schemas: clarify lock/unlock behavior for device fields and enhance error handling in device alias update 2026-04-08 22:38:43 +00:00
Jokob @NetAlertX 28e6d62ccb Update Device API documentation: clarify full-replace and partial-update semantics for device fields #1597 2026-04-08 22:34:08 +00:00
Jokob @NetAlertX b530a6e635 Enhance API documentation and schemas: add new device field locking/unlocking endpoints and expand allowed column names for updates #1598 2026-04-08 21:57:58 +00:00
Jokob @NetAlertX bda8ca3bd8 Fix timezone resolution in format_date_iso: handle specific exceptions for invalid configurations
🐳 ⚠ docker-unsafe from next_release branch / docker_dev_unsafe (push) Has been cancelled
2026-04-05 22:55:02 +00:00
Jokob @NetAlertX 2b3d9549dc Fix timezone handling in format_date_iso: ensure fallback to UTC for invalid configurations 2026-04-05 22:48:44 +00:00
Jokob @NetAlertX 36e606e1a1 Refactor MQTT plugin: replace prepTimeStamp with format_date_iso for timestamp formatting and add regression tests for format_date_iso function Events have wrong time in HA
🐳 ⚠ docker-unsafe from next_release branch / docker_dev_unsafe (push) Has been cancelled
Fixes #1587
2026-04-04 23:04:58 +00:00
Jokob @NetAlertX 0acc94ac28 Merge pull request #1588 from netalertx/main
sync
2026-04-05 08:51:06 +10:00
Jokob @NetAlertX a8131a6d69 Merge pull request #1585 from sebingel/fix/ordeable-typo-refactoring
✅ Code checks / check-url-paths (push) Has been cancelled
✅ Code checks / lint (push) Has been cancelled
✅ Code checks / docker-tests (push) Has been cancelled
🐳 👩‍💻 docker dev / docker_dev (push) Has been cancelled
📘 Deploy MkDocs / deploy (push) Has been cancelled
Fix elementOptions: rename typo 'ordeable' to 'orderable'
2026-04-04 08:12:04 +11:00
Ettore Atalan 4b6bdeae77 Translated using Weblate (German)
Currently translated at 80.7% (651 of 806 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/de/
2026-04-03 21:09:49 +00:00
sebingel 998c38f519 Fix multiEditCore.php: align isOrdeable → isOrderable with JS return value
The rename of the elementOptions key from "ordeable" to "orderable" (part of
#1584) updated handleElementOptions() in settings_utils.js to return the
property as isOrderable. However, multiEditCore.php still destructured the
old name isOrdeable from that return value (line 139). Because JavaScript
object destructuring resolves properties by name, isOrdeable would silently
evaluate to undefined — no runtime error, just a broken binding.

The bug was masked because isOrdeable is not referenced after destructuring
in the current code of multiEditCore.php. The incorrect binding would become
a functional regression as soon as that code path is extended to actually
consume the orderable flag (e.g. to conditionally apply select2 sorting in
the multi-edit form).

Changes:
- front/multiEditCore.php:139 — isOrdeable → isOrderable
  Aligns the destructured property name with the renamed return key of
  handleElementOptions() so the binding resolves to the correct boolean
  value instead of undefined.

All 35 previously updated files already use the correct spelling; this was
the single remaining inconsistency. After this commit, grep for "isOrdeable"
and "ordeable" across front/ and server/ returns zero results.
2026-04-03 19:00:43 +00:00
sebingel 4c117db463 Fix elementOptions: rename typo 'ordeable' to 'orderable'
The key 'ordeable' in elementOptions was a long-standing typo for the
correct English word 'orderable'. Since the JS check in settings_utils.js
used the same misspelled key, the feature appeared to work — but it was
relying on the consistent propagation of a typo across the entire codebase.

Two pre-existing entries in front/plugins/ui_settings/config.json already
used the correct spelling 'orderable', but these had no effect because the
JavaScript check (option.ordeable === 'true') never matched them. As a
result, orderable behavior was silently disabled for those two settings.

Changes:
- front/js/settings_utils.js: renamed option.ordeable → option.orderable
  and isOrdeable → isOrderable (6 occurrences, lines 792/823/824/880/1079/
  1192/1228). The JS key check is the authoritative definition of the
  elementOptions property name, so this must change atomically with all
  config files.

- server/initialise.py:245: renamed "ordeable" → "orderable" in the
  hardcoded JSON string for LOADED_PLUGINS setting. This string is the
  source-of-truth for that setting's elementOptions and is not auto-
  generated from the plugin config files.

- front/plugins/*/config.json (33 files, 90 occurrences): renamed all
  "ordeable": "true" entries to "orderable": "true" via sed. All plugins
  used the typo consistently; they must be updated in the same commit to
  avoid a broken intermediate state.

The two formerly broken 'orderable' entries in ui_settings/config.json
are now matched by the corrected JS check and work as intended.

Fixes netalertx/NetAlertX#1584

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 18:28:48 +00:00
Jokob @NetAlertX 9f3dbe2de1 Merge pull request #1583 from netalertx/next_release
✅ Code checks / check-url-paths (push) Has been cancelled
✅ Code checks / lint (push) Has been cancelled
✅ Code checks / docker-tests (push) Has been cancelled
🐳 👩‍💻 docker dev / docker_dev (push) Has been cancelled
📘 Deploy MkDocs / deploy (push) Has been cancelled
feat(docs): Update coding standards to clarify database storage guide…
2026-04-03 13:02:09 +11:00
Jokob @NetAlertX 4f2fa86a49 feat(docs): Update coding standards to clarify database storage guidelines
🐳 ⚠ docker-unsafe from next_release branch / docker_dev_unsafe (push) Has been cancelled
2026-04-03 01:56:42 +00:00
jokob-sk bf986a35a4 Merge branch 'main' of github.com:netalertx/NetAlertX 2026-04-03 12:40:13 +11:00
jokob-sk cfa75178a4 en_us has to be first 2026-04-03 12:38:38 +11:00
Jokob @NetAlertX 4c7ea21bd8 Merge pull request #1582 from navnitan-7/fix/cve-2015-9251-jquery-ajax
📘 Deploy MkDocs / deploy (push) Has been cancelled
✅ Code checks / check-url-paths (push) Has been cancelled
✅ Code checks / lint (push) Has been cancelled
✅ Code checks / docker-tests (push) Has been cancelled
🐳 👩‍💻 docker dev / docker_dev (push) Has been cancelled
Potential Vulnerability in Cloned Code
2026-04-02 07:42:51 +11:00
navnitan-7 8b80a6d59c Security: jQuery ajaxConvert cross-domain script mitigation (CVE-2015-9251)
Backport upstream jQuery gh-2432 logic in bundled DataTables/jQuery:
skip inferred script conversion for cross-domain ajax responses.

Refs: https://github.com/jquery/jquery/commit/2546bb35b89413da5198d54a4539e4ed0aaf6e49
Made-with: Cursor
2026-03-31 02:08:15 +05:30
Jokob @NetAlertX d17256cff6 Merge pull request #1581 from netalertx/next_release
📘 Deploy MkDocs / deploy (push) Has been cancelled
✅ Code checks / check-url-paths (push) Has been cancelled
✅ Code checks / lint (push) Has been cancelled
✅ Code checks / docker-tests (push) Has been cancelled
🐳 👩‍💻 docker dev / docker_dev (push) Has been cancelled
feat(plugins): Implement /plugins/stats endpoint for per-plugin row c…
2026-03-28 08:59:47 +11:00
Jokob @NetAlertX 3f80d2e57f feat(plugins): Implement /plugins/stats endpoint for per-plugin row counts with optional foreignKey filtering
🐳 ⚠ docker-unsafe from next_release branch / docker_dev_unsafe (push) Has been cancelled
2026-03-27 21:35:41 +00:00
Jokob @NetAlertX 82dafbb188 Merge pull request #1580 from netalertx/next_release
feat(plugins): Optimize plugin badge fetching and rendering to preven…
2026-03-27 22:02:03 +11:00
Jokob @NetAlertX b18cf98266 feat(plugins): Enhance plugin counts handling with fail-open support and improved comments 2026-03-27 10:59:22 +00:00
Jokob @NetAlertX 77369c3ce8 feat(plugins): Optimize plugin badge fetching and rendering to prevent flicker and enhance visibility 2026-03-27 10:41:18 +00:00
Jokob @NetAlertX 49b72acd82 Merge pull request #1579 from netalertx/next_release
feat(plugins): Refactor auto-hide functionality to leverage Bootstrap…
2026-03-27 21:16:38 +11:00
Jokob @NetAlertX cd0a3f6de0 feat(plugins): Refactor auto-hide functionality to leverage Bootstrap's tab management for improved visibility handling 2026-03-27 10:12:12 +00:00
Jokob @NetAlertX adc78e6a2d Merge pull request #1578 from netalertx/next_release
feat(plugins): Implement auto-hide functionality for empty plugin tabs
2026-03-27 21:03:37 +11:00
Jokob @NetAlertX 13e91731be feat(plugins): Improve auto-hide functionality for empty plugin tabs by ensuring proper visibility handling and Bootstrap integration 2026-03-27 09:49:21 +00:00
Jokob @NetAlertX 7ef19b1c12 feat(plugins): Implement auto-hide functionality for empty plugin tabs 2026-03-27 09:26:25 +00:00
Jokob @NetAlertX 448e17ce45 Merge pull request #1577 from netalertx/next_release
feat(plugins): Optimize badge fetching by using lightweight JSON inst…
2026-03-27 19:33:55 +11:00
Jokob @NetAlertX 4daead1f8f feat(plugins): Enhance badge fetching with conditional JSON and GraphQL support 2026-03-27 08:08:44 +00:00
Jokob @NetAlertX 48454f6f2f feat(plugins): Optimize badge fetching by using lightweight JSON instead of GraphQL 2026-03-27 07:30:13 +00:00
Jokob @NetAlertX 9b71662eda Merge pull request #1576 from netalertx/next_release
feat(api): Enhance session events, plugin objects API with pagination, sorting, and filtering
2026-03-27 17:54:10 +11:00
Jokob @NetAlertX 7305fd78e3 fix(pagination): Ensure page number is always at least 1 in apply_common_pagination 2026-03-27 06:51:17 +00:00
Jokob @NetAlertX ec3e4c8988 feat(api): Enhance session events API with pagination, sorting, and filtering
- Added support for pagination (page and limit) in the session events endpoint.
- Implemented sorting functionality based on specified columns and directions.
- Introduced free-text search capability for session events.
- Updated SQL queries to retrieve all events and added a new SQL constant for events.
- Refactored GraphQL types and helpers to support new plugin and event queries.
- Created new GraphQL resolvers for plugins and events with pagination and filtering.
- Added comprehensive tests for new GraphQL endpoints and session events functionality.
2026-03-26 20:57:10 +00:00
Jokob @NetAlertX 54a249f043 Merge pull request #1575 from KayJay7/main
FREEBOX plugin version 2
2026-03-27 07:07:20 +11:00
Alvise Bruniera e30bdc526b updated freebox requirements 2026-03-26 17:14:56 +01:00
Alvise Bruniera 21f6a53830 freebox plugin version 2 2026-03-26 16:03:45 +01:00
jokob-sk 84eb4d2c92 DOCS: pin mkdocs version
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-03-25 06:43:06 +11:00
Jokob @NetAlertX 770ec9c447 Merge pull request #1574 from netalertx/next_release
DOCS: pin mkdocs version
2026-03-25 06:37:30 +11:00
jokob-sk 250e533655 DOCS: pin mkdocs version
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-03-25 06:26:57 +11:00
Sylvain Pichon 2bcb77f293 Translated using Weblate (French)
Currently translated at 99.7% (804 of 806 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/fr/
2026-03-23 07:09:48 +00:00
Jokob @NetAlertX 30e363354b Merge pull request #1572 from netalertx/next_release
BE: lazy SQL execution caused devIsSleeping to be missing and tiles n…
2026-03-23 10:03:53 +11:00
jokob-sk 37730301f4 BE: lazy SQL execution caused devIsSleeping to be missing and tiles not show #1569 #1250
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-03-23 09:55:45 +11:00
Jokob @NetAlertX 8e72386a39 Merge pull request #1560 from netalertx/next_release
Next release
2026-03-22 08:43:21 +11:00
Jokob @NetAlertX 7278ee8cfa Refactor getTotals method to clarify API contract and ensure stable response structure #1569 #1561 2026-03-21 21:28:42 +00:00
Jokob @NetAlertX fa22523a0b Refactor device tiles SQL logic to use get_sql_devices_tiles function for improved maintainability Feature Request - Flapping and Sleeping nuances
Fixes #1567
2026-03-21 21:10:37 +00:00
Jokob @NetAlertX 7569923481 Refactor column name replacements to include variations for ObjectPrimaryID and ObjectSecondaryID 2026-03-21 20:55:24 +00:00
Safeguard 4a81a4594c Translated using Weblate (Russian)
Currently translated at 100.0% (806 of 806 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/ru/
2026-03-20 19:09:48 +01:00