- Mar 04, 2024
-
-
Dmitrii Unterov authored
-
- Aug 10, 2023
-
-
Dr Rich Wareham authored
Back-port the recent changes from identity system. Specifically: * Poetry is now used to manage dependencies. (See below for how we keep the poetry.lock fresh.) * The compose/ directory, and associated shell scripts, have been removed in favour of more modern docker compose features. * Helper poe tasks have been added to start the application, run migrations, etc. * The production container no longer runs migrations when it starts. Our gcp-cloud-run-app terraform module now supports "pre-deploy jobs" which can be used to run migrations at deploy time. * Pytest now manages the django database via Docker. This increases the flexibility w.r.t. running tests on the host versus within a container. * GitLab CI configuration has been updated to use the common pipeline. In the fullness of time, webapp.gitlab-ci.yml may be moved into the common CI template repo. * The API Gateway emulator is included and pre-configured. This isn't made optional because it is entirely transparent if the application doesn't make use of it. * One can now generate "pure" API applications without a TypeScript UI or the ui model. * Pre-commit checks have been added. * There is one Dockerfile which builds various flavours of image using multi-stage builds. * The doc/ directory has been removed since, empirically, no-one ever read that documentation, published the sphinx site or updated it. We need to determine what developer documentation would actually be _useful_ at some later point. The test suite has been updated to run the pre-commit checks in the generated template along with checking that the tox test suite passes in the generated template. We have a bit of a complexity multiplication going on with the various "optional" bits of the template. I've decided that I don't want to add _more_ axes of variation and so I've replaces the "use ucamlookup" option with "include UI" so we keep our existing 2 options. These are now: - "Has UI" versus "pure API" - "Respects X-Forward-Protocol" versus "ignores X-Forward-Protocol" The reason to keep these small is that the test suite has been updated in this commit to try and run pre-commit checks and tox for: - The default configuration - Disabling UI - Disabling Respects X-Forward-Protocol Adding more options would make that test matrix grow quite large. Adding ucamlookup is a pretty straight-forward process and is no more complex than adding any other django support module we may want for a particular application. Some quality of life improvements have been added to the cookiecutter template: - The poetry.lock file is generated when the boilerplate is created. This means that we at least start life with a fresh set of dependencies. It also means we don't need to maintain a poetry.lock file in this repo. - If the boilerplate is not being created into an existin git repository, a new one is created and the boilerplate output is added as the first commit. The auto-commit is intended to make it easier to have the "initial functionality" MR when starting a new project. One can commit the boilerplate output directly to main and have a MR containing _just_ the changes from the boilerplate. Closes #80
-
- Apr 17, 2023
-
-
Daniel Ball authored
-
- Jan 23, 2020
-
-
Rob Bricheno authored
-
- Jan 22, 2020
-
-
- Nov 08, 2019
-
-
Robin Goodall authored
-
- Jul 26, 2019
-
-
Robin Goodall authored
-
- Jul 04, 2019
-
-
- Apr 08, 2019
-
-
Dr Abraham Martin authored
-
- Apr 01, 2019
-
-
Dr Rich Wareham authored
Enabling support for the X-Forward-... headers in all cases is dangerous. Make it an option defaulting to "off".
-
- Mar 15, 2019
-
-
Closes #36
-
- Mar 10, 2019
-
-
Add in django-ucamlookup which is simpler to use than lookupproxy if we're deploying in-house. Since lookup required extra configuration to use from outside of the CUDN, we make it opt-in.
-
- May 18, 2018
-
-
Dr Rich Wareham authored
-
- Apr 19, 2018
-
-
Dr Rich Wareham authored
-
- Apr 18, 2018
-
-
Dr Rich Wareham authored
Move existing files into a new cookiecutter template directory and fix up the existing templating in doc/conf.py to allow cookiecutter to generate a directory from these files.
-
- Jan 19, 2018
-
-
Dr Rich Wareham authored
doc/Makefile is no longer present in this template so remove it from the README.
-
- Jan 18, 2018
-
-
Dr Abraham Martin authored
-
- Jan 10, 2018
-
-
Dr Abraham Martin authored
-
Dr Abraham Martin authored
-