step 0
update test data with reminder levels that exercise our code
app-mvhub/project-tools/test_mvh_db.sql
app-mvhub/project-tools/test_nsp_db.sql
a. create new branch
b. run mv_update_development
c. get test data the way you want
i. psql update program & agency to create records with reminder levels other than zero
ii. some reminder levels should be 5
d. use pg_dump to overwrite test_*_db.sql (above)
e. commit , push,
f. run mv_update_development
i. as you
ii. as Lee
sudo su lgoodrich -l
cdws
bzr branch /var/www/mvhub/priya/source-code/$BRANCH_NAME/ .
mv_set_active
...
mv_update_development
g. look for errors
h. maybe edit dumps by hand to remove errors (as ***YOU***)
i. push/merge request / blah blah blah
Note: --no-acl and -no-owner probably big things in pg_dump
dig around for old procedure for saving test data
# look for deleted files
bzr log app-mvhub/doc
# look at postgres dumping
man pg_dump
1) Get data
# new queries AGENCY_PROGRAM_X_EXPIRED_CALL_RECORDS
# same as email reminder queries except also:
record_type
record_id
contact_phone
contact_fax
contact_?
#misc cleanup /refactoring
rename
Notifications::_push_and_return_programs
to:
Notifications::_push_and_return_records_for_emailing
2) format data for presentation
(maybe) create:
MVHub::Notifications::create_standard_notification_calls_with
3) present data in HTML::Template
modify CallManager.pm to take new routines created in Notifications.pm
modify call manger HTML template
add inner TMPL_LOOP with checkboxes
4) handle data user gives us in form
MVHub::CallManager::update_contact_info()
to:
with new UPDATE PROGRAM and UPDATE AGENCY logic
4) maybe rename
MVHub::CallManager::update_contact_info()
to:
???
step 0 project- tools/test_ mvh_db. sql project- tools/test_ nsp_db. sql
update test data with reminder levels that exercise our code
app-mvhub/
app-mvhub/
a. create new branch development
b. run mv_update_
c. get test data the way you want
i. psql update program & agency to create records with reminder levels other than zero
ii. some reminder levels should be 5
d. use pg_dump to overwrite test_*_db.sql (above) development mvhub/priya/ source- code/$BRANCH_ NAME/ . development
e. commit , push,
f. run mv_update_
i. as you
ii. as Lee
sudo su lgoodrich -l
cdws
bzr branch /var/www/
mv_set_active
...
mv_update_
g. look for errors
h. maybe edit dumps by hand to remove errors (as ***YOU***)
i. push/merge request / blah blah blah
Note: --no-acl and -no-owner probably big things in pg_dump
dig around for old procedure for saving test data
# look for deleted files
bzr log app-mvhub/doc
# look at postgres dumping
man pg_dump
pg_dump \
--format=p \
--file $MVH_DUMP_FILE.sql \
--no-owner \
--clean \
--no-acl \
-h localhost \
-d production.mvh \
-U production
####### ####### ####### ######
1) Get data PROGRAM_ X_EXPIRED_ CALL_RECORDS
# new queries AGENCY_
# same as email reminder queries except also:
record_type
record_id
contact_phone
contact_fax
contact_?
MVHub: :Notifications: :get_expired_ records( NEW_X_EXPIRED_ PROGRAM_ CALL_RECORDS) :Notifications: :get_expired_ records( NEW_X_EXPIRED_ AGENCY_ CALL_RECORDS)
MVHub:
# modify to take sub ref for Notifications: :_push_ and_return_ programs :Notifications: :create_ notifications_ using( \sub_name )
MVHub:
# example: user/login_ with_bad_ password. t
mech/
create: s::_push_ and_return_ records_ for_calls( on_me_aref= >'',record_ name=>' ', id=>'', record_ type=
Notification
push_
record_
)
returns something like
[ name_label= >'' name=>' '
{
record_
checkbox_
record_type=> '';
}
]
#misc cleanup /refactoring s::_push_ and_return_ programs s::_push_ and_return_ records_ for_emailing
rename
Notification
to:
Notification
2) format data for presentation :Notifications: :create_ standard_ notification_ calls_with
(maybe) create:
MVHub:
3) present data in HTML::Template
modify CallManager.pm to take new routines created in Notifications.pm
modify call manger HTML template
add inner TMPL_LOOP with checkboxes
4) handle data user gives us in form :CallManager: :update_ contact_ info()
MVHub:
to:
with new UPDATE PROGRAM and UPDATE AGENCY logic
4) maybe rename :CallManager: :update_ contact_ info()
MVHub:
to:
???
5) test code