Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache API v2 and optimizations #3306

Merged
merged 44 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
0319fd6
manage last update and cache api v2
submarcos Sep 30, 2022
137cd80
optimizations and cache in api v2 detail pages
submarcos Oct 18, 2022
ebb1eac
pep8
submarcos Oct 18, 2022
5ca620d
disable already running CI
submarcos Oct 18, 2022
f56a0d4
use default cache in memory in tests
submarcos Oct 18, 2022
83fc9d6
pep8
submarcos Oct 18, 2022
0776ebd
fix tests
submarcos Nov 9, 2022
b3f0e6e
fix tests
submarcos Nov 9, 2022
01d4cb3
merge migrations
submarcos Nov 10, 2022
6d5aa97
add var/cache in deb installation
submarcos Nov 10, 2022
6d46978
add date in fixtures
submarcos Nov 10, 2022
9614c52
rewrite migrations
submarcos Nov 10, 2022
eda1b46
try fix reservation_system migrations
submarcos Nov 10, 2022
992a3ba
update fixtures
submarcos Nov 10, 2022
d657f01
update fixtures
submarcos Nov 10, 2022
a129df6
update fixtures
submarcos Nov 10, 2022
e654c76
update fixtures
submarcos Nov 10, 2022
0ac62a5
update fixtures
submarcos Nov 10, 2022
cf64119
cache by attachment
submarcos Nov 14, 2022
eb7233a
fix cache
submarcos Nov 14, 2022
74afd1d
fix cache
submarcos Nov 15, 2022
1465a7b
fix cache
submarcos Nov 15, 2022
40eec0c
fix cache
submarcos Nov 15, 2022
ac422ef
fix cache
submarcos Nov 15, 2022
bb8dbe9
fix cache
submarcos Nov 15, 2022
b1f4d1d
fix cache
submarcos Nov 15, 2022
34c71f8
add tests
submarcos Nov 16, 2022
4779bcc
add default cache dirs
submarcos Nov 16, 2022
58bfc3d
fix signals
submarcos Nov 16, 2022
729eca9
fix tests
submarcos Nov 16, 2022
f789ac4
fix tests
submarcos Nov 17, 2022
c03fd89
optimize views and fix tests
submarcos Nov 17, 2022
ff8b107
add tests
submarcos Nov 17, 2022
afb5b8d
add default values for new timestamp
submarcos Nov 17, 2022
629e62d
manage buffered intersections in sensitive areas
submarcos Nov 18, 2022
702feaf
use a dedicated cache for api v2
submarcos Nov 18, 2022
5de7031
fix migrations
submarcos Nov 18, 2022
bfe4bdc
fix cache
submarcos Nov 18, 2022
86780d5
fix migration and add cache endpoint
submarcos Nov 18, 2022
8700023
cache list api v2 theme endpoint
submarcos Nov 18, 2022
6ce173b
add doc and changelog
submarcos Nov 18, 2022
f0c1d93
add doc and changelog
submarcos Nov 18, 2022
36058ea
use default values in decorator
submarcos Nov 21, 2022
ed520ae
clean test
submarcos Nov 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
release:
types:
- created

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
DEBIAN_FRONTEND: noninteractive
POSTGRES_DB: ci_test
Expand Down Expand Up @@ -116,9 +121,9 @@ jobs:
pip3 wheel --wheel-dir=~/.wheel_dir -r requirements.txt
pip3 install --find-links=~/.wheel_dir -r requirements.txt

- name: Create test log directory
- name: Create test required directories
run: |
mkdir -p ./var/log
mkdir -p ./var/log ./var/cache/sessions

- name: Check migrations
run: |
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ENV CAPTURE_HOST="screamshotter"
ENV CUSTOM_SETTINGS_FILE="/opt/geotrek-admin/var/conf/custom.py"

WORKDIR /opt/geotrek-admin
RUN mkdir -p /opt/geotrek-admin/var/log
RUN mkdir -p /opt/geotrek-admin/var/log /opt/geotrek-admin/var/cache

# Install postgis because raster2pgsl is required by manage.py loaddem
RUN apt-get update -qq && apt-get install -y -qq \
Expand Down Expand Up @@ -49,7 +49,7 @@ RUN /opt/venv/bin/pip install --no-cache-dir -r requirements.txt -U
COPY geotrek/ geotrek/
COPY manage.py manage.py
COPY VERSION VERSION
COPY .coveragerc .coveragerc
COPY setup.cfg setup.cfg
COPY docker/* /usr/local/bin/

ENTRYPOINT ["/bin/sh", "-e", "/usr/local/bin/entrypoint.sh"]
Expand Down
321 changes: 0 additions & 321 deletions config.yml

This file was deleted.

1 change: 1 addition & 0 deletions debian/dirs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/opt/geotrek-admin/var/conf/extra_static
/opt/geotrek-admin/var/log
/opt/geotrek-admin/var/cache/sessions
/opt/geotrek-admin/var/media/upload
/opt/geotrek-admin/var/pid
Loading