diff --git a/.bumpversion.cfg b/.bumpversion.cfg index eef13cf..0492936 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.3.1 +current_version = 0.4.0 commit = True tag = False diff --git a/.llm/log.jsonl b/.llm/log.jsonl index f488b80..1e81c4f 100644 --- a/.llm/log.jsonl +++ b/.llm/log.jsonl @@ -1,2 +1,3 @@ {"timestamp":"2026-02-24T11:30:00Z","session_start":"2026-02-23T00:00:00Z","project_name":"nshm-hazard-graphql-api","project_root":"nshm-hazard-graphql-api","model":"glm-5:cloud","tool":"opencode","duration_min":90,"tokens_in":85000,"tokens_out":25000,"commits":["5057d4c"],"files":{"read":["nshm_hazard_graphql_api/schema/toshi_hazard/gridded_hazard.py","tests/conftest.py","tests/test_gridded_hazard.py","tests/test_gridded_hazard_with_nulls.py","tests/test_gridded_hazard_fix_issue_79.py","tests/test_gridded_hazard_helpers.py","tests/test_hazard_curve_migration.py"],"created":["tests/fixtures/gridded_hazard/DS/"],"modified":["nshm_hazard_graphql_api/schema/toshi_hazard/gridded_hazard.py","tests/conftest.py","tests/test_gridded_hazard.py","tests/test_gridded_hazard_with_nulls.py","tests/test_gridded_hazard_fix_issue_79.py","tests/test_gridded_hazard_helpers.py","tests/test_hazard_curve_migration.py"]},"summary":"Update gridded_hazard for THS 1.4.0: replaced deprecated get_one_gridded_hazard with get_gridded_hazard, updated model attributes (aggr, accel_levels), refactored tests from unittest to pytest style with parquet fixtures","user_notes":"new THS library version"} {"timestamp":"2026-02-25T21:04:56Z","session_start":"2026-02-25T20:22:11Z","project_name":"nshm-hazard-graphql-api","project_root":"nshm-hazard-graphql-api","model":"claude-sonnet-4-6","tool":"opencode","duration_min":43,"tokens_in":0,"tokens_out":0,"commits":["732d6d5","67fb25a","bda10e9"],"files":{"read":["package.json","serverless.yml","pyproject.toml",".env",".env.tests","DEVELOPMENT.md","setup.cfg"],"created":["CLAUDE.md",".yarnrc.yml"],"modified":["DEVELOPMENT.md","serverless.yml",".env.tests","setup.cfg"]},"summary":"Fixed Yarn Berry PnP issue for serverless-wsgi local dev; corrected THS env var names (DATASET_AGGR_ENABLED->THS_DATASET_AGGR_ENABLED); added THS_DATASET_GRIDDED_URI; updated DEVELOPMENT.md with full config reference; removed redundant tox build env","user_notes":"fix env variable, and docs, and remove redundant tox step (build). Tested with graphql locally."} +{"timestamp":"2026-03-02T00:15:00Z","session_start":"2026-03-02T00:00:00Z","project_name":"nshm-hazard-graphql-api","project_root":"nshm-hazard-graphql-api","model":"claude-sonnet-4","tool":"claude-code","duration_min":15,"tokens_in":8500,"tokens_out":1800,"commits":[],"files":{"read":["CHANGELOG.md",".llm/.session"],"created":[],"modified":["CHANGELOG.md"]},"summary":"Updated CHANGELOG.md with version 0.4.0 entry for THS 1.4.2 upgrade and configuration changes","user_notes":"complete missing changelog, memory config"} diff --git a/CHANGELOG.md b/CHANGELOG.md index 259b914..549f557 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [0.4.0] - 2026-03-02 + +### Changed +- Update to toshi-hazard-store 1.4.2 with new gridded API (replaces deprecated get_one_gridded_hazard) +- Rename DATASET_AGGR_* env vars to THS_DATASET_AGGR_* for consistency +- Add THS_DATASET_GRIDDED_URI configuration +- Refactor tests from unittest to pytest with parquet fixtures +- Remove mock-based testing in favor of fixture data + +### Added +- .yarnrc.yml with node-modules linker (fixes serverless-wsgi local dev) +- CLAUDE.md for AI assistant context +- LLM session logging to .llm/log.jsonl + +### Removed +- tox build environment (not needed for serverless deployment) +- test_gridded_hazard_moto.py (no longer needed) + ## [0.3.1] - 2025-11-25 ### Changed diff --git a/nshm_hazard_graphql_api/__init__.py b/nshm_hazard_graphql_api/__init__.py index 485aca0..8bf3fed 100644 --- a/nshm_hazard_graphql_api/__init__.py +++ b/nshm_hazard_graphql_api/__init__.py @@ -2,4 +2,4 @@ __author__ = """GNS Science New Zealand""" __email__ = 'nshm@gns.cri.nz' -__version__ = '0.3.1' +__version__ = '0.4.0' diff --git a/package.json b/package.json index 9e92671..a712a42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nshm-hazard-graphql-api", - "version": "0.3.1", + "version": "0.4.0", "description": "A graphql API for NSHM hazard.", "scripts": { "sls_requirements_1": "serverless requirements clean", diff --git a/pyproject.toml b/pyproject.toml index 624fb4c..84ac9ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nshm-hazard-graphql-api" -version = "0.3.1" +version = "0.4.0" homepage = "https://github.com/gns-science/nshm-hazard-graphql-api" description = "A Grapql API for NZHSM Hazard.." authors = [ diff --git a/serverless.yml b/serverless.yml index b874920..e05133e 100644 --- a/serverless.yml +++ b/serverless.yml @@ -175,7 +175,7 @@ functions: - '/lambda-entrypoint.sh' description: The graphql API of ${self:service} - memorySize: 4096 # optional, in MB, default is 1024 + memorySize: 3008 # was previously 4096, but not currently supported (why not) timeout: 20 # optional, in seconds, default is 6 events: - http: