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

Prod push #957

Merged
merged 145 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
1a54817
[ImgBot] Optimize images (#740)
imgbot[bot] Oct 18, 2021
a4faeac
Bump @hcaptcha/react-hcaptcha from 0.3.6 to 0.3.7 in /client (#734)
dependabot[bot] Oct 19, 2021
d97e924
Bump babel-plugin-macros from 2.8.0 to 3.1.0 in /client (#721)
dependabot[bot] Oct 19, 2021
45b411a
Bump @babel/core from 7.14.8 to 7.15.8 in /client (#741)
dependabot[bot] Oct 19, 2021
f7d70a3
Bump @lingui/cli from 3.10.2 to 3.12.1 in /client (#735)
dependabot[bot] Oct 19, 2021
989515a
Bump @lingui/react from 3.5.1 to 3.12.1 in /client (#736)
dependabot[bot] Oct 20, 2021
cf216c8
Bump prettier from 2.2.1 to 2.4.1 in /client (#745)
dependabot[bot] Oct 20, 2021
be6f4f9
Rename storybooks/preview-body.html (#747)
tudoramariei Oct 22, 2021
e95fbf4
share buttons will hold the link of current post (#748)
tuanthanh2067 Oct 23, 2021
69b2bbb
Fixing README broken link (#749)
calindragomir Oct 29, 2021
751cbea
Fix ports and typos (#750)
calindragomir Oct 30, 2021
d61edda
Bump typescript from 4.2.4 to 4.4.4 in /client (#755)
dependabot[bot] Nov 4, 2021
5c50b6b
Bump @storybook/addon-actions from 6.3.7 to 6.3.12 in /client (#751)
dependabot[bot] Nov 4, 2021
f75a269
Bump tmpl from 1.0.4 to 1.0.5 in /client (#758)
dependabot[bot] Nov 4, 2021
26d397c
Bump eslint-plugin-react from 7.22.0 to 7.26.1 in /client (#753)
dependabot[bot] Nov 4, 2021
7089876
Bump @ant-design/icons from 4.6.2 to 4.7.0 in /client (#754)
dependabot[bot] Nov 4, 2021
774230d
Bump react-pdf from 5.3.2 to 5.5.0 in /client (#752)
dependabot[bot] Nov 4, 2021
dc66e1a
Bump path-parse from 1.0.6 to 1.0.7 in /client (#759)
dependabot[bot] Nov 4, 2021
ee19d24
Update buildings model and data (#756)
tudoramariei Nov 4, 2021
2d1f18d
Clean-up data and locale files (#760)
tudoramariei Nov 5, 2021
c4b1644
[Issue 715] - Add images to the building model (#761)
calindragomir Nov 19, 2021
ae283cf
Add data and update model and admin
tudoramariei Nov 19, 2021
3ad20d1
Small image model improvements (#49)
calindragomir Nov 19, 2021
9356b74
Issue #466 | Map position should stay fixed when changing filters (#763)
vladplesu Nov 25, 2021
f8014a7
Change data exposed and the way it's displayed
tudoramariei Nov 27, 2021
f04af14
Clean-up work
tudoramariei Dec 5, 2021
92dccee
Bump @storybook/addon-essentials from 6.2.9 to 6.4.3 in /client
dependabot[bot] Dec 1, 2021
613eeaa
Bump @hcaptcha/react-hcaptcha from 0.3.7 to 0.3.9 in /client
dependabot[bot] Dec 1, 2021
e144922
prevent wheel default event
kata-kas Dec 11, 2021
f91a472
Update index.js
kata-kas Dec 11, 2021
b62fd29
[Issue 772] - Remove forceRenderOnLocaleChange (#779)
kata-kas Dec 15, 2021
2384dbd
pass language param to hcaptcha (#781)
kata-kas Dec 17, 2021
ced4938
remove text highlight on map markers (#782)
kata-kas Dec 17, 2021
8532904
[Feature 775] - Add Category Param to the Search Endpoint (#783)
kata-kas Dec 19, 2021
b05e785
pass filters to search (#784)
kata-kas Dec 21, 2021
8f96cb9
Change api deployment for development
tudoramariei Dec 24, 2021
941118a
Bump ua-parser-js from 0.7.21 to 0.7.31 in /client (#785)
dependabot[bot] Dec 24, 2021
353e94c
Bump hosted-git-info from 2.8.7 to 2.8.9 in /client (#786)
dependabot[bot] Dec 24, 2021
10175c5
Bump postcss from 7.0.35 to 7.0.36 in /client (#787)
dependabot[bot] Dec 24, 2021
694bb51
Bump y18n from 4.0.0 to 4.0.3 in /client (#788)
dependabot[bot] Dec 24, 2021
faeb007
Fix incorrect counties mapping (#796)
tudoramariei Jan 3, 2022
2c23a46
Issue 705 | Add on-hover display for "risc seismic" element (#795)
vladplesu Jan 11, 2022
5af7803
Create endpoints for many2many building fields (#798)
tudoramariei Jan 12, 2022
8b5123e
Issue 692 | Extend the form with the fields from the new specificatio…
vladplesu Jan 17, 2022
4e5fc63
Issue 744 | Responsive design improvements (#797)
vladplesu Jan 21, 2022
54a6487
No Issue | Fix language change bug and work performed form bug (#804)
vladplesu Jan 25, 2022
8560e51
No Issue | Minor bug fixes (#806)
vladplesu Jan 29, 2022
f0c0f8c
Upgrade Python Dependencies (#807)
tudoramariei Jan 29, 2022
454068c
Bump nanoid from 3.1.30 to 3.2.0 in /client (#803)
dependabot[bot] Jan 29, 2022
25ddbfb
Bump follow-redirects from 1.14.6 to 1.14.7 in /client (#800)
dependabot[bot] Jan 29, 2022
64d9537
Bump tar from 6.1.0 to 6.1.11 in /client (#808)
dependabot[bot] Jan 29, 2022
38e197a
Bump @hcaptcha/react-hcaptcha from 0.3.9 to 1.1.0 in /client (#809)
dependabot[bot] Jan 29, 2022
da28475
Bump lint-staged from 10.5.3 to 12.1.4 in /client (#789)
dependabot[bot] Jan 29, 2022
74f780d
Bump prettier from 2.4.1 to 2.5.1 in /client (#792)
dependabot[bot] Jan 29, 2022
5458300
Bump react-app-rewired from 2.1.8 to 2.1.11 in /client (#791)
dependabot[bot] Jan 29, 2022
8185139
Repair data from fixture (#811)
tudoramariei Jan 29, 2022
7e0e1af
Bump ajv from 6.12.0 to 6.12.6 in /client (#817)
dependabot[bot] Feb 14, 2022
5cb3362
Bump @lingui/macro from 3.13.0 to 3.14.0 in /client (#840)
dependabot[bot] Aug 22, 2022
3b2f14e
Update python dependencies
tudoramariei Oct 3, 2022
3afdf1a
Refactor statistics implementation
tudoramariei Oct 14, 2022
56db1fa
Fix statistic items type
tudoramariei Oct 14, 2022
2b219ef
Update statistics help texts and translations
tudoramariei Oct 14, 2022
f31139b
No Issue | Prevent wheel zoom on map (#805)
vladplesu Nov 26, 2022
476e73c
Bump follow-redirects from 1.14.7 to 1.14.8 in /client (#818)
dependabot[bot] Nov 26, 2022
91abc2d
Bump url-parse from 1.5.3 to 1.5.10 in /client (#821)
dependabot[bot] Nov 26, 2022
6a35015
Bump react-pdf from 5.6.0 to 5.7.2 in /client (#826)
dependabot[bot] Nov 26, 2022
e4bfdaf
Update codeowners (#889)
tudoramariei Apr 1, 2023
fe0030a
Update logo to the new app identity
tudoramariei Feb 27, 2023
ad3fce9
Update django requirements
tudoramariei Feb 27, 2023
1f64f6f
Update formatting
tudoramariei Feb 27, 2023
b0969c3
Update texts to the new identity
tudoramariei Apr 1, 2023
d1ddd65
Update the super-admin loading
tudoramariei Apr 1, 2023
255babd
Update the API pipeline configuration
tudoramariei Apr 1, 2023
bfdf2c1
Bump minimist and mkdirp in /client
dependabot[bot] Mar 3, 2023
6eed073
Change env files
tudoramariei Apr 1, 2023
faf9cd7
Update pip requirements
tudoramariei Apr 1, 2023
00b1fd3
Bump eventsource from 1.1.0 to 1.1.1 in /client (#834)
dependabot[bot] Apr 1, 2023
294ad51
Filter api pipeline runs by location of changes
tudoramariei Apr 1, 2023
feacfb1
Remove the blog and pages modules (#902)
calindragomir Apr 2, 2023
5067d2f
[Issue-891] Overwrites the selector width via CSS (#901)
calindragomir Apr 2, 2023
982cf6c
Task/899 update client requirements (#909)
alinaMihai May 29, 2023
9193b66
Fix the local deployment pipeline workflow
tudoramariei May 29, 2023
d5508fc
Fix autocomplete options text (#911)
alinaMihai May 29, 2023
a8ff46a
Update back-end requirements
tudoramariei May 30, 2023
619d56a
Add default data for buildings' auxiliaries
tudoramariei May 30, 2023
705c5e1
Tweak the way statistics are served and ingested
tudoramariei May 30, 2023
06a5645
Format files
tudoramariei May 30, 2023
3e8cc69
Update the versions of pipelines requirements
tudoramariei May 30, 2023
3df14e9
Update README and BE branding to the new name
tudoramariei May 30, 2023
79358d1
Update sqlparse version
tudoramariei May 30, 2023
61a4109
Fix the value displayed by the autocomplete (#913)
alinaMihai May 30, 2023
afec8b6
closes #884
alinaMihai May 30, 2023
268b100
fix reset search input field state
alinaMihai May 30, 2023
28615b2
Cleanup unused components (#917)
danmic94 May 31, 2023
d630832
Fix map label for "Other" (#918)
tudoramariei May 31, 2023
433d4d9
resolves #919 (#920)
alinaMihai May 31, 2023
1ecfb73
[#885] Removed all logos from footer as well as CSS classses and styl…
danmic94 May 31, 2023
9853cda
[#885] Fixing linting warning.
danmic94 May 31, 2023
300e72b
Fix/language change persistence (#926)
alinaMihai Jun 7, 2023
81a7549
883 modify header add building (#927)
danmic94 Jun 13, 2023
3c83b9d
Update api requirements
tudoramariei Oct 6, 2023
53f04f3
Remove statistics from the map (#943)
tudoramariei Oct 6, 2023
a2be2f1
hide add more info button (#944)
vladplesu Oct 6, 2023
ce4db6a
Update back-end dependencies
tudoramariei Oct 9, 2023
a8a607f
Cache the building responses in the app (#945)
tudoramariei Oct 10, 2023
da2a2c6
Add extra statistics
tudoramariei Oct 10, 2023
7837679
Update the data in the fixtures
tudoramariei Oct 10, 2023
0421490
Change the order of the map labels (#946)
tudoramariei Oct 10, 2023
da7db1e
Update view caching
tudoramariei Oct 10, 2023
32fa9bf
Change order of operations on API init
tudoramariei Oct 10, 2023
3c2aa0b
Update data with Dolj
tudoramariei Oct 10, 2023
a15b7d7
Split tabs (#947)
vladplesu Oct 11, 2023
555adf4
Remove cache set from the signal
tudoramariei Oct 11, 2023
d0a0d00
Add extra statistic
tudoramariei Oct 11, 2023
c188699
Move fixtures to yaml files
tudoramariei Oct 11, 2023
ec8a8d5
Add the csv with the bucharest data
tudoramariei Oct 11, 2023
f6ff8e3
Add a database dump with the building data
tudoramariei Oct 11, 2023
1aa8df7
update settings
danniel Oct 11, 2023
d83fa60
Merge branch 'danniel/fix1' into develop
danniel Oct 11, 2023
2256051
Update configurations
tudoramariei Oct 11, 2023
03dd565
Change cache to in-memory
tudoramariei Oct 11, 2023
3667e2d
Change deployment
tudoramariei Oct 11, 2023
f824774
Temporarily change gunicorn debuglevel
tudoramariei Oct 11, 2023
50c94bd
Change debugging options
tudoramariei Oct 11, 2023
56f056c
Bring the log level to info
tudoramariei Oct 11, 2023
6945fa8
Update FE text
tudoramariei Oct 11, 2023
c13a8d9
Do not use manifest static files
danniel Oct 11, 2023
6e48c8b
Specify serializer
danniel Oct 11, 2023
e07c682
Fix workflow and docs
tudoramariei Oct 11, 2023
140b192
Update database with neamt files
tudoramariei Oct 11, 2023
dce1801
Fix sql file key
tudoramariei Oct 11, 2023
e739f70
Change cache to timeout after 24h
tudoramariei Oct 13, 2023
4828bbc
Use multiple caches (#948)
tudoramariei Oct 13, 2023
63d1112
Update settings to allow for customization of data fields
tudoramariei Oct 13, 2023
47ef872
Update the Bucharest data
tudoramariei Oct 13, 2023
0186dbc
Add an editorconfig to the project
tudoramariei Oct 16, 2023
f11d7ec
Update DB dump data
tudoramariei Oct 19, 2023
d5b4678
New Dockerfile and init.sh for the api
danniel Oct 11, 2023
ea5c1be
Add a new .env example (WIP)
danniel Oct 11, 2023
551a139
Improve shell boolean checking
danniel Oct 19, 2023
51790ad
Update the docker-compose files (#949)
tudoramariei Oct 19, 2023
5b7cffa
Change codeowners
tudoramariei Oct 24, 2023
baf3828
Change the build process
tudoramariei Oct 24, 2023
b3fa379
Remove codeowners
tudoramariei Oct 26, 2023
56720ed
Remove Datree
tudoramariei Jan 30, 2024
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
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[*]
indent_size = 4
indent_style = space

[Makefile]
indent_size = 8
indent_style = tab

[{*js,*jsx,*ts,*tsx,*json,*prettierrc,*yml,*yaml}]
indent_size = 2
15 changes: 0 additions & 15 deletions .env.dist

This file was deleted.

46 changes: 46 additions & 0 deletions .env.example.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# api deployment
ENVIRONMENT=development
API_PORT=8030
SECRET_KEY=test

RUN_MIGRATION=True
RUN_COMPILE_MESSAGES=True
RUN_COLLECT_STATIC=False
RUN_LOAD_INITIAL_DATA=False
RUN_CREATE_SUPER_USER=True

# django
DEBUG=True
ENABLE_DEBUG_TOOLBAR=True

SITE_URL=
EMAIL_HOST=
EMAIL_PORT=25
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=no
EMAIL_USE_SSL=no

NO_REPLY_EMAIL=
DEFAULT_FROM_EMAIL=

# admin
[email protected]
DJANGO_ADMIN_PASSWORD=a

# database
POSTGRES_USER=postgres
POSTGRES_PASSWORD=secret
POSTGRES_DB=seismic_site
POSTGRES_HOST=db
POSTGRES_PORT=

# client
REACT_APP_DJANGO_SITE_URL=http://localhost
REACT_APP_DJANGO_PORT=8030
REACT_APP_DJANGO_API_ENDPOINT=api/v1

# external api keys
REACT_APP_CAPTCHA_API_KEY=
HERE_MAPS_API_KEY=
REACT_APP_HERE_MAPS_API_KEY=
54 changes: 54 additions & 0 deletions .env.example.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# api deployment
ENVIRONMENT=production
API_PORT=8030
SECRET_KEY=test

RUN_MIGRATION=True
RUN_COMPILE_MESSAGES=True
RUN_COLLECT_STATIC=True
RUN_LOAD_INITIAL_DATA=False
RUN_CREATE_SUPER_USER=True

# django
DEBUG=False
ENABLE_DEBUG_TOOLBAR=False

SITE_URL=
EMAIL_HOST=
EMAIL_PORT=25
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=False
EMAIL_USE_SSL=False

NO_REPLY_EMAIL=
DEFAULT_FROM_EMAIL=

ALLOWED_HOSTS=localhost
CSRF_TRUSTED_ORIGINS=http://localhost
CORS_ALLOWED_ORIGINS=http://localhost
CORS_ALLOWED_ORIGIN_REGEXES=http://localhost*

# admin
[email protected]
DJANGO_ADMIN_PASSWORD=a

# database
POSTGRES_USER=postgres
POSTGRES_PASSWORD=secret
POSTGRES_DB=seismic_site
POSTGRES_HOST=db
POSTGRES_PORT=

BACKGROUND_WORKERS=2
GUNICORN_WORKERS=2

# client
REACT_APP_DJANGO_SITE_URL=http://localhost
REACT_APP_DJANGO_PORT=8030
REACT_APP_DJANGO_API_ENDPOINT=api/v1

# external api keys
REACT_APP_CAPTCHA_API_KEY=
HERE_MAPS_API_KEY=
REACT_APP_HERE_MAPS_API_KEY=
8 changes: 0 additions & 8 deletions .github/CODEOWNERS

This file was deleted.

16 changes: 0 additions & 16 deletions .github/dependabot.yml

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/api_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ on:
paths:
- 'api/**.py'
- 'api/requirements*.*'
- 'api/Dockerfile'
- 'docker/dockerfiles/Dockerfile.backend*'
- 'docker-compose.yml'
- '.github/workflows/api_pipeline.yml'

jobs:
static_analysis:
name: Run black formatting check
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python 3.7
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.11

- name: Install Black with latest pip
run: |
Expand All @@ -32,19 +32,19 @@ jobs:

- name: Check formatting with black
run: |
black --line-length 120 --target-version py37 --exclude migrations --check ./api
black --line-length 120 --target-version py311 --exclude migrations --check ./api

tests:
name: Run api tests
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python 3.7
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.11

- name: Install dependencies
run: |
Expand All @@ -53,4 +53,4 @@ jobs:

- name: Run tests
run: |
cd ./api && pytest
ENVIRONMENT=test DJANGO_SETTINGS_MODULE=seismic_site.settings.test ./api/manage.py test
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- 'main'
tags:
- 'v*'

name: Build Docker image

jobs:

build-backend-amd64:
name: backend/amd64
uses: code4romania/.github/.github/workflows/build-push-image.yml@main
with:
images: ghcr.io/code4romania/seismic-risc-backend
context: ./
dockerfile: ./docker/dockerfiles/Dockerfile.backend
registry: ghcr.io
secrets:
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}

# disable frontend build for now since we're using Vercel
# build-frontend-amd64:
# name: frontend/amd64
# uses: code4romania/.github/.github/workflows/build-push-image.yml@main
# with:
# images: ghcr.io/code4romania/seismic-risc-frontend
# context: ./client
# dockerfile: ./docker/dockerfiles/Dockerfile.frontend
# registry: ghcr.io
# secrets:
# username: ${{ github.actor }}
# token: ${{ secrets.GITHUB_TOKEN }}
18 changes: 9 additions & 9 deletions .github/workflows/client_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ on:
paths:
- 'client/**.js'
- 'client/package*.json'
- 'client/Dockerfile'
- 'docker/dockerfiles/Dockerfile.frontend*'
- 'docker-compose.yml'
- '.github/workflows/client_pipeline.yml'

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18

- name: Install Node.js dependencies
run: npm install
Expand All @@ -35,15 +35,15 @@ jobs:

tests:
name: Run client tests
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18

- name: Install Node.js dependencies
run: npm install
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
paths:
- 'client/**.js'
- 'client/package*.json'
- 'client/Dockerfile'
- 'docker/dockerfiles/Dockerfile.frontend*'
- 'docker-compose.yml'
- '.github/workflows/client_pipeline.yml'
- '.github/workflows/code-analysis-js.yml'
Expand All @@ -18,7 +18,7 @@ on:
jobs:
analyze_js:
name: Analyze code
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand All @@ -27,14 +27,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
11 changes: 5 additions & 6 deletions .github/workflows/codeql-analysis-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
paths:
- 'api/**.py'
- 'api/requirements*.*'
- 'api/Dockerfile'
- 'docker/dockerfiles/Dockerfile.backend*'
- 'docker-compose.yml'
- '.github/workflows/api_pipeline.yml'
- '.github/workflows/code-analysis-py.yml'
Expand All @@ -18,7 +18,7 @@ on:
jobs:
analyze_py:
name: Analyze code
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand All @@ -27,15 +27,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}


- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
21 changes: 0 additions & 21 deletions .github/workflows/deploy_staging.yml

This file was deleted.

Loading
Loading