Skip to content

Commit

Permalink
0.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
abkfenris committed Oct 5, 2020
1 parent 1b3f27b commit 4c93e54
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 14 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions app/buoy_barn/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion app/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]

Expand Down

0 comments on commit 4c93e54

Please sign in to comment.