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

[1/2][backend] Eng 2196 m2 allow user to configure notifications #935

Conversation

likawind
Copy link
Contributor

@likawind likawind commented Jan 31, 2023

Describe your changes and why you are making these changes

This PR adds backend supports to allow API routes to create and edit workflow with NotificationSettings field. The simple part is to add this field to a few route handlers and propengate the change through.

The hard part is changing the current top-level NotificationSettings field type from map to struct. This is causing problem when calling Update with a map object, where the SQL driver complains about map type not supported, which leads to this: snowflakedb/gosnowflake#217 .

Related issue number (if any)

ENG-2196

Loom demo (if any)

https://www.loom.com/share/b7929818b83743d881db8d712675fdc3

Checklist before requesting a review

  • I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
  • I have performed a self-review of my code.
  • I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
  • If this is a new feature, I have added unit tests and integration tests.
  • I have run the integration tests locally and they are passing.
  • I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
  • All features on the UI continue to work correctly.
  • Added one of the following CI labels:
    • run_integration_test: Runs integration tests
    • skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

…ng-2196-m2-allow-user-to-configure-notifications-be
…ng-2196-m2-allow-user-to-configure-notifications-be
…ng-2196-m2-allow-user-to-configure-notifications-be
@likawind likawind changed the title Eng 2196 m2 allow user to configure notifications be [1/2][backend] Eng 2196 m2 allow user to configure notifications Feb 1, 2023
Copy link
Contributor

@kenxu95 kenxu95 left a comment

Choose a reason for hiding this comment

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

lgtm!

…ns (#936)

* Implement actual code to send email notifications (#943)

* Implement actual code to send slack notifications (#944)
@likawind likawind merged commit 267dee9 into eng-2195-m2-implement-application-logic-to-send Feb 4, 2023
likawind added a commit that referenced this pull request Feb 6, 2023
* [2/2][UI] Eng 2193 Allow connecting to email as integration (#897)

* [1/2][Backend] Eng 2191 add slack integration to backend (#911)

* [2/2][UI] Eng 2191 Allow user to connect to slack integration (#910)

* Eng 2194 m2 implement go interface for (#923)

* [1/2][backend] Eng 2196 m2 allow user to configure notifications (#935)

* [2/2][UI] Eng 2196 m2 allow user to configure wf specific notifications (#936)

* Implement actual code to send email notifications (#943)

* Implement actual code to send slack notifications (#944)
@likawind likawind deleted the eng-2196-m2-allow-user-to-configure-notifications-be branch February 6, 2023 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run_integration_test Triggers integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants