apollo-studio-community icon indicating copy to clipboard operation
apollo-studio-community copied to clipboard

Feature Suggestion: Allow Discord Webhooks

Open undermark5 opened this issue 4 years ago • 5 comments
trafficstars

Discord is capable of handling/executing slack webhooks (see this)

However, currently the Slack integration limits you to webhook URLs that match the regex embedded in the JS of Apollo Studio. This limitation is only a client side limitation as if you modify the request before it is sent to use the discord webhook url instead the test message comes through successfully. I have yet to verify the other messages that come through, but at least the test message works. The details on the discord developer page should shed more light on what is possible through executing slack webhooks on discord. Even if there are limitations, discord provides native webhooks as well which could also be added as an option separate from the slack integration.

undermark5 avatar Nov 20 '20 19:11 undermark5

Hi! We are actively working on a project to support webhooks in general actually. We'll circle back to you and this issue when we have something that's available to try :)

daniman avatar Nov 29 '20 19:11 daniman

Sweet.

Also, I have been able to confirm that the daily reports fail to come through with my discord slack webhook, but the scheme changes come through successfully. However, given that you are working on a more general webhook functionality, this information is probably not incredibly relevant.

Definitely keep me posted.

undermark5 avatar Nov 29 '20 19:11 undermark5

Hi @undermark5 thank you for the feedback. We have now released a generic webhook notification feature specifically for Schema Change events, but it is currently limited to Enterprise Studio customers. I don't know that this will solve your problem so I'll keep this issue open for now, but I did want to let you know that we've made some progress on this front since you asked.

jstjoe avatar Jan 28 '21 16:01 jstjoe

Thanks for the update, but because it is for schema changes specifically and also only for Enterprise customers, it isn't very helpful to me, however, I was able to get it working with a modified version of the script found here

I believe there was something with the color codes missing #.

Let me know if you want me to get my modified version uploaded somewhere if it would be helpful to see what else causes the daily reports to fail while the schema changes succeed if the native slack hooks support is used in discord.

Though, rather than trying to support various webhook formats (though I don't know how standardized/intercompatible they are) it might be nice to just allow the user to build their own reports (think template files) so they can conform to any messaging standard without requiring the Apollo team to support them.

undermark5 avatar Jan 28 '21 17:01 undermark5

Just following up with this again, l'm still waiting for support for Discord webhooks, and as stated above, I was able to make use of a selfhosted relay script and a manual request to set a custom webhook url. However, the manual request method is no longer a viable option as it appears server side checks have now been implemented. Honestly, I recognize that as a free user the level of support is limited, however, as a software engineer myself, I can't think that it would really take that much effort to provide a alpha/beta level of support for Discord webhooks, especially given the fact that my workaround given above has been giving me reliable daily reports for well over a year at this point, though it should be noted, that the addition of server side validations for the url completely eliminates my workaround, which if that was still available, I wouldn't be here again and be happy with my janky hack workaround.

undermark5 avatar Apr 14 '22 04:04 undermark5