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

Implement TextToImage OCP API #40326

Merged
merged 66 commits into from
Oct 26, 2023
Merged

Implement TextToImage OCP API #40326

merged 66 commits into from
Oct 26, 2023

Commits on Oct 18, 2023

  1. Implement TextToImage OCP API

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    c8cab9d View commit details
    Browse the repository at this point in the history
  2. Small fixes

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    2d44c7c View commit details
    Browse the repository at this point in the history
  3. Small fixes

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    666f7b3 View commit details
    Browse the repository at this point in the history
  4. cs:Fix

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    dc8cba6 View commit details
    Browse the repository at this point in the history
  5. Update core/Controller/TextToImageApiController.php

    Co-authored-by: Julius Härtl <jus@bitgrid.net>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and juliushaertl committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    1e36d74 View commit details
    Browse the repository at this point in the history
  6. Update lib/public/TextToImage/IManager.php

    Co-authored-by: Julius Härtl <jus@bitgrid.net>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and juliushaertl committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    e199d1a View commit details
    Browse the repository at this point in the history
  7. Update lib/public/TextToImage/Events/TaskSuccessfulEvent.php

    Co-authored-by: Julius Härtl <jus@bitgrid.net>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and juliushaertl committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    53678a8 View commit details
    Browse the repository at this point in the history
  8. Update lib/private/TextToImage/TaskBackgroundJob.php

    Co-authored-by: Julius Härtl <jus@bitgrid.net>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and juliushaertl committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    41847c9 View commit details
    Browse the repository at this point in the history
  9. enh(TextToImage): Address review comments

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    e5efbc8 View commit details
    Browse the repository at this point in the history
  10. fix(TextToImage): Fix psalm errors

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    3e6a8b3 View commit details
    Browse the repository at this point in the history
  11. fix(TextToImage): Fix coding style

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    207c958 View commit details
    Browse the repository at this point in the history
  12. enh(TextToImage): Implement removal of stale images and change Task#l…

    …ast_updated to DATETIME
    
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    c59861a View commit details
    Browse the repository at this point in the history
  13. enh(TextToImage): Add routes

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    f52d763 View commit details
    Browse the repository at this point in the history
  14. enh(TextToImage): Allow anonymous access to IManager#getUserTasksByApp

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    e8faaeb View commit details
    Browse the repository at this point in the history
  15. Update lib/private/TextToImage/Db/Task.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    1d07dcc View commit details
    Browse the repository at this point in the history
  16. Update lib/public/TextToImage/Exception/TaskNotFoundException.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    4737238 View commit details
    Browse the repository at this point in the history
  17. Update lib/public/TextToImage/Exception/TextToImageException.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    5ddf3c3 View commit details
    Browse the repository at this point in the history
  18. enh(TextToImage): Add bruteforce protection for anonymous API usage

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    c5fbe5a View commit details
    Browse the repository at this point in the history
  19. fix(TextToImage): Fix docblock of getImage route

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    d3da49d View commit details
    Browse the repository at this point in the history
  20. fix(TextToImage): Fix notnull column to allow for empty strings on or…

    …cale
    
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    ca9a28a View commit details
    Browse the repository at this point in the history
  21. fix(TextToImage): Fix psalm issues

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    9b7f639 View commit details
    Browse the repository at this point in the history
  22. fix(TextToImage): Fix psalm issues

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    ab856a5 View commit details
    Browse the repository at this point in the history
  23. fix(TextToImage): Add bruteforce protection to API

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    e57e94e View commit details
    Browse the repository at this point in the history
  24. fix(TextToImage): Fix bruteforce protection

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    6238aca View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. fix(TextToImage): Add autoloader changes and registerAlias

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    3d11ab7 View commit details
    Browse the repository at this point in the history
  2. fix(TextToImage): Fix OpenAPI definitions

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    92cc171 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. enh(TextToImage): Add getExpectedRuntime to IProvider and run tasks d…

    …uring request lifetime if possible
    
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    8968573 View commit details
    Browse the repository at this point in the history
  2. enh(TextToImage): Allow generating multiple images with one task

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    b7fd518 View commit details
    Browse the repository at this point in the history
  3. enh(testing app): Add fake text2image provider

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    8ab47b6 View commit details
    Browse the repository at this point in the history
  4. fix(Text2Image): Fix Task#lastUpdated initialization to use DateTime …

    …instead of time()
    
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    37c4ccc View commit details
    Browse the repository at this point in the history
  5. fix(Text2Image): Fix OpenAPI types

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    7b7f552 View commit details
    Browse the repository at this point in the history
  6. fix(Text2Image): Fix psalm issues

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    bc85acf View commit details
    Browse the repository at this point in the history
  7. fix(Text2Image): Add number_of_images to migration

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    73da7f2 View commit details
    Browse the repository at this point in the history
  8. fix(Text2Image): Fix psalm error

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    4c58edc View commit details
    Browse the repository at this point in the history
  9. enh(Text2Image): Expose expected completion time

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    9ee7263 View commit details
    Browse the repository at this point in the history
  10. fix(Text2Image): Fix psalm errors

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    cee5aa8 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2023

  1. enh(Text2Image): Add AI settings section to text2image

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    9787f9d View commit details
    Browse the repository at this point in the history
  2. fix(Text2Image): Fix $completionExpectedAt default value

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    4055a90 View commit details
    Browse the repository at this point in the history
  3. fix(Text2Image): Fix appdata folder creation

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    b101859 View commit details
    Browse the repository at this point in the history
  4. fix(Text2Image): Fix FakeText2ImageProvider in testing app

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    6b6ac72 View commit details
    Browse the repository at this point in the history
  5. fix(Folder): Allow filename to be '0'

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    71a06b6 View commit details
    Browse the repository at this point in the history
  6. fix(TextToImage/Manager): Appease psalm

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    fa2fa47 View commit details
    Browse the repository at this point in the history
  7. fix(settings/AdminAI): Fix no-providers-installed view

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    bfc205f View commit details
    Browse the repository at this point in the history
  8. fix(settings/AdminAI): Fix eslint

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    6007b1b View commit details
    Browse the repository at this point in the history
  9. fix(RemoveOldTasksBackgroundJob): Update after change to support mult…

    …iple images in TextToImage
    
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    497559b View commit details
    Browse the repository at this point in the history
  10. fix: Update openapi.json

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    37419a9 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Update lib/public/TextToImage/Task.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    4624748 View commit details
    Browse the repository at this point in the history
  2. Update lib/public/TextToImage/Task.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    1f090a3 View commit details
    Browse the repository at this point in the history
  3. Update lib/private/TextToImage/RemoveOldTasksBackgroundJob.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    9144888 View commit details
    Browse the repository at this point in the history
  4. Update lib/private/TextToImage/Manager.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    5d36c4c View commit details
    Browse the repository at this point in the history
  5. Update lib/private/TextToImage/Db/TaskMapper.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    f9d209c View commit details
    Browse the repository at this point in the history
  6. Update lib/private/TextToImage/Db/TaskMapper.php

    Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and nickvergessen committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    ded7729 View commit details
    Browse the repository at this point in the history
  7. fix(TextToImage\Db\Task): Inject ITimeFactory

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    5f815bd View commit details
    Browse the repository at this point in the history
  8. fix(TextToImage\Migration): Fix typo

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    68bb4a0 View commit details
    Browse the repository at this point in the history
  9. fix: appease linters and psalm

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    4b8a58c View commit details
    Browse the repository at this point in the history
  10. fix: appease linters and psalm

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    0c1bd84 View commit details
    Browse the repository at this point in the history
  11. fix: Minor copypasta

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    8339b5b View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. en(TextToImage): Use specific exception class instead of generic Runt…

    …imeException
    
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    47e13cd View commit details
    Browse the repository at this point in the history
  2. en(TextToImage): Add getId method to IProvider

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    14d1c18 View commit details
    Browse the repository at this point in the history
  3. fix(TextToImage): Update testing provider to new interface

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    4e625f6 View commit details
    Browse the repository at this point in the history
  4. Update core/Controller/TextToImageApiController.php

    Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and come-nc committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    154bb53 View commit details
    Browse the repository at this point in the history
  5. fix(TextToImage): Fix copypasta

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    35bf7fc View commit details
    Browse the repository at this point in the history
  6. fix(TextToImage): Add missing task status update

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    b9985bf View commit details
    Browse the repository at this point in the history
  7. Update lib/public/TextToImage/IManager.php

    Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and come-nc committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    9658d9c View commit details
    Browse the repository at this point in the history
  8. Update lib/public/TextToImage/IProvider.php

    Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr and come-nc committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    1823a8e View commit details
    Browse the repository at this point in the history
  9. fix(TextToImage): Update autoloaders

    Signed-off-by: Marcel Klehr <mklehr@gmx.net>
    marcelklehr committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    cef069e View commit details
    Browse the repository at this point in the history