History repository
2 unresolved threads
2 unresolved threads
Closes #2081585
Change record https://www.drupal.org/node/2197189
Edited by Andrey Postnikov
Merge request reports
Activity
added 559 commits
-
5f387ebd...21c0c457 - 558 commits from branch
project:9.2.x
- abaef2f6 - Patch #198
-
5f387ebd...21c0c457 - 558 commits from branch
added 5 commits
-
62f6c190...5bb2258a - 3 commits from branch
project:9.2.x
- 2e52ad86 - Patch #209
- 38c9d46b - Use deprecation mamba for forum manager
-
62f6c190...5bb2258a - 3 commits from branch
added 7 commits
-
38c9d46b...528f1878 - 6 commits from branch
project:9.2.x
- 8db7eb21 - Patch #211
-
38c9d46b...528f1878 - 6 commits from branch
added 49 commits
-
d494fb06...e5c0783a - 48 commits from branch
project:9.2.x
- 5fc78c6a - Patch #2081585-212
-
d494fb06...e5c0783a - 48 commits from branch
The rebase was for triggering a new DrupalCI test run, now that https://www.drupal.org/project/drupalorg/issues/3208796 is resolved, it looks like it is working: https://www.drupal.org/pift-ci-job/2046292
114 $user_id = $this->currentUser->id(); 115 $time = $this->time->getRequestTime(); 116 $entity_id = $entity->id(); 117 $entity_type_id = $entity->getEntityTypeId(); 118 $this->connection->merge('history') 119 ->keys([ 120 'uid' => $user_id, 121 'entity_id' => $entity_id, 122 'entity_type' => $entity_type_id, 123 ]) 124 ->fields(['timestamp' => $time]) 125 ->execute(); 126 // Update cached value. 127 $this->memoryCache->set( 128 $this->buildCacheId($user_id, $entity_type_id, $entity_id), 129 $time, Cache::PERMANENT, 100 Cache::PERMANENT, 101 $this->getCacheTags($user_id, $row->entity_id) 102 ); 103 $entities_to_read[$row->entity_id] = $timestamp; 104 } 105 106 return $entities + $entities_to_read; 107 } 108 109 /** 110 * {@inheritdoc} 111 */ 112 public function updateLastViewed(EntityInterface $entity): HistoryRepositoryInterface { 113 if ($this->currentUser->isAuthenticated()) { 114 $user_id = $this->currentUser->id(); 115 $time = $this->time->getRequestTime(); added 263 commits
-
5fc78c6a...e595a453 - 262 commits from branch
project:9.3.x
- c747bcc1 - Patch #2081585-212
-
5fc78c6a...e595a453 - 262 commits from branch
Please register or sign in to reply