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

DPM 199 Data Hub API logging #5304

Merged

Conversation

marijnkampf
Copy link
Contributor

@marijnkampf marijnkampf commented Mar 28, 2024

Description of change

Change logging to ASIM format.

Checklist

  • Has this branch been rebased on top of the current main branch?

    Explanation

    The branch should not be stale or have conflicts at the time reviews are requested.

  • Is the CircleCI build passing?

General points

Other things to check

  • Make sure fixtures/test_data.yaml is maintained when updating models
  • Consider the admin site when making changes to models
  • Use select-/prefetch-related field lists in views and search apps, and update them when fields are added
  • Make sure the README is updated e.g. when adding new environment variables

See docs/CONTRIBUTING.md for more guidelines.

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.50%. Comparing base (fdb3508) to head (08ff820).

Additional details and impacted files
@@                Coverage Diff                @@
##           migration-deploy    #5304   +/-   ##
=================================================
  Coverage             96.50%   96.50%           
=================================================
  Files                   924      924           
  Lines                 21900    21900           
  Branches               1962     1962           
=================================================
  Hits                  21134    21134           
  Misses                  619      619           
  Partials                147      147           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marijnkampf marijnkampf marked this pull request as ready for review March 28, 2024 13:56
@marijnkampf marijnkampf requested a review from a team as a code owner March 28, 2024 13:56
Copy link
Contributor

@oliverjwroberts oliverjwroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of comments, but looks good to me otherwise.

config/settings/common_logging.py Outdated Show resolved Hide resolved
pandas==2.2.1
# via -r requirements.in
platformdirs==4.2.0
# via virtualenv
pre-commit==3.7.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is pre-commit needed in the normal/non-dev requirements?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I interpret the structure of the requirements.txt correctly pre-commit is required by django-log-formatter-asim

@marijnkampf marijnkampf merged this pull request into migration-deploy Apr 2, 2024
4 checks passed
@marijnkampf marijnkampf deleted the migration/DPM-199-data-hub-api-logging branch April 2, 2024 08:57
marijnkampf added a commit that referenced this pull request Apr 2, 2024
* Change logging to ASIM formatter

* Update common_logging.py
bau123 pushed a commit that referenced this pull request Apr 9, 2024
* Change logging to ASIM formatter

* Update common_logging.py
bau123 pushed a commit that referenced this pull request Apr 9, 2024
* Change logging to ASIM formatter

* Update common_logging.py
marijnkampf added a commit that referenced this pull request May 20, 2024
* Change logging to ASIM formatter

* Update common_logging.py
marijnkampf added a commit that referenced this pull request Jul 1, 2024
* Change logging to ASIM formatter

* Update common_logging.py
cgsunkel pushed a commit that referenced this pull request Jul 15, 2024
* Change logging to ASIM formatter

* Update common_logging.py
cgsunkel added a commit that referenced this pull request Jul 15, 2024
* Update codeowners

* Add sample rate to sentry (#5532)

* Add sample rate to sentry

* Add new action for govpaas branch

* Bump django from 4.2.11 to 4.2.14 (#5536)

Bumps [django](https://github.com/django/django) from 4.2.11 to 4.2.14.
- [Commits](django/django@4.2.11...4.2.14)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add new fields to sentry config (#5537)

* Remove migration actions (#5538)

* Update redis

* Update open search

* Update pingdom end point url

* Feature/dpm 174 data hub api investigate rq health check (#5266)

* Create Command for rq health check and include in docker-compose.yml configuration.

* DPM 199 Data Hub API logging (#5304)

* Change logging to ASIM formatter

* Update common_logging.py

* do not run collectstatic at run time on DBT Platform

* add build configuration for DBT Platform

* remove debug setup

* Migration/DPM 343 Data Hub API application settings (#5340)

* Change DATABASE_URL connection string to DATABASE_CREDENTIALS containing JSON structure.

* update database environment for build job

* Rename reserved environment variables (#5345)

* Debug: DBT Platform

* Debug: metadata hawk authentication

* Debug: DBT Patch

* Debug: test on sector filter

* Debug: Hawk

* Undo debugging

* Fix Flake8 Missing newline between import groups (#5457)

* TET 801 Stop Opensearch addess showing credentials (#5519)

* Stop showing open search credentials on connection error.
* Allow for setting of pool maxsize on open search connection.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Christopher <christopher.sunkel@digital.trade.gov.uk>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lawrence Goldstien <lawrence.goldstein@digital.trade.gov.uk>
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