-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow users to exclude votes in alerts
This also tidies up editing MP alerts so it's mostly buttons rather than having to go through a form.
- Loading branch information
Showing
10 changed files
with
111 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ public function testAdd() { | |
'email' => '[email protected]', | ||
'keyword' => 'test', | ||
'pc' => 'SW1A 1AA', | ||
'ignore_speaker_votes' => 0, | ||
]; | ||
|
||
$response = $ALERT->add($details, false, true); | ||
|
@@ -96,6 +97,7 @@ public function testAddExisting() { | |
'email' => '[email protected]', | ||
'keyword' => 'test3', | ||
'pc' => 'SW1A 1AA', | ||
'ignore_speaker_votes' => 0, | ||
]; | ||
|
||
$response = $ALERT->add($details, false, true); | ||
|
@@ -117,6 +119,7 @@ public function testAddDeleted() { | |
'email' => '[email protected]', | ||
'keyword' => 'test6', | ||
'pc' => 'SW1A 1AA', | ||
'ignore_speaker_votes' => 0, | ||
]; | ||
|
||
$response = $ALERT->add($details, false, true); | ||
|
@@ -162,6 +165,7 @@ public function testCheckTokenCorrect() { | |
'id' => 1, | ||
'email' => '[email protected]', | ||
'criteria' => 'test1', | ||
'ignore_speaker_votes' => '0', | ||
], $response); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
<field name="alert_id">1</field> | ||
<field name="deleted">0</field> | ||
<field name="confirmed">0</field> | ||
<field name="ignore_speaker_votes">0</field> | ||
<field name="registrationtoken">token1</field> | ||
<field name="email">[email protected]</field> | ||
<field name="criteria">test1</field> | ||
|
@@ -15,6 +16,7 @@ | |
<field name="alert_id">3</field> | ||
<field name="deleted">0</field> | ||
<field name="confirmed">1</field> | ||
<field name="ignore_speaker_votes">0</field> | ||
<field name="registrationtoken">token3</field> | ||
<field name="email">[email protected]</field> | ||
<field name="criteria">test3</field> | ||
|
@@ -24,6 +26,7 @@ | |
<field name="alert_id">5</field> | ||
<field name="deleted">0</field> | ||
<field name="confirmed">1</field> | ||
<field name="ignore_speaker_votes">0</field> | ||
<field name="registrationtoken">token5</field> | ||
<field name="email">[email protected]</field> | ||
<field name="criteria">speaker:1234</field> | ||
|
@@ -33,6 +36,7 @@ | |
<field name="alert_id">6</field> | ||
<field name="deleted">2</field> | ||
<field name="confirmed">1</field> | ||
<field name="ignore_speaker_votes">0</field> | ||
<field name="registrationtoken">token6</field> | ||
<field name="email">[email protected]</field> | ||
<field name="criteria">test6</field> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters