Skip to content
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

Pivotal ID # 183688670: Structure Backend Notifications #693

Merged

Conversation

jhoanmanuelms
Copy link
Contributor

https://www.pivotaltracker.com/story/show/183688670

  • Submit notifications independently for PMC / scheduler notifications
  • Remove "failed log" queues
  • Remove unused code

- Submit notifications independently for PMC / scheduler notifications
- Remove "failed log" queues
- Remove unused code
@jhoanmanuelms jhoanmanuelms self-assigned this Mar 2, 2023
@jhoanmanuelms jhoanmanuelms requested a review from Juan-EBI March 2, 2023 18:46
Copy link
Contributor

@Juan-EBI Juan-EBI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good please consider minotr comments

@@ -22,3 +24,8 @@ class DailyScheduling {
var releaser: Boolean = true
var exporter: Boolean = true
}

class SlackConfiguration {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spring boot now support data class for configuration classes. So we can avoid the use latenit and use dataclass constructor binding. Check ApplicationProperties

@@ -6,7 +6,7 @@ import org.springframework.http.MediaType.APPLICATION_JSON
import org.springframework.web.client.RestTemplate
import org.springframework.web.client.postForEntity

class NotificationsSender(
open class NotificationsSender(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think rather than introduce extra classes and inhirantece we can use Spring @Qualifer to tag each bean diferently.

- Use Qualifier instead of inheritance
- Use ConstructorBinding for the application properties
@jhoanmanuelms jhoanmanuelms merged commit f82fbcd into master May 3, 2023
@jhoanmanuelms jhoanmanuelms deleted the chore/pivotal-#183688670-structure-notifications branch May 3, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants