From 4c93e54c6d505e7cb53227808acc71ac82d3ad5f Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Mon, 5 Oct 2020 16:31:04 -0400 Subject: [PATCH] 0.1.11 --- Changelog.md | 15 ++++++++++++++- app/buoy_barn/settings.py | 4 ++++ app/pyproject.toml | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index b2329154..1ca86845 100644 --- a/Changelog.md +++ b/Changelog.md @@ -8,7 +8,20 @@ Changes: Fixes: -- Catch and handle various 500 errors smarter. +## 0.1.11 - 10/5/2020 + +Changes: + +- Include release version with Sentry init +- Add CodeQL analysis +- Use Pandas and CSV rather than NetCDF > Pandas and NetCDF to retrieve data from ERDDAP servers. +- Update dependencies + - Erddapy from 0.5.3 to 0.7.2 + - Pandas from 0.25.3 to 1.1.3 + +Fixes: + +- Catch and handle various 500 errors during time series update task smarter. - If `nRows = 0` quietly pass. - If the dataset has an end time set, set an end time on the time series to stop fetching it. - Return early from errors to make it easier to read. diff --git a/app/buoy_barn/settings.py b/app/buoy_barn/settings.py index 9a9d185e..625c0ae2 100644 --- a/app/buoy_barn/settings.py +++ b/app/buoy_barn/settings.py @@ -17,6 +17,7 @@ from sentry_sdk.integrations.celery import CeleryIntegration from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.redis import RedisIntegration +import toml logger = logging.getLogger(__name__) @@ -26,10 +27,13 @@ if os.environ.get("DJANGO_ENV", "").lower() != "test": try: + pyproject = toml.load("pyproject.toml") + version = pyproject["tool"]["poetry"]["version"] sentry_sdk.init( dsn=os.environ["SENTRY_DSN"], integrations=[CeleryIntegration(), DjangoIntegration(), RedisIntegration()], environment="dev" if DEBUG else "prod", + release=version, ) logger.info("Sentry initialized") except KeyError: diff --git a/app/pyproject.toml b/app/pyproject.toml index f8b50180..4bf019b3 100644 --- a/app/pyproject.toml +++ b/app/pyproject.toml @@ -1,7 +1,7 @@ [tool] [tool.poetry] name = "buoy_barn" -version = "0.1.10" +version = "0.1.11" description = "NERACOOS lightweight API sitting in front of ERDDAP" authors = ["Alex Kerney "]