Opened on 07/28/2017 at 03:25:59 PM

Closed on 09/22/2017 at 01:32:53 PM

#5456 closed change (fixed)

Add support to specify urlFilters in the notification repository

Reported by: wspee Assignee: wspee
Priority: Unknown Milestone:
Module: Sitescripts Keywords:
Cc: kvas Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29500676/

Description

Background

In #4827/#4762 we added support for relentless notifications. They are supposed to be used for specific website but currently it's not possible to specify urlFilters attribute via the noticifation repository.

What to change

Add support to specify the urlFilters attribute of relentless notifications via the noticifation repository by specifying a space seperated list of domains:

Notification repository format:

inactive = no

severity = relentless
title.en-US = Test
message.en-US = Test
urls = foo.com bar.com

Resulting notification.json:

{
  "notifications": [
    {
      "id": "1",
      "message": {
        "en-US": "Test"
      },
      "severity": "relentless",
      "title": {
        "en-US": "Test"
      },
      "urlFilters": [
        "FOO.COM^$document",
        "BAR.COM^$document"
      ]
    }
  ],
  "version": "201707281520"
}

Attachments (0)

Change History (4)

comment:1 Changed on 07/28/2017 at 03:32:43 PM by wspee

  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:2 Changed on 07/31/2017 at 08:34:29 AM by wspee

  • Owner set to wspee

comment:3 Changed on 09/22/2017 at 10:29:44 AM by abpbot

comment:4 Changed on 09/22/2017 at 01:32:53 PM by wspee

  • Resolution set to fixed
  • Status changed from reviewing to closed

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from wspee.
 
Note: See TracTickets for help on using tickets.