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

feat(monitor-data-status): Add Slack notifications and update README.md #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

changtotheintothemoon
Copy link
Contributor

  • Integrated Slack notifications for success and failure cases
  • Updated README.md to include instructions for running the job
  • Need testing dataset to confirm functionality...

@anngvu Can you test/review the code or suggest some test datasets that maybe appropiate for this feature? Thanks!

- Integrated Slack notifications for success and failure cases
- Updated README.md to include instructions for running the job
- Need testing dataset to confirm functionality...
print(f"Project {project_to_update['name']} had dataStatus changed to 'Under Embargo'")

# Notify Slack of success
slack_report(slack, success=True, job_schedule=job_schedule, job_label=job_label, target="update_data_status")
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be more helpful if the target reported meant number of target projects successfully updated. So a notification message like:
✅ - weekly - monitor-data-status succeeded, 3 projects were updated, instead of target="update_data_status", which is not as informative. On some weeks, it might be 0 projects targeted (because 0 qualified), which is fine.

# print(f"Targets: {targets}")


# # Constants for the views
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the old code instead of keeping it as commented-out section.

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