Skip to content

Add IdFieldName parameter to MongoDB sink extensions for custom _id mapping #409

Add IdFieldName parameter to MongoDB sink extensions for custom _id mapping

Add IdFieldName parameter to MongoDB sink extensions for custom _id mapping #409

Triggered via pull request November 4, 2025 20:33
Status Success
Total duration 1m 21s
Artifacts –
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

dotnet-build-test.yml

on: pull_request
Build and test .NET projects
1m 9s
Build and test .NET projects
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Build and test .NET projects: Interfaces/Cosmos.DataTransfer.Common.UnitTests/TestHelpers.cs#L9
Argument of type 'Dictionary<string, string>' cannot be used for parameter 'initialData' of type 'IEnumerable<KeyValuePair<string, string?>>' in 'IConfigurationBuilder MemoryConfigurationBuilderExtensions.AddInMemoryCollection(IConfigurationBuilder configurationBuilder, IEnumerable<KeyValuePair<string, string?>>? initialData)' due to differences in the nullability of reference types.
Build and test .NET projects: Core/Cosmos.DataTransfer.Core.UnitTests/RunCommandTests.cs#L145
Argument of type 'Dictionary<string, string>' cannot be used for parameter 'initialData' of type 'IEnumerable<KeyValuePair<string, string?>>' in 'IConfigurationBuilder MemoryConfigurationBuilderExtensions.AddInMemoryCollection(IConfigurationBuilder configurationBuilder, IEnumerable<KeyValuePair<string, string?>>? initialData)' due to differences in the nullability of reference types.
Build and test .NET projects: Core/Cosmos.DataTransfer.Core.UnitTests/RunCommandTests.cs#L104
Argument of type 'Dictionary<string, string>' cannot be used for parameter 'initialData' of type 'IEnumerable<KeyValuePair<string, string?>>' in 'IConfigurationBuilder MemoryConfigurationBuilderExtensions.AddInMemoryCollection(IConfigurationBuilder configurationBuilder, IEnumerable<KeyValuePair<string, string?>>? initialData)' due to differences in the nullability of reference types.
Build and test .NET projects: Core/Cosmos.DataTransfer.Core.UnitTests/RunCommandTests.cs#L61
Argument of type 'Dictionary<string, string>' cannot be used for parameter 'initialData' of type 'IEnumerable<KeyValuePair<string, string?>>' in 'IConfigurationBuilder MemoryConfigurationBuilderExtensions.AddInMemoryCollection(IConfigurationBuilder configurationBuilder, IEnumerable<KeyValuePair<string, string?>>? initialData)' due to differences in the nullability of reference types.
Build and test .NET projects: Core/Cosmos.DataTransfer.Core.UnitTests/RunCommandTests.cs#L25
Argument of type 'Dictionary<string, string>' cannot be used for parameter 'initialData' of type 'IEnumerable<KeyValuePair<string, string?>>' in 'IConfigurationBuilder MemoryConfigurationBuilderExtensions.AddInMemoryCollection(IConfigurationBuilder configurationBuilder, IEnumerable<KeyValuePair<string, string?>>? initialData)' due to differences in the nullability of reference types.
Build and test .NET projects: Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/MongoVectorDataSinkExtension.cs#L58
Argument of type 'ExpandoObject' cannot be used for parameter 'dictionary' of type 'IDictionary<string?, object?>' in 'bool CollectionExtensions.TryAdd<string?, object?>(IDictionary<string?, object?> dictionary, string? key, object? value)' due to differences in the nullability of reference types.
Build and test .NET projects: Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/MongoVectorDataSinkExtension.cs#L47
Possible null reference argument for parameter 'fieldName' in 'object? IDataItem.GetValue(string fieldName)'.
Build and test .NET projects: Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/CosmosDictionaryDataItem.cs#L40
Possible null reference argument for parameter 'source' in 'IEnumerable<object?> Enumerable.Select<object?, object?>(IEnumerable<object?> source, Func<object?, object?> selector)'.
Build and test .NET projects: Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/CosmosDictionaryDataItem.cs#L35
Possible null reference argument for parameter 'source' in 'Dictionary<string, object?> Enumerable.ToDictionary<KeyValuePair<string, object?>, string, object?>(IEnumerable<KeyValuePair<string, object?>> source, Func<KeyValuePair<string, object?>, string> keySelector, Func<KeyValuePair<string, object?>, object?> elementSelector)'.