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

Open
wants to merge 11 commits into
base: production
Choose a base branch
from
Open

staging -> production #185

wants to merge 11 commits into from

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.

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.

1 participant