New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load export type ids dynamically #703
Load export type ids dynamically #703
Conversation
Fixing a test by deleting it is the worst possible solution. Can you please try to find tests for the new logic and check if you can fix the old one. |
I've restored the old test and added a foreach to add types. For the new implementation i think that the existing test it's already ok. |
src/Controller/ExportController.php
Outdated
/** | ||
* @return ExportQuery | ||
*/ | ||
protected function createExportQueryWithExports() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not completely happy with this method being in the controller.
Maybe it could be moved as factory function to the ServiceExport. Registering the Query as a service could work as well and then registering the renderer type in a compiler pass.
I'll give it another thought and maybe push a change later on.
# Conflicts: # src/Controller/ExportController.php
I decided to remove the type validation from the query object, as it doesn't belong there. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Description
Load export type ids dynamically
Fixes #702
Types of changes
Checklist
bin/console kimai:phpcs --fix
to make sure my changes adopt the correct code style