Skip to content

Conversation

@adrianhall
Copy link
Collaborator

Closes #245

@adrianhall adrianhall added this to the 9.0.0 milestone Feb 6, 2025
@adrianhall adrianhall requested a review from Copilot February 6, 2025 00:35
@adrianhall adrianhall self-assigned this Feb 6, 2025
@adrianhall adrianhall merged commit 4dc3bb8 into CommunityToolkit:main Feb 6, 2025
3 checks passed
@adrianhall adrianhall deleted the issues/245 branch February 6, 2025 00:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 19 changed files in this pull request and generated 2 comments.

Files not reviewed (14)
  • Datasync.Toolkit.sln: Language not supported
  • Directory.Packages.props: Language not supported
  • infra/modules/cosmos-mongodb.bicep: Language not supported
  • infra/resources.bicep: Language not supported
  • src/CommunityToolkit.Datasync.Server.MongoDB/CommunityToolkit.Datasync.Server.MongoDB.csproj: Language not supported
  • tests/CommunityToolkit.Datasync.Server.MongoDB.Test/CommunityToolkit.Datasync.Server.MongoDB.Test.csproj: Language not supported
  • tests/CommunityToolkit.Datasync.TestCommon/CommunityToolkit.Datasync.TestCommon.csproj: Language not supported
  • src/CommunityToolkit.Datasync.Server.MongoDB/MongoDBRepository.cs: Evaluated as low risk
  • tests/CommunityToolkit.Datasync.Server.Test/Helpers/LiveControllerTests.cs: Evaluated as low risk
  • tests/CommunityToolkit.Datasync.Server.Test/Helpers/LiveTestsCollection.cs: Evaluated as low risk
  • tests/CommunityToolkit.Datasync.TestCommon/RepositoryTests.cs: Evaluated as low risk
  • tests/CommunityToolkit.Datasync.Server.MongoDB.Test/MongoDBRepository_Tests.cs: Evaluated as low risk
  • tests/CommunityToolkit.Datasync.Server.MongoDB.Test/CosmosMongoRepository_Tests.cs: Evaluated as low risk
  • tests/CommunityToolkit.Datasync.Server.Test/Live/CosmosMongo_Controller_Tests.cs: Evaluated as low risk

Comment on lines +26 to +27
public byte[] Version { get; set; } = [];

Copy link

Copilot AI Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'Version' property should be initialized with 'new byte[0]' to ensure it is an empty array.

Suggested change
public byte[] Version { get; set; } = [];
public byte[] Version { get; set; } = new byte[0];

Copilot uses AI. Check for mistakes.
Comment on lines +20 to +21
private List<MongoDBMovie> movies = [];

Copy link

Copilot AI Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'movies' list should be initialized with 'new List()' instead of '[]'.

Suggested change
private List<MongoDBMovie> movies = [];
private List<MongoDBMovie> movies = new List<MongoDBMovie>();

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a CommunityToolkit.Datasync.Server.MongoDb library

1 participant