Closed (fixed)
Project:
Facets
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2016 at 08:25 UTC
Updated:
26 Apr 2017 at 19:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
borisson_Comment #3
dragos-dumi commentedHi, I would contrib to this one, but not sure which page are you referring to; is this one? "admin/config/search/facets"
Comment #4
borisson_Yes. That is the page where we want to enable sorting through drag and drop
Comment #5
dragos-dumi commentedAttached a patch for the draggable overview page.
What I don't know if it's possible (or how) to lock the children within a facet source. Currently you could drag the facet below another source (but that doesn't affect the weight save).
Needs a test.
Comment #6
dragos-dumi commentedComment #8
borisson_Yeah, dragging to a different source won't work and that would feel very weird that dragging there is possible but doesn't do anything. Not sure how to resolve that. I'll make sure to discuss this next time we have a hangout / meeting.
In any case, thanks for your work on this patch!
Comment #9
borisson_We quickly discussed this issue earlier and decided that we shouldn't have to worry about dragging to another source, that's behavior that we do not want to support. We should document that on the overview.
We should have a look if core has any js-tests on the drag-drop UI and if it doesn't we can commit this patch as-is.
Comment #10
dragos-dumi commentedAttaching the rerolled patch - the initial one had ofsfets changes, an interdiff with a message as described in #9 and the complete patch.
Regarding the tests, I couldn't find and example o such tests nor a method that would help us. The only thing I was able to find was this one, but doesnt't look it can help - it moves element from a parent to another one, without a mention about weight with its sibliings
Comment #11
dragos-dumi commentedComment #12
borisson_Awesome, thanks! I'll test the patch out tonight and report my findings (or commit).
Comment #13
borisson_Works perfectly, committed.