Repository navigation
Conversation
Make embed, panel, gallery, custom, and support-hours colour fields nullable across schemas and Go models. Update panel embed mapping and custom-colour batch writes to preserve NULL values and return row errors.
This was referenced Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RM-348
Description
Makes embed colours nullable:
NULLmeans no colour and0means black.embeds.colour,panels.colour,custom_colours.colour_code,panel_support_hours_settings.out_of_hours_colourandgallery_listings.colourare nullable, and their Go fields are pointers.CustomEmbed.Colourdropsomitempty, so JSONB embeds (tags, KB, multi-panels, gallery) store"colour": null.CustomColoursuses*int.GetAllnow closes its rows and checksrows.Err(), andBatchSetchecks every batch result.GetByIdWithWelcomeMessage/GetByGuildWithWelcomeMessageno longer dereference the colour, which panicked on NULL.Existing
0values used to render as no colour, so they must be backfilled toNULLafter deploy or they will render black. Every service that reads panels must run this version before anyNULLis written.For:
TicketsBot-cloud/worker#162
TicketsBot-cloud/dashboard#162
TicketsBot-cloud/premiumcheckdaemon#5
TicketsBot-cloud/category-update-producer#4
Type of Change
Checklist