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

Notifications Rewrite: Service Stub #4712

Merged
merged 3 commits into from
Feb 9, 2021
Merged

Conversation

danielsdeleo
Copy link
Contributor

@danielsdeleo danielsdeleo commented Feb 8, 2021

🔩 Description: What code changed, and why?

We are rewriting the notifications service in go to align better with our engineering capabilities.

This change creates a notifications-service2 component in the source tree. It can be compiled and packaged manually, but is hidden from pipeline builds using the dev_only option in the habitat plan.sh (the automate-ui-devproxy uses the same mechanism).

The notifications-service2 is missing most of the functionality that it will eventually have/need. Currently it only implements configuration file loading. When run as a service it prints its config to the logs in a loop. This is a first step towards implementing the infrastructural components of the new notifications service.

👟 How to Build and Test the Change

In a fresh habitat studio, start_all_services. Then run build components/notifications-service2/ && sl. The service should build without error and then get picked up by the deployment service. In the log output you will see the running configuration for the service.

The unit tests for the config package can be run by cd /src/components/notifications-service2 and go test -v pkg/config/*go

@netlify
Copy link

netlify bot commented Feb 8, 2021

Deploy preview for chef-automate processing.

Building with commit 0a7b8be

https://app.netlify.com/sites/chef-automate/deploys/6021c003e6194d0008539c53

@@ -0,0 +1,65 @@
-- ONE DOT ZERO MIGRATIONS:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to handle migrating the database to a consistent state in a future PR. For now having this file here makes the schema migration handling logic in the plan.sh happy.

Signed-off-by: Daniel DeLeo <[email protected]>
@danielsdeleo danielsdeleo force-pushed the dan/new-notifications-svc branch from b8dddc6 to 0a7b8be Compare February 8, 2021 22:49
Copy link
Contributor

@rickmarry rickmarry left a comment

Choose a reason for hiding this comment

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

looks good.. thanks @danielsdeleo!

@danielsdeleo danielsdeleo merged commit 1371ace into master Feb 9, 2021
@danielsdeleo danielsdeleo deleted the dan/new-notifications-svc branch February 9, 2021 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants