Skip to content

Commit d1dadaf

Browse files
DavidS-ovmactions-user
authored andcommitted
Hide test-changes from customers (#2585)
This change * add changes.is_system flag, that will be true when a change should not be shown in the app * update all relevant SQL statements * set is_system when storing a change as part of blast radius llm testing * remove obsolete change metering in stripe * update area51 to show the new flag * add link to original change (without database consistency to avoid any interference with regular operations) GitOrigin-RevId: 462a1444b76bfeeedc7b150edfa4b8f4da0df42f
1 parent d70e61b commit d1dadaf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sdp-go/changes.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ func (a *ChangeMetadata) GetUUIDParsed() *uuid.UUID {
1616
return &u
1717
}
1818

19+
func (a *ChangeMetadata) GetNullUUID() uuid.NullUUID {
20+
u := a.GetUUIDParsed()
21+
if u == nil {
22+
return uuid.NullUUID{Valid: false}
23+
}
24+
return uuid.NullUUID{UUID: *u, Valid: true}
25+
}
26+
1927
func (a *ChangeProperties) GetChangingItemsBookmarkUUIDParsed() *uuid.UUID {
2028
u, err := uuid.FromBytes(a.GetChangingItemsBookmarkUUID())
2129
if err != nil {

0 commit comments

Comments
 (0)