Closed (outdated)
Project:
Drupal core
Version:
8.4.x-dev
Component:
views.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Aug 2013 at 16:43 UTC
Updated:
21 Oct 2017 at 08:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pcambra#2049573: Move most or all of the ActionBulkForm class to BulkFormBase is in now and I guess this is still wanted, now is not BulkFormBase but BulkForm
Comment #2
pcambraHere we go
Comment #3
dawehnerHave you tried to use https://drupal.org/documentation/git/configure which lets you to provide move only patches?
Comment #4
pcambraThanks for the tip @dawehner!
Here's a new patch
Comment #6
pcambraWhat were the chances of the file changing place this morning uh? :)Comment #7
pcambraComment #9
pcambraFor some reason git is getting the rename with the configuration linked in #3
But when I do a diff is trying to diff the moved file with itself.
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/BulkForm.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/BulkForm.phpComment #10
pcambraOk, figured out how to do the right diff.
I had to create a branch and commit the changes, and then used -C option:
git diff 8.x -C > 2058869-vdc-10.patchMaybe is worth documenting it?
Comment #11
alansaviolobo commentedreroll
Comment #12
dawehnerIt would be great if you could use a git configuration which keeps track of moves, so the patch
size would be reduced quite a lot. (see https://www.drupal.org/documentation/git/configure "Optimize diffs for renamed and copied files").
Comment #13
idebr commentedRerolled again.
Comment #14
idebr commentedComment #15
dawehnerAwesome!
Comment #16
alexpottThis issue is a normal task so we need to outline how it fits within the allowable Drupal 8 beta criteria. Can someone add Drupal 8 beta phase evaluation template to the issue summary.
Comment #17
idebr commentedAdded an issue summary and a beta evaluation. I set the issue back to RTBC, since the patch has not changed. Please let me know if this was an incorrect assumption.
Comment #18
idebr commentedRemoved tag 'Needs issue summary update'
Comment #19
alexpottI'm not sure there is any value in breaking all contrib modules that extend
Drupal\system\Plugin\views\field\BulkForm;this plugin is only used if views is installed. I don't think the benefits outweigh the disruption in this case.Setting back to "needs review" to give people a chance to disagree.
Comment #20
dawehnerIts easier to find in views though, you simply don't expect it to be in system module.
Comment #21
olli commentedI agree with #20. Should we also move tests, schema and hook_views_form_substitutions from action module, and views_field_bulk_form from core.data_types.schema.yml to views here?
Comment #22
alexpott@olli afaics action_views_form_substitutions() is not used or tested anywhere. But the answer to your question is yes we should get everything together in the right place.
Comment #23
olli commentedRemoved action_views_form_substitutions() and moved bulk form test and schema to views.
Comment #24
olli commentedreroll
Comment #25
dawehnerI'm curious, what happened with that bit of code? Can you explain why it can be removed?
Comment #26
olli commentedThanks for the review, @dawehner. I couldn't find any other usages of that placeholder or the class. I also don't see why that code was added in #1828410: Provide a bulk_form element for actions. Maybe that part of vbo was not fully included?
Comment #27
dawehnerThanks for @bojanz, this is about the select all box, which we afaik want, right? Isn't the all checkbox provided by that?
Comment #28
olli commentedThat's the "select all on all pages", right? And we have only simple select-all checkbox "select all on this page".
Comment #30
dawehner@olli I guess so, but well, removing that should be its own scoped issue, IMHO.
Comment #34
lendudeThis was fixed by #2916451: Move everything related to Bulk Form to Views module. Never found this issue when searching for existing issues before I filed that one :(