Skip to content

Commit

Permalink
Remove newrelic (#3674)
Browse files Browse the repository at this point in the history
  • Loading branch information
wozniakpl authored Mar 5, 2024
1 parent 44dc14e commit b3b9d56
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 237 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
from datetime import datetime, timedelta
from tempfile import NamedTemporaryFile
from typing import TYPE_CHECKING, List
from typing import TYPE_CHECKING, List, Tuple

from django.conf import settings
from django.contrib.postgres.aggregates.general import ArrayAgg
Expand Down Expand Up @@ -815,7 +815,7 @@ def _add_headers(self) -> None:
self.ws_report.append(headers_row)

def _add_rows(self) -> int:
get_row_methods = GenerateReportService.ROW_CONTENT_METHODS[self.report.report_type]
get_row_methods: Tuple = GenerateReportService.ROW_CONTENT_METHODS[self.report.report_type]
all_instances = get_row_methods[0](self.report)
self.report.number_of_records = all_instances.count()
number_of_columns_based_on_set_headers = len(GenerateReportService.HEADERS[self.report.report_type])
Expand Down
1 change: 0 additions & 1 deletion backend/hct_mis_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@
"saunihopetrn.blob.core.windows.net",
"saunihopeprd.blob.core.windows.net",
"gov-bam.nr-data.net",
"js-agent.newrelic.com",
"cdn.jsdelivr.net",
"cdnjs.cloudflare.com",
"unpkg.com",
Expand Down
202 changes: 0 additions & 202 deletions backend/newrelic.ini

This file was deleted.

28 changes: 0 additions & 28 deletions backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ ipython = "^8.4.0"
jedi = "^0.18.1"
jmespath = "^1.0.1"
natural-keys = "^2.0.0"
newrelic = "^8.4.0"
openpyxl_image_loader = "^1.0.5"
phonenumbers = "^8.12.49"
pillow = "^10.2.0"
Expand Down
4 changes: 1 addition & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ wait_for_db() {
}

if [ $# -eq 0 ]; then
export NEW_RELIC_CONFIG_FILE=/code/newrelic.ini
export NEW_RELIC_ENVIRONMENT=$ENV
exec newrelic-admin run-program gunicorn hct_mis_api.wsgi -c /code/gunicorn_config.py
exec gunicorn hct_mis_api.wsgi -c /code/gunicorn_config.py
else
case "$1" in
"dev")
Expand Down

0 comments on commit b3b9d56

Please sign in to comment.