Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Admin] Shipping category update #5723

Conversation

loicginoux
Copy link
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
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