Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2011 at 21:06 UTC
Updated:
31 Mar 2015 at 02:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
igor.ro commentedComment #2
dawehnerUpdate status
Comment #3
igor.ro commentedPatch for views 3.0
Comment #4
colanLet's do this in D7 first. Patch attached.
Comment #5
mvchmm. what if a view is called 'all'? i would suggest "drush views-revert-all" or "drush views-revert --all".
that's arguably a vague name for a view, but it's possible that a user has created one.
i know we run "drush cc all", but users can't create & name arbitrary cache containers as they can with views so no conflict is possible.
Comment #6
colanWorking on the --all option as suggested by moshe on #drush. I think this is better as it keeps everything within one command.
Comment #7
moshe weitzman commentedFYI would be great to sync D7 changes to D8 which is in Drush core. Might require significant changes for revert.
Comment #8
moshe weitzman commentedSorry, didn't mean to unassign. I cant fix it.
Comment #9
colanAlright, can we do D7 first? See attached. I'll take a look at the D8 afterwards.
Comment #10
colanFor D8, I created a separate issue in the Drush issue queue over at https://github.com/drush-ops/drush/issues/730.
Comment #11
colanDrush was returning an error when there were no views to revert. That's bad for scripts. Fixed.
Comment #13
colanLooks like a problem with the bot?
Comment #15
joel.gilchrist commentedWe've been using this patch in our DEV and PROD environments for a few months now with no issues.
Comment #17
colanAccording to @dawehner, the testing is currently broken. But as we're falling behind getting things committed, we're going to start committing reasonably simple patches without it (and forward porting them to core version 8+).
Comment #18
colanActually, scratch that. This one should go into Drush now, probably https://github.com/drush-ops/drush/issues/699 ?