Page MenuHomePhabricator

(MS 5) shorten URL for visual query sharing
Closed, ResolvedPublic5 Estimated Story Points

Description

As an editor I want to share only short URLs to my visual queries in order to make them easier to share without them being cut off.

Problem:
URLs to visual queries are rather long and sometimes hard to share with others because of that. We want to shorten them using the Wikimedia URL shortener.

BDD
GIVEN a visual query
WHEN requesting a share link for the visual query
THEN a shortened URL is displayed and copied rather than the full URL

Acceptance criteria:

  • the Query Builder provides shortened URLs to share visual queries
  • It uses Wikimedia's URL shortener (tinyURL and others might be possible in the future for other installations but not now)
  • when no URL shortening service is available we continue with the full URL as fallback

Event Timeline

Michael renamed this task from (MS 5) shorten URL for visual query sharing to (MS 5) 🛑 shorten URL for visual query sharing.Feb 24 2021, 1:03 PM
Michael renamed this task from (MS 5) 🛑 shorten URL for visual query sharing to (MS 5) shorten URL for visual query sharing.Mar 3 2021, 9:47 AM

Change 673391 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[operations/mediawiki-config@master] Add Wikidata's query builder in toolforge to beta's url shortener

https://gerrit.wikimedia.org/r/673391

Change 673391 merged by jenkins-bot:
[operations/mediawiki-config@master] Add Wikidata's query builder in toolforge to beta's url shortener

https://gerrit.wikimedia.org/r/673391

Change 675532 had a related patch set uploaded (by Bereket teshome; author: Bereket teshome):
[wikidata/query-builder@master] shorten URL for visual query sharing

https://gerrit.wikimedia.org/r/675532

Change 675532 merged by jenkins-bot:
[wikidata/query-builder@master] shorten URL for visual query sharing

https://gerrit.wikimedia.org/r/675532

@bete Is it deployed? I still get full url link when I click on ' Get a sharable link '. Where do I test this?

@amy_rc sorry for the late reply.
it was deployed on toolforge but i found there was a problem with it.

I just fixed the problem and is now deployed (like 10 mins ago).
I don't know how often new merges are deployed. but i'd say you can test it again tomorrow on toolforge.

https://query-builder-test.toolforge.org/

amy_rc moved this task from Test (Verification) to Done on the Wikidata Query Builder board.

tested and now it works. ✨