-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactoring for az-functions #310
Conversation
Reviewer's Guide by SourceryThis pull request implements a significant refactoring of the Azure Functions codebase, focusing on improving the structure, initialization process, and logging practices. The changes include the introduction of singleton patterns, centralized initialization, standardized logging, and various file relocations to enhance code organization. Sequence DiagramsequenceDiagram
participant App as Function App
participant PTV as PortalTokenValidation
participant CDB as CosmosDbConnection
participant ISB as InfrastructureServicesBuilder
participant Domain as DomainImpl
App->>PTV: initialize()
App->>PTV: getInstance().Start()
App->>CDB: getInstance()
App->>CDB: connect()
App->>ISB: initialize()
App->>ISB: getInstance()
App->>Domain: new DomainImpl()
App->>Domain: startup()
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @mgupta83 - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider reviewing the extensive use of singletons. While appropriate for some global services, overuse can lead to tight coupling. Explore if dependency injection could be a better alternative in some cases.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Review instructions: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary by Sourcery
Refactor several components to use singleton patterns for instance management and update logging to a consistent custom-log format. Adjust import paths to align with the new directory structure and remove unused code from the ApolloServerRequestHandler.
Enhancements:
Chores: