Praying for deliberately deleted entries to STOP BEING PARSED AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
This commit is contained in:
@@ -971,6 +971,7 @@ func collectBaseDataset(dataset nativeDataset) (nativeCollectedDataset, error) {
|
||||
}
|
||||
}
|
||||
if overrideRequestsNullRow(override) {
|
||||
retireRowIdentity(row, lockData, retiredKeys)
|
||||
nullifyOverrideRow(row, columns, rowByKey)
|
||||
continue
|
||||
}
|
||||
@@ -1051,6 +1052,9 @@ func collectBaseDataset(dataset nativeDataset) (nativeCollectedDataset, error) {
|
||||
}
|
||||
}
|
||||
for _, module := range generatedModules {
|
||||
if module.ApplyAfterModules {
|
||||
continue
|
||||
}
|
||||
if err := applyModuleData(module.Name, module.Data); err != nil {
|
||||
return nativeCollectedDataset{}, err
|
||||
}
|
||||
@@ -4284,6 +4288,20 @@ func nullifyOverrideRow(row map[string]any, columns []string, rowByKey map[strin
|
||||
}
|
||||
}
|
||||
|
||||
func retireRowIdentity(row map[string]any, lockData map[string]int, retiredKeys map[string]struct{}) {
|
||||
if row == nil {
|
||||
return
|
||||
}
|
||||
oldKey, ok := row["key"].(string)
|
||||
if !ok || oldKey == "" {
|
||||
return
|
||||
}
|
||||
delete(lockData, oldKey)
|
||||
if retiredKeys != nil {
|
||||
retiredKeys[oldKey] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
func updateOverrideRowKey(datasetName string, row map[string]any, expanded map[string]any, rowByKey map[string]map[string]any, lockData map[string]int) (bool, string, error) {
|
||||
oldKey, _ := row["key"].(string)
|
||||
newKeyValue, hasKey := expanded["key"]
|
||||
|
||||
Reference in New Issue
Block a user