You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we discussed in #2192, I re-did my changes on the split_core branch.
You've been doing a lot of great work!
I only needed to change a couple of lines on this branch to get the desired functionality: I wanted to be able to re-use the taxonomy tree editor elsewhere, which basically just required turning it into a function which accepts taxonomy_id, instead of having it load automatically based on the global taxonomy_id variable.
(On my original PR, I made a lot more changes, but looks like the Spree::API stuff takes care of all that now).
One last note: has the procedure for running the tests changed? I'm confident this change doesn't break anything in admin/taxonomies/edit, but I don't know if there were other places that used the code, because I couldn't get the tests to run.
I generated the sample app and ran bundle exec rake spec (and tried bundle exec rspec too), with no results. Also, the generated sample app doesn't seem to be there, even though it said it was generating and took a while to run.
Take a look at the build.sh file in the root of the Spree repo for steps to run the tests. You need to run bundle exec rake test_app either at the root or within the component you care about to generate the dummy application for that component that Spree's tests will run against. Running bundle exec rspec spec within the component you want to test will run all of the tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As we discussed in #2192, I re-did my changes on the split_core branch.
You've been doing a lot of great work!
I only needed to change a couple of lines on this branch to get the desired functionality: I wanted to be able to re-use the taxonomy tree editor elsewhere, which basically just required turning it into a function which accepts
taxonomy_id, instead of having it load automatically based on the globaltaxonomy_idvariable.(On my original PR, I made a lot more changes, but looks like the Spree::API stuff takes care of all that now).
One last note: has the procedure for running the tests changed? I'm confident this change doesn't break anything in admin/taxonomies/edit, but I don't know if there were other places that used the code, because I couldn't get the tests to run.
I generated the sample app and ran
bundle exec rake spec(and triedbundle exec rspectoo), with no results. Also, the generated sample app doesn't seem to be there, even though it said it was generating and took a while to run.