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

Alterations with Queries #5032

Merged
merged 35 commits into from
Mar 13, 2024
Merged

Alterations with Queries #5032

merged 35 commits into from
Mar 13, 2024

Commits on Feb 28, 2024

  1. Remove Elsa.Alteration Handlers and implement workflow alteration act…

    …ivities
    
    The Elsa.Alterations.Handlers, Services, and Endpoints have been removed and replaced with Elsa.Alterations.Activities for various steps in executing an alteration plan. These activities include submitting an alteration plan, generating alteration jobs, and dispatching alteration jobs. New models for ActivityFilter, AlterationWorkflowInstanceFilter, and alteration activity summaries are also introduced for better management of alteration plans.
    sfmskywalker committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    0749dae View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Add 'PrintMessage' custom activity and update naming rules

    A new 'PrintMessage' activity has been added to the custom activities of the ConsoleApp, which simply writes a 'Hello world!' message. On top of this, the naming rules in the code styling settings have been expanded, introducing separate rules for instance and static private fields.
    sfmskywalker committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    b75a63f View commit details
    Browse the repository at this point in the history
  2. Remove V3_1 database migration files

    The V3_1 database migration files were deleted across all database providers, including MySql, SQL Server, SQLite and PostgreSQL. This is indicative of a rollback or significant revision to the data migration strategy.
    sfmskywalker committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    9972995 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. Update product version and modify tables in Elsa DB context

    Updated "Elsa" DbSet product version from "7.0.11" to "7.0.14". Additionally, added new properties as well as modified existing ones in tables like "Elsa.KeyValues.Entities.SerializedKeyValuePair" to improve data structure. Also properly ignored certain entities in the Alterations DbContext.
    sfmskywalker committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    e0cc36f View commit details
    Browse the repository at this point in the history
  2. Add V3_1 migration for Elsa

    This commit introduces the V3_1 migration for the Elsa module. Changes involve the introduction of new tables and alteration of existing tables. Specifically, a new 'KeyValuePairs' table was added and several columns on various tables were renamed or altered.
    sfmskywalker committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    1a112ff View commit details
    Browse the repository at this point in the history
  3. Remove multiple Elsa.EfCore V3_1 migration files

    The commit removes several migration files related to the V3_1 migration in multiple Elsa.EntityFrameworkCore modules including SqlServer, PostgreSQL, and SQLite. These files encompass changes in table structures and alterations.
    sfmskywalker committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    7645fa8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31ea051 View commit details
    Browse the repository at this point in the history
  5. Update default value for ArgumentDefinition Type

    The default value for the `Type` property in the `ArgumentDefinition` class was updated to `typeof(object)`. The `Type` property of `inputDefinition` in the `WorkflowBuilder` class was also modified to be set as `typeof(T)`. These modifications enable more flexible type handling.
    sfmskywalker committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    0a3bed9 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Refactor SafeSerializer and serialization services

    The SafeSerializer service and related serialization services have been comprehensively refactored. This includes the removal of internal notifications, the incorporation of [RequiresUnreferencedCode] attributes, and changes in method signatures. Methods have been simplified to return ValueTasks directly from the JsonSerializer, and the notification sender dependency was removed.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    5cab6b3 View commit details
    Browse the repository at this point in the history
  2. Add JSON serialization for alterations

    Implemented a JSON serializer and a custom converter for the IAlteration interface in the Elsa.Alterations.Core.Serialization namespace. Also, introduced a new IJsonSerializer interface and an implementation for standard JSON serialization in Elsa.Common. These serialization changes enhance modularity and extensibility of JSON operations, and improve handling of IAlteration objects.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    10f87d0 View commit details
    Browse the repository at this point in the history
  3. Add "IsSystem" field to Workflow Definitions and Instances

    This update introduces a new boolean field "IsSystem" to the Workflow Definition and Workflow Instance models. This field is designed to identify system workflows which aren't meant to be modified by users. Management and Runtime module code, API endpoints, database migrations, and related classes have been updated to include this new field. The MongoDB indices and Dapper migrations have been updated as well, and serialization/deserialization processes for these types have been modified to handle this new attribute.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    adc253f View commit details
    Browse the repository at this point in the history
  4. Remove outdated database migrations

    Deleted database migration files from the MySql, SqlServer, and PostgreSql projects.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    eb8c3ab View commit details
    Browse the repository at this point in the history
  5. Add V3_1 migration for Elsa.EntityFrameworkCore.Sqlite

    This commit introduces the V3_1 migration for the Elsa.EntityFrameworkCore.Sqlite module. It includes changes in Alterations, Runtime, Management, and Identity contexts. These changes involve table alterations, addition of new columns, and creation of new tables. Each context alteration encapsulates relevant changes for specific functionalities of the module.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    abc44f6 View commit details
    Browse the repository at this point in the history
  6. Add IsSystem property to workflow classes

    The `IsSystem` property has been added to several sections of the codebase related to workflows, such as `WorkflowStateMapper.cs`, `ListWorkflowDefinitionsRequest.cs`, `WorkflowDefinitionStore.cs`, and `ListWorkflowInstancesRequest.cs`. This property flag allows us to include or filter system workflows in our queries and results.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    e8f6b66 View commit details
    Browse the repository at this point in the history
  7. Add 'UsedImplicitly' attribute to Alteration Handlers and Types

    The 'UsedImplicitly' attribute from JetBrains.Annotations has been added to all Alteration Handlers and Alteration Types in the Elsa.Alterations module. This change specifies that these classes are being used implicitly and helps tools like ReSharper prevent false unused code detection.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    58b613a View commit details
    Browse the repository at this point in the history
  8. Update migration script for efcore-3.1

    The migration script efcore-3.1.sh has been updated. Module "Alterations" and provider "Sqlite" are added back into the lists while unused elements are removed for cleanup. The script now covers all necessary modules and providers, improving its overall effectiveness.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    de4360b View commit details
    Browse the repository at this point in the history
  9. Remove PrintMessage class from Elsa.Server.Web bundle

    This commit deletes the PrintMessage.cs file that was previously part of the Elsa.Server.Web bundle.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    4974c62 View commit details
    Browse the repository at this point in the history
  10. Refactor MassTransit service configuration

    This commit reduces line code length by merging splitted long lines into one, improves maintainability of code. It also updates the Service configuration and removes unused namespaces across files, which help to simplify the codebase. Changes have also been made to switch the MassTransit broker from RabbitMq to memory and adjust the endpoint name formatter configuration.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    db12cde View commit details
    Browse the repository at this point in the history
  11. Remove extra whitespace in Program.cs

    Removed a trailing whitespace on the line declaring the useSqlServer constant in the Program.cs file. No functionality changes were made, simply a minor formatting correction to maintain clean and consistent code.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    03054d3 View commit details
    Browse the repository at this point in the history
  12. Remove AlterationJsonConverter and update other files

    The AlterationJsonConverter class has been removed, simplifying the serialization process. The AlterationSerializer.cs file was updated with additional attribute tags, giving more information about serialization expectations. Lastly, the AlterationSerializationOptionConfigurator.cs was simplified by removing unnecessary overrides and the Elsa.Alterations.Core.csproj file was tidied up by removing unused services folder reference.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    aab2af9 View commit details
    Browse the repository at this point in the history
  13. Refactor code for improved readability and maintainability

    The diff shows changes across multiple files in multiple modules. Primarily, these changes revolve around formatting edits such as removing unnecessary spaces or line breaks and adjusting alignments. A significant change was also made to the MySQL server version in the `DbContextOptionsBuilder.cs` file. These adjustments help improve the readability and maintainability of the code, making it easier to understand and modify in future iterations.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    e18ec06 View commit details
    Browse the repository at this point in the history
  14. Remove unnecessary notification files and refactor code

    Several files pertaining to workflow serialization notifications were deemed unnecessary and removed. The Endpoint class in the `Elsa.Workflows.Api` module has been refactored for efficient usage of the `IWorkflowDefinitionStore` store, and similarly the `HttpFeature.cs` and `DesignTimeDbContextFactoryBase.cs` files have been slightly refactored for better readability and optimization.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    757d62d View commit details
    Browse the repository at this point in the history
  15. Refactor HttpFeature class on variable types order

    The variable types order within the HttpFeature class in the Elsa Http module has been reorganized for cleaner code. No functional changes have been made - only the order of the types has been rearranged. This refactoring contributes to better readability and code maintenance.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    a026023 View commit details
    Browse the repository at this point in the history
  16. Add 'issue/*' branch to GitHub workflow triggers

    This update includes 'issue/*' branches in the trigger configuration of GitHub workflows. Now, these branches will trigger specified GitHub actions, facilitating more effective issue tracking and resolution.
    sfmskywalker committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    959511c View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Configuration menu
    Copy the full SHA
    f3f046a View commit details
    Browse the repository at this point in the history
  2. Change version option in WorkflowDefinitionManager

    The version option in the WorkflowDefinitionManager has been updated. Previously it was set to "LatestAndPublished", but this has been changed to "LatestOrPublished", adjusting the way the manager handles workflow versions.
    sfmskywalker committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    342c6f2 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Configuration menu
    Copy the full SHA
    79e9c1a View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. Merged from main

    MariusVuscanNx committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    43a5f59 View commit details
    Browse the repository at this point in the history
  2. Update GitHub Actions to remove duplicate branch pattern

    Removed the duplicated 'issue/*' entry from the branch trigger list in packages.yml to prevent redundancy in GitHub Actions workflow triggers. This ensures workflows are triggered correctly and efficiently for branch patterns intended for CI processes.
    sfmskywalker committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    2531554 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a89cc79 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    50a5d4f View commit details
    Browse the repository at this point in the history
  5. Refactor job generation in GenerateAlterationJobs

    Refactored the GenerateAlterationJobs activity to enhance code readability and maintainability. Broke down the ExecuteAsync method into smaller, purpose-specific private methods and added the missing `Elsa.Alterations.Core.Models` namespace.
    sfmskywalker committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    8d5d997 View commit details
    Browse the repository at this point in the history
  6. Refactor consumer concatenation logic in MassTransitFeature

    Removed the commented-out code that filtered temporary queues, simplifying the concatenation of consumer types with workflow message consumers.
    sfmskywalker committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    316eae6 View commit details
    Browse the repository at this point in the history
  7. Refactor whitespace and improve readability

    Removed extraneous whitespaces and reformatted the `IsEmpty` property for better code readability. This enhances the code structure without affecting functionality.
    sfmskywalker committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    0a11a36 View commit details
    Browse the repository at this point in the history
  8. Refactor MassTransitFeature configuration

    Moved transport configuration logic into the dedicated `ConfigureInMemoryTransport` method and removed unused usings to simplify the `MassTransitFeature` class setup. This streamlines setting up MassTransit in-memory transport and improves code maintainability.
    sfmskywalker committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    0aa3c57 View commit details
    Browse the repository at this point in the history