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

feat(ui): canvas error handling #6896

Merged
merged 5 commits into from
Sep 20, 2024
Merged

Commits on Sep 20, 2024

  1. feat(ui): revised getImageDTO utils

    - Rename util to `getImageDTOSafe`
    - Update API to accept the same options as RTKQ's `initiate`
    - Add `getImageDTO`; while `getImageDTOSafe` returns null if the image is not found, the new util throws
    - Update usage of `getImageDTOSafe`
    psychedelicious committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    6b82634 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f96a82 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5978667 View commit details
    Browse the repository at this point in the history
  4. feat(ui): reworked filter execution & error handling

    Two main changes:
    - Add `runGraphAndReturnImageOutput` to `CanvasStateApiModule`. This method is a safe and convenient abstraction to execute a graph and retrieve the image output of one of its nodes. It supports cancellation (via an AbortSignal) and timeout.
    - Update filters to build whole graphs, as opposed to nodes.
    
    These changes allow:
    - Filter execution is resilient, with all error cases handled (afaik)
    - `CanvasEntityFilterer` class is much simpler
    - Stuck or long-running filters may be canceled
    - Filters may be arbitrarily complex - so long as there is one node that outputs an image, the filter will just work
    psychedelicious committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    794bfc6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f6146b1 View commit details
    Browse the repository at this point in the history