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

Bring js code to make taxonomies admin work without spree_backend #4611

Merged
merged 9 commits into from
Feb 4, 2020

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Dec 18, 2019

What? Why?

Continues to #4595

We need to bring jstree from spree_backend so that the taxonomies admin page works in the backoffice. We remove one usage of jConfirm to avoid having to bring jquery.alert as well.

We create a folder admin/spree where we will put the not angularized JS legacy code coming from spree_backend. It's not much code but I think it's better if we keep it isolated under admin/spree/.

What should we test?

The taxons admin page in the backoffice is working correctly, particularly setting up hierarchies and renaming and deleting elements.

Release notes

Changelog Category: Changed
Brought from spree_backend code to make taxons admin page work without spree code so that we make ofn independent of spree.

@luisramos0 luisramos0 changed the title Taxonomies js Bring js code to make taxonomies admin work without spree_backend Dec 18, 2019
@luisramos0 luisramos0 self-assigned this Dec 18, 2019
@luisramos0
Copy link
Contributor Author

I rebased and tested deploying. All good. Ready for testing.

@lin-d-hop lin-d-hop added the pr-staged-uk staging.openfoodnetwork.org.uk label Feb 4, 2020
@lin-d-hop
Copy link
Contributor

ping @luisramos0 #conflicts

@lin-d-hop lin-d-hop removed the pr-staged-uk staging.openfoodnetwork.org.uk label Feb 4, 2020
@luisramos0
Copy link
Contributor Author

rebased 👍

@lin-d-hop lin-d-hop added the pr-staged-uk staging.openfoodnetwork.org.uk label Feb 4, 2020
@lin-d-hop
Copy link
Contributor

Tested creating a taxon and associating with a product.
Taxons can be deleted when not associated with a product and cannot be deleted afterwards.
Taxons in different hierarchies are squashed into a flat list.
Renaming works.
All changes flow correctly into shopfront and descriptions.
All behaviour is as the current taxonomy system on production.

Ready to go :-)

@lin-d-hop lin-d-hop removed the pr-staged-uk staging.openfoodnetwork.org.uk label Feb 4, 2020
@luisramos0 luisramos0 merged commit 70147f9 into openfoodfoundation:master Feb 4, 2020
@luisramos0 luisramos0 deleted the taxonomies_js branch February 4, 2020 11:47
@luisramos0 luisramos0 mentioned this pull request Feb 6, 2020
18 tasks
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.

4 participants