Skip to content

Fix PR #335 review issues#338

Merged
ddon merged 2 commits intoBeamLabEU:devfrom
timujinne:dev
Feb 14, 2026
Merged

Fix PR #335 review issues#338
ddon merged 2 commits intoBeamLabEU:devfrom
timujinne:dev

Conversation

@timujinne
Copy link
Contributor

Summary

  • Add authorization checks (Scope.admin?) to all 5 entity bulk action handlers
  • Rewrite bulk_update_category to use single jsonb_set query instead of N individual updates
  • Extract available_categories before category filter for correct dropdown display
  • Fix admin_edit_url in catalog_product mount_with_product: product.id → product.uuid, add /edit suffix
  • Replace silent rescue with Logger.warning in product_counts_by_category

Test Plan

  • mix compile — no warnings
  • mix format — formatted
  • mix credo --strict — no issues
  • mix quality — all checks passed (including Dialyzer)

- Add Scope.admin? authorization checks to all 5 entity bulk action handlers
- Rewrite bulk_update_category to use single jsonb_set query instead of N updates
- Extract available_categories before category filter for correct dropdown display
- Fix admin_edit_url: product.id → product.uuid, add missing /edit suffix
- Replace silent rescue with Logger.warning in product_counts_by_category
@ddon ddon merged commit 47eb10b into BeamLabEU:dev Feb 14, 2026
6 checks passed
ddon pushed a commit that referenced this pull request Feb 14, 2026
…oss-review findings

Renamed AI_REVIEW.md to CLAUDE_REVIEW.md for clarity alongside MISTRAL_REVIEW.md.
Added Kimi independent review identifying scalability (no pagination, in-memory
filtering) and MapSet issues. Updated Claude review with cross-review section
acknowledging missed findings and context on Mistral's severity claims.
timujinne added a commit to timujinne/phoenix_kit that referenced this pull request Feb 15, 2026
- Add admin auth checks for single-record handlers in data_navigator
- Move require Logger to module level in shop.ex
- Filter only active products in category featured product dropdown
- Add recursive circular reference validation for category parents
- Prevent ancestor cycles in bulk category parent update
- Split load_categories into static data cache and filtered query
- Remove unused noop event handler and phx-click attributes
- Remove unused MIM demo images (8.2MB)
ddon added a commit that referenced this pull request Feb 15, 2026
Fix remaining review issues from PR #335 and #338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants