Files removed:
- install.php (in each module) - because module install is allowed to "root" user, not whoever doesn't have permission checking enabled
- modules_event_handler.php, modules_tag_processor.php - because module install is allowed to "root" user, not whoever doesn't have permission checking enabled
- languates_event_handler.php, themes_eh.php - optimization moved to separate task
- ost_eh.php, private_message_eh.php, topics_event_handler.php - optimization moved to separate task
Goals
- execute every changed code fragment from CLI and Web
- confirm, that every scheduled task can run from CLI
- confirm, that deploy works from CLI
- apply dependency patches & test them from CLI & web (when relevant) as well
- test new kApplication::permissionCheckingDisabled method indirectly by confirming that:
- in CLI no permissions are checked
- in Web no permissions are checked for "root" user
TODO
Plan (output differencies between CLI and Web deploy)
- in the CLI
- run the in-portal event:run adm:OnDeploy command
- confirm, that command output is present, when running do_update script
- confirm, that no errors happened
- run the in-portal command
- confirm, that available commands were listed
- in Admin Console
- go to Tools → System Tools section
- enter master:last_cache_rebuild into Key Name field in the Memory Cache sub-section
- press the Get Value button next to Key Name input
- agree to data display in confirmation dialog, that appears
- confirm, that Key Value textarea contains value similar to this: CLI - 24/01/2016 13:42:01 (general format: CLI - DD/MM/YYYY HH:MM:SS)
- press the Deploy button in the Project Deployment sub-section
- enter master:last_cache_rebuild into Key Name field in the Memory Cache sub-section
- press the Get Value button next to Key Name input
- agree to data display in confirmation dialog, that appears
- confirm, that Key Value textarea contains value similar to this: vm.aik.ninja (10.0.0.1) - 24/01/2016 13:46:05 (general format: HTTP_HOST (REMOTE_ADDR) - DD/MM/YYYY HH:MM:SS)
- press the "Reset" button in "Reset Parsed and Cached System Data" sub-section
- confirm, that "Last operation has been successfully completed!" green message appeared on top
- press "Reset & Validate Config Files" button in "Reset Parsed and Cached System Data" sub-section
- confirm, that "Last operation has been successfully completed!" green message appeared on top
- confirm, that debugger report was opened automatically
- confirm, that debugger report contains list of problematic unit configs
Plan (...)
- in PhpStorm:
- create "custom-sections:OnTest" event
- add an "echo" statement in it
- in CLI:
- run the in-portal event:run custom-sections:OnTest command
- confirm, that output contains result of that "echo" statement
TODO