App-Dochazka-CLI
view release on metacpan or search on metacpan
CLI commands and handle them accordingly
- return the real status and not some dumb DOCHAZKA_CLI_NORMAL_COMPLETION
- implement $METHOD employee search nick $SEARCH_KEY
0.129 2015-03-25 16:22 CET
- implement "GET schedule all" and "GET schedule all disabled" commands
0.130 2015-03-26 07:44 CET
- t/parse.t: add tests for newly supported rest_test commands
- came up with idea for building up new schedules in memory
- CommandMap.pm: add new SCHEDULE _DOW ... commands
- Parser.pm: add support for multiple instances of the same token within a
single command
- TokenMap.pm: add support for new _DOW and _TIME tokens
0.131 2015-03-27 08:58 CET
- Commands/Schedule.pm: basic infrastructure for building up a schedule in
memory for submission to the REST server
0.132 2015-03-27 21:33 CET
- add DUMP and MEMORY tokens
- add "SCHEDULE DUMP", "SCHEDULE MEMORY", and "SCHEDULE NEW" commands
- basic schedule-building and schedule-inserting functionality seems to work,
but no tests yet
0.133 2015-03-28 20:21 CET
- bin/dochazka-cli: improve reporting of non-OK statuses
- CommandMap.pm, RestTest/Schedule.pm, t/parse.t: add missing REST test command
"$METHOD SCHEDULE SID $NUMBER"
- Commands/Schedule.pm: do not push duplicate schedule entries into memsched
- TokenMap.pm: include an "ALL" day of week (meaning replicate this interval to
all five days MON-FRI)
0.134 2015-03-28 20:44 CET
- bin/dochazka-cli: further refine reporting of errors
- CLI_Message_en.conf: add an error message for when "schedule/new" is called
on empty memsched
- CommandMap.pm: add "SCHEDULE ALL _TIMERANGE" for accelerated schedule entry
in cases when the schedule for MON-FRI is the same on each day
- Commands/Schedule.pm: make sure there are memsched entries to begin with,
before sending REST call; implement "SCHEDULE ALL _TIMERANGE" command
0.135 2015-03-30 08:57 CEST
- implement "SCHEDULE CLEAR"
- cleanup, tweaks
0.136 2015-03-30 15:11 CEST
- resolve two tickets
- TokenMap.pm: expand EMPLOYEE_SPEC so we can do "nick=...", "sec_id=..." and
"eid=..."
- Util.pm: make "lookup_employee" handle expanded EMPLOYEE_SPEC
- t/cmd_admin/employee.t: add test cases for expanded EMPLOYEE_SPEC
0.137 2015-03-30 23:11 CEST
- start adding scode support
0.138 2015-03-31 17:18 CEST
- implement 'SCHEDULE FETCH ALL' command
- Commands/Schedule.pm: in 'schedule_new', give the user feedback when schedule
is successfully inserted (WIP: feedback should include info whether schedule
was actually inserted or only updated - if updated, there might be a conflict
between new scode and the original one; not clear what the program should do
in such a case)
0.139 2015-04-03 07:05 CEST
- implement 'SCHEDULE FETCH ALL DISABLED'
0.140 2015-04-03 19:47 CEST
- make 'SCHEDULE FETCH ALL [DISABLED]' display remarks, if present, and clearly
mark disabled schedules as such
0.141 2015-04-04 15:27 CEST
- implement commands:
- SCHEDULE_SPEC [SHOW]
- SCHEDULE_SPEC REMARK
- SCHEDULE_SPEC SCODE _TERM
0.142 2015-04-04 21:46 CEST
- start working on PRIV HISTORY and SCHEDULE HISTORY handlers
- TokenMap.pm: add privlevels and _PRIVLEVEL
- cleanup
0.143 2015-04-05 11:34 CEST
- add Text::Table dependency
- lay groundwork for "PRIV", "EMPLOYEE_SPEC PRIV", "SCHEDULE", "EMPLOYEE_SPEC SCHEDULE",
"EMPLOYEE_SPEC PRIV HISTORY", and "EMPLOYEE_SPEC SCHEDULE HISTORY"
- Commands/History.pm: implement handler for "[EMPLOYEE_SPEC] PRIV HISTORY"
- Commands/Employee.pm: use 'App::Dochazka::REST::Model::Employee' instead of
'App::Dochazka::Model::Employee'
0.144 2015-04-05 13:32 CEST
- Commands/History.pm: add "print_schedule_history" routine
- Commands/Priv.pm: new module containing "show_current_priv" handler routine
- implement "[EMPLOYEE_SPEC] PRIV" and "[EMPLOYEE_SPEC] SCHEDULE" handlers
0.145 2015-04-05 20:59 CEST
- add Shared.pm with shared routines (priv/schedule etc.)
- Commands/History.pm: look up and display scode and remark in schedule history
table
0.146 2015-04-06 18:41 CEST
- implement commands for adding priv and schedule history records
0.147 2015-04-06 22:15 CEST
- add commands for changing priv and schedule history remarks
0.148 2015-04-07 09:29 CEST
- Util.pm: in rest_error, handle case when payload is a string
0.149 2015-04-07 11:51 CEST
- CommandMap.pm: add synonyms
- Commands/History.pm: fix typo bug in set_history_remark
0.150 2015-04-07 13:38 CEST
- Util.pm: add a 'truncate_to' function for limiting table columns that might
run on, and on, and on...
- History.pm: use truncate_to; in _add_history look up sid when scode is given;
in print_schedule_history print the right remark; remove quotes in
set_history_remark
- Schedule.pm: make schedule_new return status object with http_status property
- t/001-init.t: create a schedule so we don't have to create one manually all
( run in 1.717 second using v1.01-cache-2.11-cpan-39bf76dae61 )