Skip to content

Conversation

@schtibe
Copy link
Contributor

@schtibe schtibe commented Dec 19, 2024

Creating a release to go on INT

This release

  • contains the first models and endpoints used to get data into service-control.
  • pushes the changes made to the database to a configured cognito pool
  • adds a command to import BOD data into service-control

There are various smaller adjustments made, such as the setup of pytest, superuser creation, ...

Otherwise the file is only created when the venv is deactivated again. As the "pipenv shell" command takes into account what is present in .env, we additionally have the env variables properly set from the start.
 This avoids error "django.core.management.base.CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False." when debugging. Same as in service-stac.
This avoids error "psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 15432 failed: server closed the connection unexpectedly" when debugging. Same as service-stac.
They are produced by "manager.py collectstatic" in "make test-debug".
Created wIth "manage.py startapp distributions". This app is to manage attributions and datasets.
This addresses a warning shown by pylint: "UserWarning: 'BaseException' is not a proper value for the 'overgeneral-exceptions' option. Use fully qualified name (maybe 'builtins.BaseException' ?) instead. This will cease to be checked at runtime when the configuration upgrader is released."
Removed the MetaClass.verbose_name(_plural) because here they merely write out what Django does already by itself (take the class name as lower case, add an "s" for plural).
Unpack dict into arguments. Call output object "actual" to in line with usual naming in unit tests.
msom and others added 25 commits December 10, 2024 15:03
Fix some bugs in the user admin UI and model
The idea is to create a superuser via terraform and share it with SSM to
the cluster. That way we can make sure the user is always existing and
up-to-date with the parameter entry
Add a little command to create or update our superuser
Create superuser with is_staff=True obviously
Create automatci superuser with is_superuser=True
This allows for coverage reports
@github-actions github-actions bot changed the title New Release v0.2.0 New Release v0.2.0 - #minor Dec 19, 2024
@schtibe schtibe merged commit 040b9e7 into master Dec 19, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants