Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14041289
D12760.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D12760.diff
View Options
diff --git a/src/applications/conpherence/controller/ConpherenceUpdateController.php b/src/applications/conpherence/controller/ConpherenceUpdateController.php
--- a/src/applications/conpherence/controller/ConpherenceUpdateController.php
+++ b/src/applications/conpherence/controller/ConpherenceUpdateController.php
@@ -453,6 +453,7 @@
$conpherence_id,
$latest_transaction_id) {
+ $minimal_display = $this->getRequest()->getExists('minimal_display');
$need_widget_data = false;
$need_transactions = false;
$need_participant_cache = true;
@@ -464,7 +465,7 @@
case ConpherenceUpdateActions::MESSAGE:
case ConpherenceUpdateActions::ADD_PERSON:
$need_transactions = true;
- $need_widget_data = true;
+ $need_widget_data = !$minimal_display;
break;
case ConpherenceUpdateActions::REMOVE_PERSON:
case ConpherenceUpdateActions::NOTIFICATIONS:
@@ -488,7 +489,7 @@
$data = ConpherenceTransactionRenderer::renderTransactions(
$user,
$conpherence,
- !$this->getRequest()->getExists('minimal_display'));
+ !$minimal_display);
$participant_obj = $conpherence->getParticipant($user->getPHID());
$participant_obj->markUpToDate($conpherence, $data['latest_transaction']);
} else if ($need_transactions) {
@@ -505,51 +506,55 @@
$header = null;
$people_widget = null;
$file_widget = null;
- switch ($action) {
- case ConpherenceUpdateActions::METADATA:
- $policy_objects = id(new PhabricatorPolicyQuery())
- ->setViewer($user)
- ->setObject($conpherence)
- ->execute();
- $header = $this->buildHeaderPaneContent($conpherence, $policy_objects);
- $nav_item = id(new ConpherenceThreadListView())
- ->setUser($user)
- ->setBaseURI($this->getApplicationURI())
- ->renderSingleThread($conpherence);
- break;
- case ConpherenceUpdateActions::MESSAGE:
- $file_widget = id(new ConpherenceFileWidgetView())
- ->setUser($this->getRequest()->getUser())
- ->setConpherence($conpherence)
- ->setUpdateURI($widget_uri);
- break;
- case ConpherenceUpdateActions::ADD_PERSON:
- $people_widget = id(new ConpherencePeopleWidgetView())
- ->setUser($user)
- ->setConpherence($conpherence)
- ->setUpdateURI($widget_uri);
- break;
- case ConpherenceUpdateActions::REMOVE_PERSON:
- case ConpherenceUpdateActions::NOTIFICATIONS:
- default:
- break;
+ if (!$minimal_display) {
+ switch ($action) {
+ case ConpherenceUpdateActions::METADATA:
+ $policy_objects = id(new PhabricatorPolicyQuery())
+ ->setViewer($user)
+ ->setObject($conpherence)
+ ->execute();
+ $header = $this->buildHeaderPaneContent(
+ $conpherence,
+ $policy_objects);
+ $header = hsprintf('%s', $header);
+ $nav_item = id(new ConpherenceThreadListView())
+ ->setUser($user)
+ ->setBaseURI($this->getApplicationURI())
+ ->renderSingleThread($conpherence);
+ $nav_item = hsprintf('%s', $nav_item);
+ break;
+ case ConpherenceUpdateActions::MESSAGE:
+ $file_widget = id(new ConpherenceFileWidgetView())
+ ->setUser($this->getRequest()->getUser())
+ ->setConpherence($conpherence)
+ ->setUpdateURI($widget_uri);
+ $file_widget = $file_widget->render();
+ break;
+ case ConpherenceUpdateActions::ADD_PERSON:
+ $people_widget = id(new ConpherencePeopleWidgetView())
+ ->setUser($user)
+ ->setConpherence($conpherence)
+ ->setUpdateURI($widget_uri);
+ $people_widget = $people_widget->render();
+ break;
+ case ConpherenceUpdateActions::REMOVE_PERSON:
+ case ConpherenceUpdateActions::NOTIFICATIONS:
+ default:
+ break;
+ }
}
- $people_html = null;
- if ($people_widget) {
- $people_html = hsprintf('%s', $people_widget->render());
- }
$data = $conpherence->getDisplayData($user);
$content = array(
'non_update' => $non_update,
'transactions' => hsprintf('%s', $rendered_transactions),
'conpherence_title' => (string) $data['title'],
'latest_transaction_id' => $new_latest_transaction_id,
- 'nav_item' => hsprintf('%s', $nav_item),
+ 'nav_item' => $nav_item,
'conpherence_phid' => $conpherence->getPHID(),
- 'header' => hsprintf('%s', $header),
- 'file_widget' => $file_widget ? $file_widget->render() : null,
- 'people_widget' => $people_html,
+ 'header' => $header,
+ 'file_widget' => $file_widget,
+ 'people_widget' => $people_widget,
);
return $content;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 12, 5:11 PM (6 d, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6734086
Default Alt Text
D12760.diff (4 KB)
Attached To
Mode
D12760: Conpherence - improve durable column performance when sending updates
Attached
Detach File
Event Timeline
Log In to Comment