Skip to content

Commit

Permalink
Fix issue with concurrent identical searches (Fixes #233), Change "lo…
Browse files Browse the repository at this point in the history
…g" 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
  • Loading branch information
bitner authored Apr 18, 2024
1 parent 61f6433 commit a993d2c
Show file tree
Hide file tree
Showing 9 changed files with 826 additions and 293 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
pgstac:
container_name: pgstac
Expand Down
2 changes: 1 addition & 1 deletion docker/pypgstac/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FROM pyrustbase as pypgstac
COPY ./src/pypgstac/pyproject.toml /tmp/pyproject.toml
WORKDIR /tmp
RUN \
toml-to-req --include-optional \
toml-to-req --optional-lists test,build,dev,psycopg,migrations \
&& pip install -r /tmp/requirements.txt
COPY docker/pypgstac/bin /opt/docker/pypgstac/bin
COPY src/pypgstac /opt/src/pypgstac
Expand Down
6 changes: 3 additions & 3 deletions docker/pypgstac/bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ while [[ $# -gt 0 ]]
;;

--vv)
MESSAGELOG=1
MESSAGEDEBUG=1
shift
;;

Expand Down Expand Up @@ -255,8 +255,8 @@ while [[ $# -gt 0 ]]


CLIENTMESSAGES='warning'
[ $MESSAGENOTICE -eq 1 ] && CLIENTMESSAGES='notice'
[ $MESSAGELOG -eq 1 ] && CLIENTMESSAGES='log'
[[ $MESSAGENOTICE -eq 1 ]] && CLIENTMESSAGES='notice'
[[ $MESSAGEDEBUG -eq 1 ]] && CLIENTMESSAGES='debug1'
echo $CLIENTMESSAGES

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

0 comments on commit a993d2c

Please sign in to comment.