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

Mongodb implementation #4127

Merged
merged 31 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f29eff6
Implemented MongoDb
gurkanguran May 30, 2023
5e10320
Refactor
gurkanguran May 30, 2023
6c811b3
Refactor
gurkanguran May 30, 2023
252a2bb
Use main entity models in mongodb
gurkanguran Jun 1, 2023
2b69729
Fixed object serialization issue
gurkanguran Jun 9, 2023
839acc8
Refactor
gurkanguran Jun 9, 2023
6f15926
Fixed issues caused by duplicate collection names
gurkanguran Jun 9, 2023
0bd2002
Optimized count query
gurkanguran Jun 12, 2023
c2e0dec
Merge branch 'v3' into mongodb
gurkanguran Jun 12, 2023
5568af6
Fixed the issues after merge
gurkanguran Jun 12, 2023
0c69308
Merge branch 'v3' into mongodb
gurkanguran Jun 12, 2023
d1cffa2
Revert "Fixed the issues after merge"
gurkanguran Jun 12, 2023
1b30f42
Use expression helper to solve mongodb query issue
gurkanguran Jun 12, 2023
28b02b5
Merge branch 'v3' into mongodb
gurkanguran Jun 12, 2023
0018e71
Handle null values during deserialization
gurkanguran Jun 12, 2023
9fe1b9f
Moved MongoDb project to persistence folder
gurkanguran Jun 12, 2023
703be36
Merge branch 'v3' into mongodb
gurkanguran Jun 14, 2023
8b88d70
Refactor
gurkanguran Jun 14, 2023
461e887
Did some refactor and added type serializer for variable fix
gurkanguran Jun 15, 2023
0d57717
Modularize mongodb indices creation
gurkanguran Jun 17, 2023
1c67677
Refactor
gurkanguran Jun 17, 2023
14c56d3
Merge branch 'v3' into mongodb
gurkanguran Jun 17, 2023
ceda7e2
Fixed the build
gurkanguran Jun 17, 2023
0b8d919
Refactor
gurkanguran Jun 18, 2023
0949fda
Merge branch 'v3' into mongodb
gurkanguran Jun 18, 2023
6f25915
Merge branch 'v3' into mongodb
gurkanguran Jun 18, 2023
4258026
Merge branch 'v3' into mongodb
sfmskywalker Jun 28, 2023
7f22b71
Remove unused imports
sfmskywalker Jun 28, 2023
2a1b960
Import necessary usings
sfmskywalker Jun 28, 2023
501b8a3
Implement variable serializer
sfmskywalker Jun 28, 2023
94eabd5
Update SQLite migrations
sfmskywalker Jun 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor
  • Loading branch information
gurkanguran committed Jun 18, 2023
commit 0b8d9197f282392fe09e8a5766f9cfe6bf3992b7
2 changes: 1 addition & 1 deletion src/modules/Elsa.MongoDb/Extensions/ModuleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static class ModuleExtensions
public static IModule UseMongoDb(
this IModule module,
string connectionString,
Action<MongoDbOptions> options,
Action<MongoDbOptions>? options = default,
Action<MongoDbFeature>? configure = default)
{
configure += f => f.ConnectionString = connectionString;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Elsa.MongoDb.Modules.Management;

/// <summary>
/// Configures the <see cref="WorkflowDefinitionsFeature"/> feature with an MongoDb persistence provider.
/// Configures the <see cref="WorkflowDefinitionsFeature"/> feature with a MongoDb persistence provider.
/// </summary>
[DependsOn(typeof(WorkflowManagementFeature))]
public class MongoWorkflowDefinitionPersistenceFeature : PersistenceFeatureBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Elsa.MongoDb.Modules.Management;

/// <summary>
/// Configures the <see cref="WorkflowInstancesFeature"/> feature with an MongoDb persistence provider.
/// Configures the <see cref="WorkflowInstancesFeature"/> feature with a MongoDb persistence provider.
/// </summary>
[DependsOn(typeof(WorkflowManagementFeature))]
public class MongoWorkflowInstancePersistenceFeature : PersistenceFeatureBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace Elsa.MongoDb.Modules.Management;

/// <summary>
/// An MongoDb implementation of <see cref="IWorkflowInstanceStore"/>.
/// A MongoDb implementation of <see cref="IWorkflowInstanceStore"/>.
/// </summary>
public class MongoWorkflowInstanceStore : IWorkflowInstanceStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Elsa.MongoDb.Modules.Management;

/// <summary>
/// Configures the <see cref="WorkflowInstancesFeature"/> and <see cref="WorkflowDefinitionsFeature"/> features with an MongoDb persistence provider.
/// Configures the <see cref="WorkflowInstancesFeature"/> and <see cref="WorkflowDefinitionsFeature"/> features with a MongoDb persistence provider.
/// </summary>
[DependsOn(typeof(WorkflowManagementFeature))]
[DependsOn(typeof(WorkflowInstancesFeature))]
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Elsa.MongoDb/Modules/Runtime/BookmarkStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Elsa.MongoDb.Modules.Runtime;

/// <summary>
/// An MongoDb implementation of <see cref="IBookmarkStore"/>.
/// A MongoDb implementation of <see cref="IBookmarkStore"/>.
/// </summary>
public class MongoBookmarkStore : IBookmarkStore
{
Expand Down
3 changes: 2 additions & 1 deletion src/modules/Elsa.MongoDb/Serializers/TypeSerializer.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Elsa.Extensions;
using MongoDB.Bson;
using MongoDB.Bson.Serialization;

Expand Down Expand Up @@ -32,7 +33,7 @@ public void Serialize(BsonSerializationContext context, BsonSerializationArgs ar
}
else
{
context.Writer.WriteString(value.AssemblyQualifiedName);
context.Writer.WriteString(value.GetSimpleAssemblyQualifiedName());
}
}

Expand Down