Skip to content

Conversation

@Jonas-Isr
Copy link
Member

Context

AI/ai-sdk-java-backlog#132.

Before, in the sample app we simply returned our Java classes in the controller and let them be deserialised to be displayed. This stopped working properly at some point (see linked issue above). In order to circumvent this, we decided to not rely on the deserialisation and also split up the business logic of the app into a dedicated service class.

Feature scope:

  • Split out business logic from OrchestrationController to newly added OrchestrationService.

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Aligned changes with the JavaScript SDK
  • Documentation updated
  • Release notes updated

@Jonas-Isr
Copy link
Member Author

Jonas-Isr commented Dec 16, 2024

Should I also refactor the OpenAiController in a similar fashion?

Pro: It would then be aligned with the OrchestrationController and OrchestrationService
Con: It is not broken, so why fix it...

@Jonas-Isr Jonas-Isr added the please-review Request to review a pull-request label Dec 17, 2024
@Jonas-Isr Jonas-Isr self-assigned this Dec 17, 2024
@Jonas-Isr Jonas-Isr removed the please-review Request to review a pull-request label Dec 18, 2024
@Jonas-Isr Jonas-Isr added the please-review Request to review a pull-request label Dec 18, 2024
@Jonas-Isr Jonas-Isr merged commit c3dce98 into main Dec 18, 2024
5 checks passed
@Jonas-Isr Jonas-Isr deleted the refactor-springboot-app branch December 18, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please-review Request to review a pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants