Skip to content
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

Maestro V5 - Refactoring #287

Open
leoraba opened this issue Jan 9, 2025 · 0 comments
Open

Maestro V5 - Refactoring #287

leoraba opened this issue Jan 9, 2025 · 0 comments
Assignees

Comments

@leoraba
Copy link
Contributor

leoraba commented Jan 9, 2025

Summary of request

To keep track of the feedback from PR#286.

List of tasks:

  • Module Server Controller: Indexing Repository function could be a very long running process, we probably don't want to hold the web request until the indexing is complete. Should we instead return status 200 and state that the request has been started? fixed ✅
  • Module Indexer operations: Consider chunking the input data. ES has a max request size, so if you try to index too much in a single request it will fail.
  • Module Indexer operations: Differentiate response in following cases:
    • success
    • failure, errors in upload operation
    • failure, caught error during execution, network error or similar
  • Module provider api: Do we wan't to return or throw the error while creating the Repository, instead of waiting for it to be used? This let's the operator know that the setup failed during the setup step, instead of at a later point when using the repositories that were setup. fixed ✅
  • Module provider api: This file is not the controller for the web request, so it probably shouldn't be throwing errors associated with the web request instead return Result object with properties success, reason and message. fixed ✅
  • Module Repository: Move this package within maestro-provider package.
  • Module common types: Move Repository interface to repository package. Have LyricRepository and SongRepository as importable implementations of this interface.
@leoraba leoraba self-assigned this Jan 9, 2025
@leoraba leoraba mentioned this issue Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant