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

staging -> production #185

Merged
merged 13 commits into from
Feb 18, 2025
Merged

staging -> production #185

merged 13 commits into from
Feb 18, 2025

Conversation

jonholdsworth
Copy link

@jonholdsworth jonholdsworth commented Feb 4, 2025

Implements:
CC-2137 NZSL: move signbank to Poetry

Now that we have the databases sync'd between production and UAT, and the same for their S3 buckets, Micky Vale should be able to determine if UAT is functioning safely to her satisfaction.

If she does, and approves this push, this will change production over to using poetry, along with some other fixes.

##JIRA Ticket

[CC-2137 NZSL: move signbank to
Poetry](https://ackama.atlassian.net/browse/CC-2137)

## Changes

- `requirements.*` files removed
- `pyproject.toml` and `poetry.lock` added
- unpinned all dependencies
- added `depends_on` and `healthcheck` to `docker-compose.yml` to avoid
database race condition on local dev
- exposed port `5432` on local dev
- `0.0.0.0` added to `DEFAULT_ALLOWED_HOSTS`
Fix reversion that was preventing important functions working, eg. new
gloss.

## JIRA Ticket
[CC-2137 NZSL: move signbank to
Poetry](https://ackama.atlassian.net/browse/CC-2137)

## Changes
- `ugetttext` is back to being `gettext`

## Notes
This was changed at some point in `django/utils/translation`, with
effect the interim measure (required at one point during phased
upgrades) of aliasing the two calls together stopped working
Micky Vale was still getting errors on UAT when she tried to create a
new Gloss.
This should hopefully fix this.

## JIRA Ticket
[CC-2137 NZSL: move signbank to
Poetry](https://ackama.atlassian.net/browse/CC-2137)

## Changes
- `GlossVideo` method `rename_video()` uses `name` instead of `path`
from `storage`, see Notes below

## Notes
- A Stack Overflow that describes the `path` / `name` issue:
https://stackoverflow.com/a/69135593
## Jira Ticket

[CC-2137 NZSL: move signbank to
Poetry](https://ackama.atlassian.net/browse/CC-2137)

## Changes

- This restores the exact package versions from the original
`requirements.txt`
Changing `docker-compose` to `docker compose`, as the former is no
longer supported anywhere including Travis.
Leaving OSV warnings as they will be addressed by other PRs soon enough.
@jonholdsworth
Copy link
Author

Couple of OSVs that are probably worth addressing while we're waiting.

While these should be patchable, currently we're in the process of
trying to get another deployment out so for now lets just ignore them
This means that GitHub will be able to track deployments, and in turn we
should start getting these properly logged in Mahi.

As part of this, I've introduced a new `tests` job that handles running
the test suite, and made it a requirement that both that job and the
auditing job pass before a deployment will happen; I will handle
formatting and security hardening in a follow up PR
@jonholdsworth
Copy link
Author

Micky has approved this push. Please review.

@jonholdsworth jonholdsworth merged commit feaaf32 into production Feb 18, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants