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

Enhanced Workflow Instance Filters #4957

Merged
merged 9 commits into from
Feb 18, 2024

Commits on Feb 17, 2024

  1. Add timestamp filtering for workflow instances

    Implemented a new feature in the workflow instances' querying API, enabling filtering based on timestamps. The changes include adding a new TimestampFilter class and modifying existing classes accordingly. This new filter supports various operators such as greater than and less than, providing flexibility in filtering workflow instances.
    sfmskywalker committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    349c391 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2024

  1. Improve timestamp filtering efficiency and update UI in WorkflowInsta…

    …nceList
    
    Timestamp filtering within WorkflowInstanceList is refactored using System.Linq.Dynamic.Core for more compact expression. This change results in simpler and more efficient code, reducing repetitive code lines. The UI updates include changing the MudGrid structure to table for timestamp filters display, offering a more organized view. Also, protection against null or minimum date values during parsing and comparisons is added, increasing stability and safety of operations.
    sfmskywalker committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    d944c6c View commit details
    Browse the repository at this point in the history
  2. Refactor HTTP verbs and routes configuration in Endpoint.cs

    The previous Get and Post method calls for handling '/workflow-instances' have been replaced with a Verbs method for HTTP verbs and a Routes method for setting the route.
    sfmskywalker committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    b9691a7 View commit details
    Browse the repository at this point in the history
  3. Update WorkflowInstanceFilter to use nullable HasIncidents

    The HasIncidents property in WorkflowInstanceFilter has been updated from a bool to a nullable bool so that it can represent three states (true, false, or null) instead of only two. This allows not only to filter workflow instances that have incidents, but also those that don't have any, enhancing the flexibility of the filter in the process.
    sfmskywalker committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    43f9b2c View commit details
    Browse the repository at this point in the history
  4. Improve search functionality and UI in WorkflowInstanceList

    Updated search term comparison in WorkflowInstanceFilter to use "Contains" instead of "Equals" to improve search flexibility. Also, enhanced the user interface in WorkflowInstanceList by adding debounce interval for the search input for performance reasons and by adding a Close button for convenience.
    sfmskywalker committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    79860e0 View commit details
    Browse the repository at this point in the history
  5. Add input validation to WorkflowInstances endpoint

    The code modifies the API endpoint for WorkflowInstances. It now checks that the input provided in the request is valid before proceeding. Furthermore, a new file called 'RequiredMembers.cs' has been added, which introduces two new attributes 'RequiredMemberAttribute' and 'CompilerFeatureRequiredAttribute'.
    sfmskywalker committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    0f34fdd View commit details
    Browse the repository at this point in the history
  6. Update src/modules/Elsa.Workflows.Management/Models/TimestampFilter.cs

    Co-authored-by: Béchir BEN AMEUR <32399944+bbenameur@users.noreply.github.com>
    sfmskywalker and bbenameur authored Feb 18, 2024
    Configuration menu
    Copy the full SHA
    8d24311 View commit details
    Browse the repository at this point in the history
  7. Update src/modules/Elsa.Workflows.Management/Models/TimestampFilter.cs

    Co-authored-by: Béchir BEN AMEUR <32399944+bbenameur@users.noreply.github.com>
    sfmskywalker and bbenameur authored Feb 18, 2024
    Configuration menu
    Copy the full SHA
    8765a3f View commit details
    Browse the repository at this point in the history
  8. Update src/modules/Elsa.Workflows.Management/Models/TimestampFilter.cs

    Co-authored-by: Béchir BEN AMEUR <32399944+bbenameur@users.noreply.github.com>
    sfmskywalker and bbenameur authored Feb 18, 2024
    Configuration menu
    Copy the full SHA
    1b047ea View commit details
    Browse the repository at this point in the history