Skip to content

Commit

Permalink
Comment out some deprecated code to fix old sync
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Jan 22, 2024
1 parent d779fcd commit def809e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/src/Repository/ActionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function __construct(ManagerRegistry $registry)
*/
public function findByListens(string $listen): array
{
// Todo: maybe add actions to MongoDB as well, so we can use better queries for this:
// Todo: %$listen% will sometimes find actions it shouldn't find, example: action listening to test.test.123 will be found if action test.test is thrown.
$query = $this->createQueryBuilder('a')
->andWhere('a.listens LIKE :listen')
->setParameter('listen', "%$listen%")
Expand Down
3 changes: 2 additions & 1 deletion api/src/Service/EavService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,8 @@ public function handleDelete(ObjectEntity $object, ArrayCollection $maxDepth = n
}

// Remove this object from cache
$this->functionService->removeResultFromCache($object);
//todo: deprecated function
// $this->functionService->removeResultFromCache($object);

$this->em->remove($object);
$this->em->flush();
Expand Down
3 changes: 3 additions & 0 deletions api/src/Service/FunctionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public function isResource($url)
* @throws InvalidArgumentException
*
* @return bool
* @deprecated
*/
public function removeResultFromCache(ObjectEntity $objectEntity, ?SymfonyStyle $io = null): bool
{
Expand Down Expand Up @@ -225,6 +226,7 @@ public function removeResultFromCache(ObjectEntity $objectEntity, ?SymfonyStyle
* @throws InvalidArgumentException
*
* @return void
* @deprecated
*/
private function removeParentResultsFromCache(ObjectEntity $objectEntity, ?SymfonyStyle $io)
{
Expand All @@ -248,6 +250,7 @@ private function removeParentResultsFromCache(ObjectEntity $objectEntity, ?Symfo
* @throws InvalidArgumentException
*
* @return void
* @deprecated
*/
private function removeChildResultsFromCache(ObjectEntity $objectEntity, ?SymfonyStyle $io)
{
Expand Down

0 comments on commit def809e

Please sign in to comment.