File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2089
2089
name = "sentry-api-0-project-rules-configuration" ,
2090
2090
),
2091
2091
url (
2092
- r"^(?P<organization_slug>[^\/]+)/(?P<project_slug>[^\/]+)/rules/(?P<rule_id>[^\/] +)/$" ,
2092
+ r"^(?P<organization_slug>[^\/]+)/(?P<project_slug>[^\/]+)/rules/(?P<rule_id>\d +)/$" ,
2093
2093
ProjectRuleDetailsEndpoint .as_view (),
2094
2094
name = "sentry-api-0-project-rule-details" ,
2095
2095
),
2104
2104
name = "sentry-api-0-metric-rule-snooze" ,
2105
2105
),
2106
2106
url (
2107
- r"^(?P<organization_slug>[^\/]+)/(?P<project_slug>[^\/]+)/rules/preview$" ,
2107
+ r"^(?P<organization_slug>[^\/]+)/(?P<project_slug>[^\/]+)/rules/preview/ $" ,
2108
2108
ProjectRulePreviewEndpoint .as_view (),
2109
2109
name = "sentry-api-0-project-rule-preview" ,
2110
2110
),
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ describe('ProjectAlertsCreate', function () {
462
462
groups [ i ] . lastTriggered = date ;
463
463
}
464
464
const mock = MockApiClient . addMockResponse ( {
465
- url : '/projects/org-slug/project-slug/rules/preview' ,
465
+ url : '/projects/org-slug/project-slug/rules/preview/ ' ,
466
466
method : 'POST' ,
467
467
body : groups ,
468
468
headers : {
@@ -513,7 +513,7 @@ describe('ProjectAlertsCreate', function () {
513
513
514
514
it ( 'invalid preview alert' , async ( ) => {
515
515
const mock = MockApiClient . addMockResponse ( {
516
- url : '/projects/org-slug/project-slug/rules/preview' ,
516
+ url : '/projects/org-slug/project-slug/rules/preview/ ' ,
517
517
method : 'POST' ,
518
518
statusCode : 400 ,
519
519
} ) ;
@@ -535,7 +535,7 @@ describe('ProjectAlertsCreate', function () {
535
535
536
536
it ( 'empty preview table' , async ( ) => {
537
537
const mock = MockApiClient . addMockResponse ( {
538
- url : '/projects/org-slug/project-slug/rules/preview' ,
538
+ url : '/projects/org-slug/project-slug/rules/preview/ ' ,
539
539
method : 'POST' ,
540
540
body : [ ] ,
541
541
headers : {
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ class IssueRuleEditor extends AsyncView<Props, State> {
391
391
}
392
392
// we currently don't have a way to parse objects from query params, so this method is POST for now
393
393
this . api
394
- . requestPromise ( `/projects/${ organization . slug } /${ project . slug } /rules/preview` , {
394
+ . requestPromise ( `/projects/${ organization . slug } /${ project . slug } /rules/preview/ ` , {
395
395
method : 'POST' ,
396
396
includeAllArgs : true ,
397
397
query : {
You can’t perform that action at this time.
0 commit comments