Skip to content

Commit a993d2c

Browse files
authored
Fix issue with concurrent identical searches (Fixes #233), Change "log" level messaging to "debug1" (Fixes #242) (#258)
* Refactor search_where and search_query functions, change raise logs to raise debug * don't compute where stats in search_query
1 parent 61f6433 commit a993d2c

File tree

9 files changed

+826
-293
lines changed

9 files changed

+826
-293
lines changed

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "3"
21
services:
32
pgstac:
43
container_name: pgstac

docker/pypgstac/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ FROM pyrustbase as pypgstac
2121
COPY ./src/pypgstac/pyproject.toml /tmp/pyproject.toml
2222
WORKDIR /tmp
2323
RUN \
24-
toml-to-req --include-optional \
24+
toml-to-req --optional-lists test,build,dev,psycopg,migrations \
2525
&& pip install -r /tmp/requirements.txt
2626
COPY docker/pypgstac/bin /opt/docker/pypgstac/bin
2727
COPY src/pypgstac /opt/src/pypgstac

docker/pypgstac/bin/test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ while [[ $# -gt 0 ]]
198198
;;
199199

200200
--vv)
201-
MESSAGELOG=1
201+
MESSAGEDEBUG=1
202202
shift
203203
;;
204204

@@ -255,8 +255,8 @@ while [[ $# -gt 0 ]]
255255

256256

257257
CLIENTMESSAGES='warning'
258-
[ $MESSAGENOTICE -eq 1 ] && CLIENTMESSAGES='notice'
259-
[ $MESSAGELOG -eq 1 ] && CLIENTMESSAGES='log'
258+
[[ $MESSAGENOTICE -eq 1 ]] && CLIENTMESSAGES='notice'
259+
[[ $MESSAGEDEBUG -eq 1 ]] && CLIENTMESSAGES='debug1'
260260
echo $CLIENTMESSAGES
261261

262262
if [[ ($FORMATTING -eq 0) && ($SETUPDB -eq 0) && ($PGTAP -eq 0) && ($BASICSQL -eq 0) && ($PYPGSTAC -eq 0) && ($MIGRATIONS -eq 0) ]]

0 commit comments

Comments
 (0)