Rules Hub
Code Ruleset
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
Isolate malformed records in best-effort batches
When an established feed policy skips bad records, apply it to cache rebuilds too: catch conversion and membership failures per record, log identity, and continue valid records.
Bad example
| 1 | for (const row of rows) results.push(convert(row)); |
Explanation (EN)
When an established feed policy skips bad records, apply it to cache rebuilds too: catch conversion and membership failures per record, log identity, and continue valid records.
Objašnjenje (HR)
When an established feed policy skips bad records, apply it to cache rebuilds too: catch conversion and membership failures per record, log identity, and continue valid records.
Good example
| 1 | for (const row of rows) { try { results.push(convert(row)); } catch (error) { log(row.id, error); } } |
Explanation (EN)
Isolate malformed records in best-effort batches
Objašnjenje (HR)
Isolate malformed records in best-effort batches
Notes (EN)
When an established feed policy skips bad records, apply it to cache rebuilds too: catch conversion and membership failures per record, log identity, and continue valid records.
Bilješke (HR)
Primijeniti pri promjenama cachea, fallbacka i obrade skupova podataka.
Exceptions / Tradeoffs (EN)
Abort batches that require transactional completeness or where skipping violates the data contract.
Iznimke / Tradeoffi (HR)
Abort batches that require transactional completeness or where skipping violates the data contract.