Skip to content

Commit

Permalink
try to debug why ES cannot create the user index
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Jun 29, 2024
1 parent 03c2888 commit 4f328e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Adapter/Elasticsearch/CreateIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public function __invoke(string $class): Maybe
'mappings' => ($this->mapping)($definition),
])),
))
->leftMap(function($error) {
var_dump($error);

Check failure on line 67 in src/Adapter/Elasticsearch/CreateIndex.php

View workflow job for this annotation

GitHub Actions / Psalm (8.2, highest)

ForbiddenCode

src/Adapter/Elasticsearch/CreateIndex.php:67:17: ForbiddenCode: Unsafe var_dump (see https://psalm.dev/002)

Check failure on line 67 in src/Adapter/Elasticsearch/CreateIndex.php

View workflow job for this annotation

GitHub Actions / Psalm (8.2, lowest)

ForbiddenCode

src/Adapter/Elasticsearch/CreateIndex.php:67:17: ForbiddenCode: Unsafe var_dump (see https://psalm.dev/002)

Check failure on line 67 in src/Adapter/Elasticsearch/CreateIndex.php

View workflow job for this annotation

GitHub Actions / Psalm (8.3, highest)

ForbiddenCode

src/Adapter/Elasticsearch/CreateIndex.php:67:17: ForbiddenCode: Unsafe var_dump (see https://psalm.dev/002)
die;
})
->maybe()
->map(static fn() => new SideEffect);
}
Expand Down
4 changes: 4 additions & 0 deletions src/Adapter/Elasticsearch/DropIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public function __invoke(string $class): Maybe
Method::delete,
ProtocolVersion::v11,
))
->leftMap(function($error) {
var_dump($error);

Check failure on line 57 in src/Adapter/Elasticsearch/DropIndex.php

View workflow job for this annotation

GitHub Actions / Psalm (8.2, highest)

ForbiddenCode

src/Adapter/Elasticsearch/DropIndex.php:57:17: ForbiddenCode: Unsafe var_dump (see https://psalm.dev/002)

Check failure on line 57 in src/Adapter/Elasticsearch/DropIndex.php

View workflow job for this annotation

GitHub Actions / Psalm (8.2, lowest)

ForbiddenCode

src/Adapter/Elasticsearch/DropIndex.php:57:17: ForbiddenCode: Unsafe var_dump (see https://psalm.dev/002)

Check failure on line 57 in src/Adapter/Elasticsearch/DropIndex.php

View workflow job for this annotation

GitHub Actions / Psalm (8.3, highest)

ForbiddenCode

src/Adapter/Elasticsearch/DropIndex.php:57:17: ForbiddenCode: Unsafe var_dump (see https://psalm.dev/002)
die;
})
->maybe()
->map(static fn() => new SideEffect);
}
Expand Down

0 comments on commit 4f328e0

Please sign in to comment.