-
Notifications
You must be signed in to change notification settings - Fork 9
refactor: vhost and mappings infra impl & more #236
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 refactors the virtual host, mapping, and SSL infrastructure by updating repository interfaces, entities, and DTOs to support new domain requirements. Key changes include:
- Consolidation of query methods in the mapping repository and removal of redundant commands.
- Updates to the VirtualHost, SslPair, and Mapping entities to incorporate new fields such as primary/wildcard flags, creation timestamps, and marketplace information.
- Introduction of new and updated DTOs for virtual host operations, mappings retrieval, and service creation, along with enhancements to pagination handling.
Reviewed Changes
Copilot reviewed 121 out of 123 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/domain/repository/mappingQueryRepo.go | Updated interface methods for mapping queries. |
src/domain/repository/mappingCmdRepo.go | Removed obsolete methods. |
src/domain/entity/virtualHost.go | Added new fields for primary, wildcard, alias hostnames and created time. |
src/domain/entity/sslPair.go and sslPair_test.go | Refactored SslPair signature to use a single main hostname instead of a slice. |
src/domain/entity/mapping.go | Added marketplace fields and timestamps. |
src/domain/dto/* | New and updated DTOs supporting virtual host and mapping operations. |
CHANGELOG.md | Updated to reflect the new features and refactoring changes. |
Files not reviewed (2)
- .vscode/settings.json: Language not supported
- container/nginx/root/nginx.conf: Language not supported
Comments suppressed due to low confidence (1)
src/domain/entity/virtualHost.go:12
- [nitpick] Consider renaming 'AliasesHostnames' to 'aliasHostnames' to improve clarity and consistency with typical naming conventions.
AliasesHostnames []valueObject.Fqdn `json:"aliasesHostnames"`
No description provided.