Skip to content

[Admin] Shipping category update#5723

Closed
loicginoux wants to merge 3 commits intosolidusio:mainfrom
loicginoux:feature/admin-shipping-category-update
Closed

[Admin] Shipping category update#5723
loicginoux wants to merge 3 commits intosolidusio:mainfrom
loicginoux:feature/admin-shipping-category-update

Conversation

@loicginoux
Copy link
Copy Markdown
Contributor

@loicginoux loicginoux commented Apr 12, 2024

Summary

This PR follows the work started on #5718 where Shipping categories creation was implemented. This PR is for updating a shipping category.
The issue is #5720
This PR includes the creation code as well because it was forked from the branche on #5718, so I'll keep this one in draft until the creation PR is merged.
This PR follows the code for editing tax categories from this PR #5697, I pretty much copy and adapt the code and added a spec (missing for tax categories edition). Talking about copying/duplicating code, should these basic crud actions be refactored to avoid duplication for other models ?

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

Now that new admin allow for searching them, we had to allow name attrribute to be searchable via ransack
@MadelineCollier
Copy link
Copy Markdown
Contributor

This work has been migrated to #5817 and linter, conflicts and specs fixed and finished off. Thanks for this Loic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants