Skip to content

Conversation

@jimklimov
Copy link
Member

@jimklimov jimklimov commented Mar 17, 2025

Assorted features and fixes inspired by #2708 discussion, to avoid cluttering the main PR's review scope.

Notably, the refactoring of status_set() allows other PRs to manage multiple-unique-token data similar to ups.status (as proposed for those "ECO" related changes), potentially not only in drivers.

CC @gdt @desertwitch

…back from status_set()) [networkupstools#2708]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…s_set() into str_add_unique_token() with a custom callback, and status_get() into str_contains_token() [networkupstools#2708]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… before matched

Avoid extra work in the loop

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov added documentation CI Entries related to continuous integration infrastructure (here CI = tools + scripts + recipes) refactor/fightwarn PR or issue proposal to improve code maintainability without functional changes, or to fix warnings upsmon labels Mar 17, 2025
@jimklimov jimklimov added this to the 2.8.3 milestone Mar 17, 2025
@gdt
Copy link
Contributor

gdt commented Mar 17, 2025

I only skimmed but this all seems sensible.

@jimklimov jimklimov merged commit f7f2fec into networkupstools:master Mar 18, 2025
30 checks passed
@jimklimov jimklimov deleted the issue-2708-status_set branch March 18, 2025 17:49
jimklimov added a commit to jimklimov/nut that referenced this pull request Mar 23, 2025
…_add_unique_token() [networkupstools#2852, networkupstools#2859]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov restored the issue-2708-status_set branch April 15, 2025 09:45
@jimklimov jimklimov deleted the issue-2708-status_set branch April 15, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Entries related to continuous integration infrastructure (here CI = tools + scripts + recipes) documentation refactor/fightwarn PR or issue proposal to improve code maintainability without functional changes, or to fix warnings upsmon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants