I tried to use IFTTT to try and query for specific hashtag-marked edits, however the trigger always fails due to an issue it has with the hashtag tool.
Description
Details
Reference | Source Branch | Dest Branch | Author | Title | |
---|---|---|---|---|---|
toolforge-repos/ifttt!11 | work/bd808/T250363-hashtags | main | bd808 | hashtags: Restore new_hashtag trigger |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | BUG REPORT | bd808 | T250363 IFTTT "New edit with hashtag" trigger fails with "The wikipedia service or its api may temporarily be down." | ||
Resolved | bd808 | T294448 <Break-Fix> IFTTT integration: fix or sunset? |
Event Timeline
It does not give much information on the failure, other than "The Wikipedia service or its API may temporarily be down."
Here's the applet I used. I don't believe the applet I created is public, but here's the link anyway. https://ifttt.com/applets/112175283d-if-wp-defcon-goes-to-defcon-1-then-email-me
Here's the contents of the applet, if you want to reproduce it.
I don't actually know anything about this feature, it seems like @Slaporte was involved in integrating with IFTTT when the first version of the Hashtags tool was made available. I assume IFTTT is still pointing at the old tool's URL (toolforge) and wasn't updated to the new URL.
The IFTTT feature was implemented as direct interaction with the hashtags database on ToolsDB. Now that the live database has moved away from ToolsDB one of two things would be needed to fix this:
- Expose the new hashtags database to Toolforge tools and give the ifttt tool credentials for querying
- Add API endpoint(s) to https://hashtags.wmcloud.org/ that can be used to replace the prior database queries.
Add API endpoint(s) to https://hashtags.wmcloud.org/ that can be used to replace the prior database queries.
API is available:
'https://hashtags.wmflabs.org/json/?query=%s&project=%s&startdate=%s' % (HASHTAG, WIKI, self.startdate)
https://github.com/WikipediaLibrary/hashtags/blob/27582363c37035369d50d21acbaa7656332ab074/hashtagsv2/hashtags/helpers.py#L20
bd808 opened https://gitlab.wikimedia.org/toolforge-repos/ifttt/-/merge_requests/11
hashtags: Restore new_hashtag trigger
bd808 merged https://gitlab.wikimedia.org/toolforge-repos/ifttt/-/merge_requests/11
hashtags: Restore new_hashtag trigger