Reduce ModelFactory.ConvertFrom parameter count from 9 to 8#1722
Merged
StuartFerguson merged 4 commits intomasterfrom Apr 8, 2026
Merged
Reduce ModelFactory.ConvertFrom parameter count from 9 to 8#1722StuartFerguson merged 4 commits intomasterfrom
StuartFerguson merged 4 commits intomasterfrom
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
TIP This summary will be updated as you push new changes. Give us feedback
…ng schedule params into a tuple Agent-Logs-Url: https://github.com/TransactionProcessing/TransactionProcessor/sessions/3ab2a504-a6c4-4d3b-913a-50e87ae85d23 Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
Agent-Logs-Url: https://github.com/TransactionProcessing/TransactionProcessor/sessions/3ab2a504-a6c4-4d3b-913a-50e87ae85d23 Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix ModelFactory::ConvertFrom method to reduce parameters
Reduce ModelFactory.ConvertFrom parameter count from 9 to 8
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ModelFactory.ConvertFrom(Guid, MerchantEntity, ...)inTransactionProcessor.Repositoryhad 9 parameters, violating the Codacy complexity rule (limit: 8).Changes
ModelFactory.cs— Collapsed the two related schedule parameters into a single named tuple, bringing the count to 8:ITransactionProcessorReadModelRepository.cs(line ~357) — Call site that passed 7nullarguments switched to the existing 2-parameter overload.ITransactionProcessorReadModelRepository.cs(line ~890) — Call site updated to pass the named tuple:(Schedules: s, Months: merchantScheduleMonths).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
f.feedz.io/usr/bin/dotnet dotnet build TransactionProcessor.Repository/TransactionProcessor.Repository.csproj --no-restore -nologo(dns block)/usr/bin/dotnet dotnet test TransactionProcessor.Tests/TransactionProcessor.Tests.csproj --no-restore -nologo(dns block)/usr/bin/dotnet dotnet test TransactionProcessor.Tests/TransactionProcessor.Tests.csproj --no-restore -nologo -v normal(dns block)If you need me to access, download, or install something from one of these locations, you can either: