-
Notifications
You must be signed in to change notification settings - Fork 34
Issues/245 #261
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
Issues/245 #261
Conversation
There was a problem hiding this 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
| public byte[] Version { get; set; } = []; | ||
|
|
Copilot
AI
Feb 6, 2025
There was a problem hiding this comment.
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.
| public byte[] Version { get; set; } = []; | |
| public byte[] Version { get; set; } = new byte[0]; |
| private List<MongoDBMovie> movies = []; | ||
|
|
Copilot
AI
Feb 6, 2025
There was a problem hiding this comment.
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 '[]'.
| private List<MongoDBMovie> movies = []; | |
| private List<MongoDBMovie> movies = new List<MongoDBMovie>(); |
Closes #245