FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
  1. Mar 04, 2024
  2. Aug 10, 2023
    • Dr Rich Wareham's avatar
      feat: backport changes from identity-system · e9ce06f6
      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
      e9ce06f6
  3. Apr 17, 2023
  4. Jan 23, 2020
  5. Jan 22, 2020
  6. Nov 08, 2019
  7. Jul 26, 2019
  8. Jul 04, 2019
  9. Apr 08, 2019
  10. Apr 01, 2019
  11. Mar 15, 2019
  12. Mar 10, 2019
    • Dr Rich Wareham's avatar
      add django-ucamlookup integration · 10dafa1b
      Dr Rich Wareham authored and Dr Rich Wareham's avatar Dr Rich Wareham committed
      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.
      10dafa1b
  13. May 18, 2018
  14. Apr 19, 2018
  15. Apr 18, 2018
  16. Jan 19, 2018
  17. Jan 18, 2018
  18. Jan 10, 2018
Loading