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

Add annotations for ORES revision scores #43

Closed
wants to merge 1 commit into from

Conversation

he7d3r
Copy link
Contributor

@he7d3r he7d3r commented Jun 9, 2015

The probabilities are obtained from ores server. For details, see:

@he7d3r he7d3r force-pushed the ores branch 2 times, most recently from 1cb7d96 to b8c8760 Compare June 9, 2015 23:55
@he7d3r
Copy link
Contributor Author

he7d3r commented Jul 8, 2015

@Krinkle: just checking if you noticed this proposal.


// Find all revids names inside the feed
revids = [];
$feedContent.filter('.mw-rtrc-item').each(function () {
Copy link
Member

Choose a reason for hiding this comment

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

Using $.map() would simplify this code:

revids = $.map($feedContent.filter('.mw-rtrc-item'), function (node) {
  return $(node).attr('data-diff');
});

map() automatically filters out undefined/null from attr().

@Krinkle Krinkle changed the title Allow highlighting edits with high probability of being reverted Add annotations for ORES revision scores Jul 17, 2015
// Todo: reduce this once ores has better performance
// https://meta.wikimedia.org/wiki/Research_talk:Revision_scoring_as_a_service#ORES_performance_improvements
timeout: 30000,
dataType: 'jsonp',
Copy link
Member

Choose a reason for hiding this comment

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

Using JSONP means cache will still be broken because of the callback parameter. I've filed an issue upstream (https://github.com/wiki-ai/ores/issues/45) to support CORS/JSON instead.

@halfak
Copy link
Member

halfak commented Oct 14, 2015

BTW, ORES now supports CORS from Wikimedia sites.

@he7d3r he7d3r force-pushed the ores branch 3 times, most recently from fa3621d to 129c7c0 Compare October 27, 2015 21:43
@he7d3r
Copy link
Contributor Author

he7d3r commented Oct 27, 2015

Updated to not use 'jsonp'.

@Krinkle
Copy link
Member

Krinkle commented Oct 27, 2015

Thanks!

Krinkle added a commit to wikimedia/labs-tools-intuition that referenced this pull request Oct 27, 2015
@Krinkle Krinkle closed this in ec69e72 Oct 27, 2015
@he7d3r he7d3r deleted the ores branch February 26, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants