Skip to content

Commit 3b7746c

Browse files
committed
feat: add name filter to GET selection plans endpoint
1 parent 2a197d0 commit 3b7746c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

app/Http/Controllers/Apis/Protected/Summit/OAuth2SummitSelectionPlansApiController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,14 @@ public function getAll($summit_id)
288288
return $this->_getAll(
289289
function () {
290290
return [
291+
'name' => ['=@','@@','=='],
291292
'status' => ['=='],
292293
];
293294
},
294295
function () {
296+
295297
return [
298+
'name' => 'sometimes|string',
296299
'status' => 'sometimes|string|in:submission,selection,voting',
297300
];
298301
},

app/Repositories/Summit/DoctrineSelectionPlanRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ protected function getFilterMappings()
8686
'allowed_member_email' => 'e.is_hidden = true OR (e.is_hidden = false AND SIZE(e.allowed_members) = 0 ) OR am.email',
8787
'is_enabled' => 'e.is_enabled',
8888
'is_hidden' => 'e.is_hidden',
89+
'name' => 'e.name',
8990
];
9091
}
9192

0 commit comments

Comments
 (0)