Page MenuHomePhabricator

Have a clear message when worksets cannot be found for the User
Closed, ResolvedPublic

Description

I've tried to participate to the WIkilabels campaign on fr.wp, and I just get a message "Impossible to loas the form « damaging_and_goodfaith » : $2". I think it is related to the end of the campaign. A closing message would be much better. :)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Halfak triaged this task as High priority.May 11 2017, 2:33 PM
Halfak moved this task from Unsorted to Maintenance/cleanup on the Machine-Learning-Team board.

If I can suggest it here, I would advice to have something like "you have completed the campaign, the ORES team is going to review and deploy the predictions soon on your wiki". The community should have to create a Phabricator task to go to the next step.

Zppix subscribed.

I'll work on this, ASAP

Talking to @Zppix in chat, I came up with the following query to quickly check for campaign completion:

SELECT 1 FROM task 
INNER JOIN campaign ON campaign_id = campaign.id 
LEFT JOIN label ON task_id = task.id 
WHERE campaign.id = <campaign ID number> 
GROUP BY task.id 
HAVING COUNT(label.data) < MAX(campaign.labels_per_task) 
LIMIT 1

If it returns a row, then the campaign is not complete. If it can't return a row, the campaign is complete.

I have changed the message you referenced in, https://github.com/wiki-ai/wikilabels/pull/180. I am unable however to do the second part of creating a second message for if the campaign is actually over (im not experienced or comfortable enough to do that in Wikilabels.)

Zppix renamed this task from Have a clear message when a campaign is over to Have a clear message when worksets cannot be found for the User.Jun 3 2017, 6:35 PM

Completed and merged to master, awaiting deployment to our wkikilabels instance, keeping task open until then.

Paladox subscribed.

@Zppix asked me on irc to move it to done.

This comment was removed by Zppix.