Page MenuHomePhabricator

[Vue warn]: Invalid prop: type check failed for prop "copyvio"
Closed, ResolvedPublic

Description

Steps to reproduce

  • configure pagetriage to display copyright status by installing ORES and setting $wgPageTriageEnableOresFilters to true. follow this procedure
  • visit http://localhost:8080/wiki/Special:ApiSandbox, and use the pagetriagetagcopyvio API to tag the newest revision of an unreviewed page as a copyright violation
  • install Vue.js devtools browser extension
  • visit visit http://localhost:8080/wiki/Special:NewPagesFeed
  • open DevTools
  • change the Special:NewPagesFeed filter settings a couple times, making sure that the page that was marked as a copyright violation is included in the feed

What happens?

[Vue warn]: Invalid prop: type check failed for prop "copyvio". Expected Number with value 118, got String with value "118". 
  at <ListItem afdStatus=false blpProdStatus=false csdStatus=false  ... > 
  at <ListContent tb-version=null >

image.png (1×1 px, 124 KB)

What should happen instead?

No console warnings

Event Timeline

Change 1011156 had a related patch set uploaded (by Sushrith Bogi; author: Sushrith Bogi):

[mediawiki/extensions/PageTriage@master] Fix copyvio prop type validation error

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

Change #1011156 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Fix copyvio prop type validation error

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