Page MenuHomePhabricator

API : add param to filter notifications
Open, NormalPublic

Description

In API module "meta=notifications",

  1. There is not (yet) possibility to check only new notifications that the user have not yet seen.

It would be good to provide a new param ("&notshow=" ?) to do so, with possible values : "all" (default value), "read" and "!read".

  1. The provided timestamps ("mw" attribute in timestamp tag and "read" attribute in notification tag) are not in standard mediawiki API timestamp format : "yyyy-mm-ddThh:mm:ssZ" (see for example "list=recentchanges&rcprop=timestamp").

It would be good to fix that too.

Details

Reference
bz53212

Related Objects

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:09 AM
bzimport added a project: Notifications.
bzimport set Reference to bz53212.
bzimport added a subscriber: Unknown Object (MLST).
  1. It would be good to have time params to filter notifications, based on a timestamp, like in "list=logevents" module :

    lestart - The timestamp to start enumerating from leend - The timestamp to end enumerating ledir - In which direction to enumerate newer - List oldest first. older - List newest first (default).

For future reference, please only file one request per report. Thanks! :)

@Andre Klapper :

As the three request are about the same thing (the notifications API module), it seemed good to me to group theses reports and to let the same (group of) developper(s) work on the whole request, as I guess the code modifications to do are in the same area.

But OK, next time I'll do one request per bug.

Prioritization and scheduling of this bug is tracked on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/236

EBernhardson triaged this task as Normal priority.Feb 26 2015, 6:49 PM
EBernhardson added a subscriber: EBernhardson.

sounds like it could be useful

Sitic added a subscriber: Sitic.Jul 7 2015, 1:21 AM
Restricted Application added a project: Collaboration-Team-Triage. · View Herald TranscriptJul 7 2015, 1:21 AM
Restricted Application added a subscriber: Luke081515. · View Herald Transcript
Restricted Application added a project: Growth-Team. · View Herald TranscriptAug 28 2018, 1:07 PM
matej_suchanek updated the task description. (Show Details)
matej_suchanek removed a subscriber: wikibugs-l-list.