-
Notifications
You must be signed in to change notification settings - Fork 469
Add duplicates check in Sync Triggers #11371
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
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.
Pull Request Overview
This PR adds duplicate function metadata detection and handling to the Sync Triggers functionality, ensuring only the first occurrence of duplicate function names is processed.
Key changes:
- Implements deduplication logic in the sync triggers payload generation
- Adds comprehensive test coverage for the duplicate handling behavior
- Removes unused import from FunctionMetadataExtensions
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
src/WebJobs.Script.WebHost/Management/FunctionsSyncManager.cs |
Adds GroupBy logic to deduplicate function metadata by name, keeping first occurrence |
test/WebJobs.Script.Tests.Integration/Management/FunctionsSyncManagerTests.cs |
Adds test case to verify deduplication behavior with comprehensive setup and assertions |
src/WebJobs.Script.WebHost/Extensions/FunctionMetadataExtensions.cs |
Removes unused Microsoft.Azure.WebJobs.Logging import |
test/WebJobs.Script.Tests.Integration/Management/FunctionsSyncManagerTests.cs
Outdated
Show resolved
Hide resolved
test/WebJobs.Script.Tests.Integration/Management/FunctionsSyncManagerTests.cs
Outdated
Show resolved
Hide resolved
test/WebJobs.Script.Tests.Integration/Management/FunctionsSyncManagerTests.cs
Outdated
Show resolved
Hide resolved
test/WebJobs.Script.Tests.Integration/Management/FunctionsSyncManagerTests.cs
Outdated
Show resolved
Hide resolved
@microsoft-github-policy-service rerun |
2 similar comments
@microsoft-github-policy-service rerun |
@microsoft-github-policy-service rerun |
@microsoft-github-policy-service rerun |
Issue describing the changes in this PR
resolves #11284
Pull request checklist
IMPORTANT: Currently, changes must be backported to the
in-proc
branch to be included in Core Tools and non-Flex deployments.in-proc
branch is not requiredrelease_notes.md