mirror of
https://github.com/amidaware/community-scripts.git
synced 2026-04-26 06:25:54 +03:00
[GH-ISSUE #149] Invalid GUIDs for two scripts #5
Labels
No labels
enhancement
good first issue
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/community-scripts#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NiceGuyIT on GitHub (May 15, 2023).
Original GitHub issue: https://github.com/amidaware/community-scripts/issues/149
While working with the community scripts, I noticed two of them have invalid GUIDs. These are 1 character longer than regular GUIDs. Since changing the GUID will cause the script to disappear for anyone using it, maybe add the scripts with valid GUIDs and rename the existing scripts with a warning.
As a side note, the kernel can provide a random GUID.
@silversword411 commented on GitHub (Sep 19, 2023):
@NiceGuyIT Don't know how I missed this before...but aren't there multiple GUID formats/standards?
As long as they're unique, shouldn't matter if they're not an extra character. Maybe when we eventually fix the deleted/renamed script problems we have now we can make 'em all the same
@NiceGuyIT commented on GitHub (Sep 19, 2023):
While there are multiple GUID formats, these are one character extra and do not adhere to the format.
This is an issue for the
community_scripts.schema.jsonto determine the type for the "GUID" field which can be used to validate ifcommunity_scripts.jsonis valid. The validation can be used to setup a CI/GitHub Actions to ensure only valid entries are submitted. If the GUID for these scripts are not corrected, the GUID is treated like a text field and validation is not possible.Note: The fact these are not valid GUIDs implies TacticalRMM does not treat these fields like GUIDs. I.e. The Python script to load the JSON, The PostgreSQL field type, the API, etc. all treat this like a text field.
community_scripts.schema.json