Conversation
Signed-off-by: edlng <edwardliangedli@gmail.com>
Greptile SummaryThis PR successfully makes One actionable finding: The frontend Confidence Score: 4/5
Last reviewed commit: a7a5279 |
Additional Comments (1)
Consider adding a server-side refinement to ensure the business rule is enforced end-to-end: |
| check( | ||
| "chk_lower_level_bounds", | ||
| sql`${table.lowerLevel} >= 1 AND ${table.lowerLevel} <= 4`, | ||
| sql`${table.lowerLevel} IS NULL OR (${table.lowerLevel} >= 1 AND ${table.lowerLevel} <= 4)`, |
There was a problem hiding this comment.
We should make the logic be either both lower and upper are present or the both are not present. Right now I believe the logic is not exactly that.
Closes #176
Makes it so that non-exercise classes have nullable levels (i.e., doesn't show the level slider).