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.
This pull request introduces several key changes to the backend of the PoeticMetric application, focusing on adding email service functionality, particularly for password recovery, and updating dependencies and configurations.
Email Service and Password Recovery:
EmailService
interface and relevant types for sending emails, includingEmailServiceSendParams
andEmailServiceTemplatePasswordRecoveryParams
. (backend/pkg/poeticmetric/email_service.go
)backend/pkg/service/authentication/main.go
)backend/pkg/restapi/handler/authentication/main.go
)Configuration and Dependency Updates:
.golangci.yaml
to re-enable previously removed linters and add new ones. (backend/.golangci.yaml
)go.mod
to add and remove various dependencies. (backend/go.mod
) [1] [2] [3] [4] [5]Documentation Updates:
backend/pkg/restapi/docs/docs.go
,backend/pkg/restapi/docs/swagger.json
,backend/pkg/restapi/docs/swagger.yaml
) [1] [2] [3]Miscellaneous:
pointer.go
tohelpers.go
and added aStringSlice
function. (backend/pkg/poeticmetric/helpers.go
)EnvService
for email functionality. (backend/pkg/poeticmetric/env_service.go
) [1] [2]These changes collectively enhance the application's ability to handle password recovery through email, improve code maintainability, and ensure up-to-date dependencies and configurations.