Global option for batch settings

nonsie - February 11, 2009 - 18:37
Project:Domain Access
Version:6.x-2.x-dev
Component:- Domain Conf
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

It might not be use case for most DA users but in some cases the domain list can get very long and marking each domain offline to perform updates is quite tedious. Attached is patch we've been using to simplify this - it alters the description text at the top of the page and provides options to switch all sites online or offline (eg mark the correct radio button). You'll still need to save the form.

AttachmentSize
domain_conf.module_toggle_offline.patch1.72 KB

#1

agentrickard - February 11, 2009 - 21:24

I wonder if this can be abstracted to some of the other forms?

Or maybe we should just provide a global option at the top of the form? "Set all to this value"

#2

agentrickard - June 28, 2009 - 16:18
Version:6.x-1.2» 6.x-2.0-rc8
Status:needs review» postponed

This is another nice-to-have but not critical improvement.

#3

blackdog - August 13, 2009 - 11:52

I was just about to code this myself but decided to search first - good stuff! Patch didn't apply, so I re-rolled.

I agree that we should try to make this a generic function, so more batch updates can use it, or we create domain.js and put all this stuff in there, and create these helpers where they fit.

AttachmentSize
372887-domain_conf_toggle_offline.patch 1.86 KB

#4

agentrickard - August 13, 2009 - 13:56
Status:postponed» needs review

Bumping to 'needs review' so people can see it, but I don't intend to work on this right now.

#5

blackdog - August 13, 2009 - 14:42

Which approach would you prefer to take with this?

Provide one global option for all batch operations?
Or create helper snippets like the one attached for those areas that users find needing it?

#6

agentrickard - August 13, 2009 - 14:55

I like the global option. Maybe at the top of the form, a global option, with checkboxes (which can be mass selected) for each entry.

Something like the hook_node_operations() does with admin content.

#7

blackdog - August 15, 2009 - 11:32
Version:6.x-2.0-rc8» 6.x-2.x-dev

Here's a new patch making this a general form function on all batch forms. It takes the setting that's being displayed and creates a new form item which lets users update the value and check to apply it to all domains.

I haven't figured out why I can't get this form to show up before the domain table, any ideas?

AttachmentSize
372887-domain_batch_operations.patch 1.64 KB

#8

blackdog - August 15, 2009 - 11:46

Updated patch to make strings translatable.

AttachmentSize
372887-domain_batch_operations.patch 1.65 KB

#9

agentrickard - August 15, 2009 - 17:08

Yes, see theme_domain_batch_form(), which specifies the rendering of the form. Using a theme function in this way can override #weight elements in the form.

I think we want the option to ignore certain domains here. And I'd really like for nonsie to review.

#10

BWPanda - August 24, 2009 - 06:06
Title:Set offline/online status for all domains on admin/build/domain/batch/site_offline» Global option for batch settings

#557494: Easier batch updating was just marked as a duplicate of this issue. As such, I've renamed the title to better suit the discussion here.

#11

agentrickard - November 1, 2009 - 18:15
Status:needs review» fixed

This patch is dead sexy.

I cleaned up some of the options, moved the form element in the theme function, and also corrected a few stray domainbatch errors.

I did not implement the 'skip some domains' feature, as I figure people can handle that themselves.

This added an element to the hook_domainbatch() API, since some values _must_ be unique across all domains, we do not allow them to be set with this form.

the value #udpate_all handles this. It must be set to TRUE for this form field to be visible.

Committed to HEAD!

AttachmentSize
372887-domain_batch_operations_0.patch 12.2 KB

#12

agentrickard - November 1, 2009 - 18:18

We no longer force site name to be unique, so that can be set for all, as well. I think the only thing that can't is the domain string itself.

AttachmentSize
372887-domain_batch_operations.patch 12.2 KB

#13

blackdog - November 3, 2009 - 12:24

Good stuff Ken! Great work on the 2.0 release!

#14

System Message - November 17, 2009 - 12:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.