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

🎉 share newly created DIs in Slack #4571

Open
wants to merge 1 commit into
base: create-di-topic-tags
Choose a base branch
from

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Feb 18, 2025

Send a message to the #data-insights-pitches channel in Slack on DI creation.

The Slack message includes the title, an optional note and the image (see screenshot).

The idea of having a #data-insights-pitches channel is that there is a very early editorial review that decides whether it makes sense to flesh out a data insight.

For testing, set SLACK_DI_PITCHES_CHANNEL_ID to the ID of the #data-insights-pitches channel (I just added you to the channel). The secret key for SLACK_BOT_OAUTH_TOKEN is in 1password.

The env var isn't set on staging yet, so it's currently only testable locally. I'll figure this out tomorrow, but I wanted to open up for review anyway.

Screenshot

Screenshot 2025-02-18 at 16 53 37


This is part 9 of 9 in a stack made with GitButler:

@owidbot
Copy link
Contributor

owidbot commented Feb 18, 2025

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-share-di-in-slack

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2025-02-18 11:48:32 UTC
Execution time: 1.18 seconds

@sophiamersmann sophiamersmann marked this pull request as ready for review February 18, 2025 18:14
@sophiamersmann sophiamersmann changed the title 🎉 (admin) share newly created DIs in Slack 🎉 share newly created DIs in Slack Feb 19, 2025
Copy link
Member

@ikesau ikesau left a comment

Choose a reason for hiding this comment

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

sehr gut


const response = await fetch(url, fetchData)

if (!response.ok) {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think there's anything we can do to catch this, but the request was 200'ing for me, but not posting to slack when I put zalgo text in it.

I don't think that'll be something we have to worry about from our authors though 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staging-viz Let SVG tester fail silently in CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants