mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
List view should only allow 100 ghost events per recurring event.
Summary: Ref T8394, List view should only allow 100 ghost events per recurring event Test Plan: Open list view with many recurring events. Shouldn't hang. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T8394 Differential Revision: https://secure.phabricator.com/D13132
This commit is contained in:
parent
1db6b9bafd
commit
5e168b629d
1 changed files with 5 additions and 1 deletions
|
@ -462,7 +462,11 @@ final class PhabricatorCalendarEventSearchEngine
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPageSize(PhabricatorSavedQuery $saved) {
|
public function getPageSize(PhabricatorSavedQuery $saved) {
|
||||||
return $saved->getParameter('limit', 1000);
|
if ($this->isMonthView($saved) || $this->isDayView($saved)) {
|
||||||
|
return $saved->getParameter('limit', 1000);
|
||||||
|
} else {
|
||||||
|
return $saved->getParameter('limit', 100);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getDateFrom(PhabricatorSavedQuery $saved) {
|
private function getDateFrom(PhabricatorSavedQuery $saved) {
|
||||||
|
|
Loading…
Reference in a new issue