On Fri, Apr 1, 2016 at 11:43 AM, Sam Ruby <ru...@intertwingly.net> wrote:
>
> Just a heads up: I'm looking at adding support for a "dry run" of
> these scripts, which likely will result in some change to the script
> itself, and may need additional setup by wrapper scripts.

The /roster/committer/* pages now support dry runs of changes.  Double
click on on a light green area to show a form; make the updates you
wish, and then option-click on Macs (control-click everwhere else) on
the relevant button.  The results will come back in JSON form.  For
LDAP changes, they will show you the previous value, for SVN changes
you will see a transcript of commands issued and their responses.

You will also see other information, including a JSON representation
of the committer page.

 - - -

This tool can be run locally assuming you have your .whimsy file set
up and LDAP configured.  See
https://github.com/apache/whimsy/blob/master/DEVELOPMENT.md#setup

The commands you need to run a local server can be found in
https://github.com/apache/whimsy/blob/master/www/roster/README

The server will automatically restart whenever it detects a code
change.  You mentioned adding an action to move a member to
deceased... that sounds like a relatively straightforward change that
can be developed and tested locally.  To make it even easier, I've
split up the file that shows the page, which means that only two files
would need to be updated for this change.  For the client side:

https://github.com/apache/whimsy/blob/master/www/roster/views/person/memstat.js.rb

and for the server side:

https://github.com/apache/whimsy/blob/master/www/roster/views/actions/memstat.json.rb

- Sam Ruby

Reply via email to