Merge lp:~fallaby/mvhub/display_agency_home_page_and_exit into lp:mvhub

Proposed by frank allaby
Status: Merged
Merged at revision: 560
Proposed branch: lp:~fallaby/mvhub/display_agency_home_page_and_exit
Merge into: lp:mvhub
Diff against target: 70 lines (+15/-8)
3 files modified
app-mvhub/doc/cheat_sheets/bzr_workflow.txt (+2/-2)
lib-mvhub/lib/MVHub/Common.pm (+13/-5)
lib-mvhub/t/AgencyFieldDefs/get_agency_field_definitions_href.t (+0/-1)
To merge this branch: bzr merge lp:~fallaby/mvhub/display_agency_home_page_and_exit
Reviewer Review Type Date Requested Status
MVHub devs with commit rights Pending
Review via email: mp+49416@code.launchpad.net

Description of the change

Submitted feb 11 2011

To post a comment you must log in.
547. By frank allaby

refer to bottom

Revision history for this message
Dan MacNeil (omacneil) wrote :

app-mvhub/doc/cheat_sheets/bzr_workflow.txt'

..shoudln't be edited

Revision history for this message
Dan MacNeil (omacneil) wrote :

This branch does two different unrelated things:

1) a test for MVHub::AgencyFieldDefs::get_agency_field_definitions_href()
2) improves MVHub::Common::display_agency_home_page_and_exit()

 which makes it a little bit confusing.

Given both the changes are improvements and simple, I'll approve and merge if checklist change is reverted

Revision history for this message
Dan MacNeil (omacneil) wrote :

sorry cheat sheet change

548. By frank allaby

cheat sheet reversion to comply with comments from Dan

549. By frank allaby

changes from /trunk

550. By frank allaby

correct link cheatsheet

551. By frank allaby

neatening up

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'app-mvhub/doc/cheat_sheets/bzr_workflow.txt'
2--- app-mvhub/doc/cheat_sheets/bzr_workflow.txt 2011-01-26 17:11:06 +0000
3+++ app-mvhub/doc/cheat_sheets/bzr_workflow.txt 2011-05-06 13:27:45 +0000
4@@ -60,7 +60,7 @@
5 bzr commit -m "merged trunk"
6
7 # apply database schema changes
8- mv_update_development
9+ mv_update_development
10 mv_prove -r app-mvhub/t lib-mvhub/t
11
12 # PROCEDURE Make A Merge Request
13@@ -100,7 +100,7 @@
14 bzr merge lp:mvhub/trunk
15
16 # run tests
17- mv_prove -r app-mvhub/t lib-mvhub/t
18+ mv_prove -r app-mvhub/t lib-mvhub/t
19
20 # Assuming no conflicts,test failures or other problems
21 bzr commit -m "merged trunk"
22
23=== modified file 'lib-mvhub/lib/MVHub/Common.pm'
24--- lib-mvhub/lib/MVHub/Common.pm 2010-10-16 00:29:43 +0000
25+++ lib-mvhub/lib/MVHub/Common.pm 2011-05-06 13:27:45 +0000
26@@ -53,6 +53,8 @@
27 use MVHub::Utils::DB;
28 use MVHub::Page;
29
30+use Params::Validate;
31+
32 # Our specially doctored version of CGI::FormBuilder:
33 use CGI::FormBuilder 2004.0123456789;
34 use MVHub::Page;
35@@ -149,12 +151,18 @@
36 # This is semi-hackish right now, until we move over entirely to
37 # CGI::Application
38 sub display_agency_home_page_and_exit {
39+
40+ Params::Validate::validate(
41+ @_,
42+ { agency_id => 1, # mandatory
43+ init_session => 0, # optional
44+ message => 0
45+ }
46+ );
47 my %args = @_;
48- my $agency_id = $args{agency_id}; # required
49- my $init_session = $args{init_session}; # optional
50- my $message = $args{message}; # optional
51- croak("Missing agency_id argument")
52- if ( !defined $agency_id or $agency_id eq "" );
53+ my $agency_id = $args{agency_id};
54+ my $init_session = $args{init_session};
55+ my $message = $args{message};
56
57 my $cgi = new CGI("");
58 my $cookie;
59
60=== modified file 'lib-mvhub/t/AgencyFieldDefs/get_agency_field_definitions_href.t'
61--- lib-mvhub/t/AgencyFieldDefs/get_agency_field_definitions_href.t 2011-02-01 16:05:08 +0000
62+++ lib-mvhub/t/AgencyFieldDefs/get_agency_field_definitions_href.t 2011-05-06 13:27:45 +0000
63@@ -2,7 +2,6 @@
64 use strict;
65 use warnings;
66
67-# EDIT
68 use Test::More tests => 1 + 1; # +1 for NoWarnings
69 use Test::NoWarnings;
70 use Test::More;

Subscribers

People subscribed via source and target branches