feat: update sails-rs to 1.0.0 - #32
Conversation
3231829 to
99b4fd3
Compare
Code Review:
|
| # | Severity | Area | Issue |
|---|---|---|---|
| 1 | Critical | require_role logic |
Admin bypass path broken for role_id == default_admin_role() |
| 2 | Critical | Capacity test | roles_capacity_exceeded doesn't verify the last valid role was accepted |
| 3 | Important | data_idx overflow |
No compile-time assertion that N <= u16::MAX |
| 4 | Important | RS parameter |
role_data SmallVec uses RS but undocumented |
| 5 | Important | set_role_admin |
Creates empty role slots, consuming capacity silently |
| 6 | Important | Stale docs | DEFAULT_ADMIN_ROLE in doc comments throughout |
| 7 | Important | grant_initial_admin |
Silent CapacityExceeded failure when N == 0 |
| 8 | Suggestion | require_role |
Add debug_assert for index-0 assumption |
| 9 | Suggestion | Benchmarks | Baseline reduction eliminates high-scale regression detection |
| 10 | Suggestion | Capacity tests | stress_test_max_members doesn't guard against role-slot exhaustion |
| 11 | Suggestion | vft-admin sizing | RS == N and MS == M is intentional but unexplained |
| 12 | Suggestion | README | Indentation error in code example |
* docs: address AI code review feedback * test: add tests to verify admin path correctness
sails-rs to 1.0.0
🔬 Click to see benchmark results vs master🔬 Benchmark Comparison
Legend
🤖 This comment was automatically generated. Baseline: branch master. |
🔬 Click to see benchmark results vs master🔬 Benchmark Comparison
Legend
🤖 This comment was automatically generated. Baseline: branch master. |
1 similar comment
🔬 Click to see benchmark results vs master🔬 Benchmark Comparison
Legend
🤖 This comment was automatically generated. Baseline: branch master. |
No description provided.