avatar b2z
b2z
1 Aug 2014

We have new events now. How do we want to process them? Currently CLI throws an error:

Adding events to the database...
[=>                           ]  1/12 00:00.00 ETA: 00:00.00

ERROR: Unknown event: labeled

Call stack:
#0 JPATH_ROOT/cli/Application/Command/Get/Project/Events.php(72): Application\Command\Get\Project\Events->processData()
#1 JPATH_ROOT/cli/Application/Command/Get/Project.php(256): Application\Command\Get\Project\Events->execute()
#2 JPATH_ROOT/cli/Application/Command/Get/Project.php(134): Application\Command\Get\Project->processEvents()
#3 JPATH_ROOT/cli/Application/Application.php(249): Application\Command\Get\Project->execute()
#4 JPATH_ROOT/vendor/joomla/application/src/AbstractApplication.php(105): Application\Application->doExecute()
#5 JPATH_ROOT/cli/tracker.php(40): Joomla\Application\AbstractApplication->execute()
avatar b2z b2z - open - 1 Aug 2014
avatar mbabker
mbabker - comment - 8 Aug 2014

Truthfully, instead of throwing an exception out in that method on the default case, I'd just log the unknown event and continue processing so we don't error out the scripts. This way there aren't errors getting thrown at the application by adding new events to the API.

avatar b2z b2z - change - 18 Aug 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-08-18 14:35:55
avatar b2z b2z - close - 18 Aug 2014

Add a Comment

Login with GitHub to post a comment