Tags: ing-bank/baker
Tags
Feature/refactor and support dashboard for baker (#1304) * - Renamed BakeryExecutorJava to BakerResultToHttpResponseMapper - For BakerService and BakerResultToHttpResponseMapper, the 'callBaker' method is renamed to 'toBakerResultResponseIO' and 'toBakerResult' respectively. This more accurately describes what the method does. - Renamed BakerService to Http4sBakerServer - Split up bakery-state into bakery-state and baker-http-server. The idea is that baker-http-server can be used to expose baker endpoints (which can be then used for bakery but also for non-bakery APIs to use for the dashboard for example). - Moved baker-client, baker-server and dashboard from the bakery directory to http. * - Refactor BakerResultToResponseMapper into a separate InstanceResponseMapper. * Update dashboard project: - Static files are now added as resources in new jar artifact. - Added com.ing.baler.http.Dashboard object to safely access these static files. - Updated Http4sBakerServer to use this new way of accessing the dashboard. - Replaced dashboard-path property with enable-dashboard to reflect these changes. - No longer separately copy dashboard files into docker image. * - Cache npm build. * - Added documentation for the caching of the npmBuildTask - Added the distDirectory as something to be cleaned with clean command. * - Refactored Http4sBakerServer to have a routes method available seperately from the resource. - Created Htpp4sBakerServerSpec to test routes - Created a dashboard_config endpoint, since the settings.json is no longer available (that is now configured in the baker.dashboard property). - Enable publishing of the source code. * - Fixed structure of versionJson. - Fixed serving static files not working. * - Seperated Http4sBakerServer configuration loading into Http4sBakerServerConfiguration class. - Adding server specific configuration in reference.conf in server project. - Created a java-friendly constructor for the Http4sBakerServer. * - Reverted the field name to what it was, since it sometimes is accessed through reflection, even though it is private. - Instead made a new accessor so that this is not required anymore. * - Added some documentation to the 3 main subdirectories * - Updated packages in configuration. * - Fixed data model of recipe response. - Added some comments for fixing test issues. * - Add all routes to http4sbakerserver * - Make matching scala.2.12 compatible. * - Updated code based on review comments. - Added example code to main project, so they are run and compiled after changes. - Fixed example projects not working correctly. - Fixed test cases in baker-example not closing actor system correctly, causing them to only be able to run separately. * - Add noPublish to examples. * Fixed the BuildExampleDocker command. * - Try with parallel execution off. * Changed WebShop recipe test to use inmemory baker to have more stable tests. * - Remove event sink from test resource conf. Co-authored-by: Wessel W. Bakker <wessel.bakker@ing.com> Co-authored-by: XK00LJ <tim.linschoten@ing.nl>
PreviousNext