[GH-ISSUE #360] Community script library - enhancements to unique ID and managing community script library changes/deletes #224

Closed
opened 2026-03-02 02:14:38 +03:00 by kerem · 0 comments
Owner

Originally created by @silversword411 on GitHub (Apr 2, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/360

From discord chat, my understanding is community scripts on first install are converted to base64 and imported into the database. The unique key is the "name": field. If that is changed then it will think it's a new script and can break things.

First
Add new field in community_scripts.json
uuid: that will be the unique database identifier (need method of creating it the first time).

Second
Update script needs to be fixed so that:
All community scripts database entries unique key is changed from name: to uuid:

Third
Update script needs to be fixed so that:
If a community script is deleted (uuid: no longer there) and is not in use purge from local database
OR
If a community script is deleted (uuid: no longer there) AND it's currently in use in the local install the script should be converted from a community (unmodifiable) script to a userdefined script (so we don't break existing automation profiles).

Originally created by @silversword411 on GitHub (Apr 2, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/360 From discord chat, my understanding is community scripts on first install are converted to base64 and imported into the database. The unique key is the "name": field. If that is changed then it will think it's a new script and can break things. First Add new field in `community_scripts.json` `uuid:` that will be the unique database identifier (need method of creating it the first time). Second Update script needs to be fixed so that: All community scripts database entries unique key is changed from `name:` to `uuid:` Third Update script needs to be fixed so that: If a community script is deleted (uuid: no longer there) and is not in use purge from local database OR If a community script is deleted (uuid: no longer there) AND it's currently in use in the local install the script should be converted from a community (unmodifiable) script to a userdefined script (so we don't break existing automation profiles).
kerem closed this issue 2026-03-02 02:14:38 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#224
No description provided.