Skip to content

Commit dd2f7c2

Browse files
downiecsashakamesrenovate[bot]dependabot[bot]
authored
v1.0.7-beta branch (#454)
* Bumped version number. * Changes to fix wget download issues. (#452) * changes to fix wget download issues: multiple download, direct link handed to browser * Removed uneccessary import Co-authored-by: Sasha Ames <[email protected]> * Update dependency @types/jest to v28.1.6 (#444) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update typescript-eslint monorepo to v5.30.7 (#445) * hotfix to get wget script download to work (#449) (#450) * hotfix to get wget script download to work (#449) * hotfix to get wget script download to work * fix removed return * Updating file to fix minor blank line issue. Co-authored-by: Sasha Ames <[email protected]> * Update typescript-eslint monorepo to v5.30.7 Co-authored-by: Carlos Downie <[email protected]> Co-authored-by: Sasha Ames <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency moment to v2.29.4 [SECURITY] (#443) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Bump terser from 5.12.1 to 5.14.2 in /frontend (#451) Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/commits) --- updated-dependencies: - dependency-name: terser dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump moment from 2.29.2 to 2.29.4 in /frontend (#442) Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4. - [Release notes](https://github.com/moment/moment/releases) - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) - [Commits](moment/moment@2.29.2...2.29.4) --- updated-dependencies: - dependency-name: moment dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Downie <[email protected]> * Feature/453 update deployment configs (#458) * Testing the use of a central config file and a manager script. Created a metagrid_configs folder where different configs can be stored and used. * updates to scripts and dockerfile for traefik to handle empty prefx variables. * More fixes and updates. * Refactoring to fix issues with the variables used in the master config file, so that they don't repeat in the config. Removed unnecessary folders and updated the manage_metagrid script to allow saving and restoring of config files in an automated way. Every time changes are made to the config, a backup will be created which will have date and time associated to it. Users can then restore that backup with a simple command in the script (which will also save the current config that is replaced. Note that if lots of changes are made, config backups should probably be deleted now and then. * Updated script to include sudo that was missing and also copy to traefik when a backup is restored. * updates t the script for local testing. Fixed a docker-compose minor issue in the backend production so it points to correct config file. * Updated the scripts to save environment file in each docker directory. It seems that the frontend uses the package.json build call rather than the one in docker compose, so the environment file was not found when building react. Modifications should help fix that issue. * Added cors proxy variable because it still seems necessary for the backend communication with frontend... * Updates to the metagrid documentation. A restructuring update needs to be done for getting_started_production.md in order to reflect the new way which configuration is setup and updated in production. * Updated manage script to include the option for starting/stopping the docs local containers. Updated django version to 3.2.15 * Updated the documentation to specify the manage_metagrid.sh scripts and how to update the projects. Also updated the configuration steps and how to get production started. * Feature/447 generalize redirects (#465) * redirect test. * Change the order in the server location directive and update the entrypoint to use the new PREVIOUS_URL variable. * Connected environment variables in config to the front-end redirect logic to allow frontend to redirect if a previous url is specified in the config * Updated the manage_metagrid script to not use sudo. Updated the previous url env variable name so that it is useable in the front end. All variables used in the frontend need to be prefixed with REACT_APP_ otherwise they aren't visible and are undefined. Removed the console log statements. * Updated the git ignore files. Attempted to create mock imports for testing the generateRedirects function, however after various attempts and research, found out it would have required a significant rewrite and the test itself is not going to be worth it, so I cleaned up my changes and resorted to using the istanbul ignore. * Feature/459 expand all button facets (#467) * redirect test. * Change the order in the server location directive and update the entrypoint to use the new PREVIOUS_URL variable. * Added expand and collapse functionality to the facet forms. Opened the additional properties panel by default. * Updated tests for full coverage. Updated the joyride tour to include the new expand/collapse button functionality. Co-authored-by: Sasha Ames <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Sasha Ames <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent c239022 commit dd2f7c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+779
-427
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# pytest
55
.pytest_cache/
66

7+
# Config backups
8+
metagrid_configs/backups
79

810
### Linux template
911
*~

.pyup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ label_prs: update
4646
# assign users to pull requests, default is not set
4747
# requires private repo permissions, even on public repos
4848
# default: empty
49-
assignees: tomvothecoder
49+
assignees: downiec
5050

5151
# configure the branch prefix the bot is using
5252
# default: pyup-
File renamed without changes.
File renamed without changes.
File renamed without changes.

backend/.envs/.production/.django.template

Lines changed: 0 additions & 22 deletions
This file was deleted.

backend/.envs/.production/.postgres.template

Lines changed: 0 additions & 5 deletions
This file was deleted.

backend/docker-compose.prod.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- production_postgres_data:/var/lib/postgresql/data
1616
- production_postgres_data_backups:/backups
1717
env_file:
18-
- ./.envs/.production/.postgres
18+
- ./.envs/.prod.env
1919

2020
django:
2121
build:
@@ -28,8 +28,7 @@ services:
2828
depends_on:
2929
- postgres
3030
env_file:
31-
- ./.envs/.production/.django
32-
- ./.envs/.production/.postgres
31+
- ./.envs/.prod.env
3332
ports:
3433
- "5000:5000"
3534
command: /start

backend/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
- local_postgres_data_backups:/backups
1919
- ./docker/local/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
2020
env_file:
21-
- ./.envs/.local/.postgres
21+
- ./.envs/.postgres
2222
ports:
2323
- "5433:5432"
2424

@@ -32,7 +32,7 @@ services:
3232
volumes:
3333
- ./docker/local/keycloak:/opt/jboss/keycloak/imports
3434
env_file:
35-
- ./.envs/.local/.keycloak
35+
- ./.envs/.keycloak
3636
ports:
3737
- "8080:8080"
3838
command: -Dkeycloak.import=/opt/jboss/keycloak/imports/realm-export.json
@@ -50,8 +50,8 @@ services:
5050
volumes:
5151
- .:/app
5252
env_file:
53-
- ./.envs/.local/.django
54-
- ./.envs/.local/.postgres
53+
- ./.envs/.django
54+
- ./.envs/.postgres
5555
ports:
5656
- "8000:8000"
5757
restart: always

backend/metagrid/api_proxy/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,5 @@ def do_request(request, urlbase):
7676

7777
httpresp = HttpResponse(resp.text)
7878
httpresp.status_code = resp.status_code
79-
httpresp.headers = resp.headers
80-
httpresp.encoding = resp.encoding
79+
8180
return httpresp

0 commit comments

Comments
 (0)