Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently the views integration is completely broken. So I think we can do ...
- Remove revert functionality
- Re factor/write some of the views listing command to work and remove export type stuff
- Fix enable/disable ops
- Improved drush help meta info
- Maybe some other things....
I know if/when views moves into core we will have to move this file to drush, but we might as well have a decent working version :)
Comment | File | Size | Author |
---|---|---|---|
#10 | views-1794144-10.patch | 24.29 KB | tim.plunkett |
#8 | views-1794144-8.patch | 24.21 KB | tim.plunkett |
#7 | 1794144-7.patch | 20.9 KB | damiankloip |
#4 | 1794144-4.patch | 20.84 KB | damiankloip |
#2 | 1794144-2.patch | 20.91 KB | damiankloip |
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedMore improvements and clean ups.
Comment #2
damiankloip CreditAttribution: damiankloip commentedSome more changes
Comment #3
dawehnerisn't it enough to just use $status == 'enabled' ?
I like this change!
Just a small simplification couldn't be just use entity_load_multiple and if ($views = entity_load_multiple...) ?
Comment #4
damiankloip CreditAttribution: damiankloip commentedSome good points!
Comment #5
tim.plunkettShould be $view_names
$view_names again
----
Running
drush va
gives me the wonderfulNot really much we can do about that though....
Comment #6
dawehnerEven the update.php can't be runned at the moment, but hey this cleanup is worth to get it.
Comment #7
damiankloip CreditAttribution: damiankloip commentedYeah the whole DIC thing is a bit annoying atm... Here is a new patch with Tim's variable name change suggestions from #5.
Comment #8
tim.plunkettWell, turns out there is a problem with Analyzer. I was trying out the code manually in devel/php, and it turned out that Drush is the only place that
views_include('analyze');
, so it was the only time that the bug in anaylzer was caught.It's a hook, so it should be in the .module. Because of the move, the bug fix is not apparent; it was just s/$view->display/$view-displayHandlers
Comment #10
tim.plunkettWhoops, rolled that while on the wrong branch.
Comment #11
tim.plunkettI'm fine with this, but I think someone else should look/commit it.
Comment #12
dawehnerI'm totally fine with the analyze code. I just remember that the node: status analyze worked fine back in time.
Committed and pushed
Comment #13.0
(not verified) CreditAttribution: commentedUpdated issue summary.