Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Guide for AI coding agents working on the Commerce System Demo project.

Commerce System Demo is a FastAPI-based commerce service that provides RESTful APIs for managing products, categories, and implementing search functionality. The project includes built-in observability with OpenTelemetry metrics, logging, and distributed tracing.

**Current Version**: 0.1.1 (following [Semantic Versioning](https://semver.org/))
**Current Version**: 0.1.2 (following [Semantic Versioning](https://semver.org/))

## Setup Commands

Expand Down Expand Up @@ -101,7 +101,7 @@ app/

### Docker

- **Build image**: `docker build -t commerce-system-demo:0.1.1 .`
- **Build image**: `docker build -t commerce-system-demo:0.1.2 .`
- **View Dockerfile**: Includes Python dependencies, migration scripts, and app code
- **Build context**: Includes `scripts/`, `app/`, and `observability/` directories

Expand Down Expand Up @@ -184,7 +184,7 @@ This project follows [Semantic Versioning 2.0.0](https://semver.org/):
- **MINOR**: Backward-compatible new features
- **PATCH**: Backward-compatible bug fixes

Current version is **0.1.1** (initial development). Version is defined in:
Current version is **0.1.2** (initial development). Version is defined in:
- `pyproject.toml` (project metadata)
- `app/main.py` (FastAPI version)
- `app/observability/metrics.py` (meter version)
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Advanced filtering options for product search
- Product images storage optimization

## [0.1.2] - 2026-03-20

### Added

- Unit tests for API handler branches covering success paths and edge cases (test_api_unit.py)
- Service-level tests for category depth limit and cycle detection logic (test_category_service.py)
- Unit tests for observability middleware and metrics emission paths (test_observability.py)
- Concurrent access integration tests for race conditions on SKU and category constraints (test_concurrency.py)

## [0.1.1] - 2026-03-19

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def create_app() -> FastAPI:

app = FastAPI(
title="Commerce System Demo",
version="0.1.1",
version="0.1.2",
lifespan=lifespan,
)
app.router.route_class = ObservabilityRoute
Expand Down
2 changes: 1 addition & 1 deletion app/observability/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from opentelemetry import metrics
from opentelemetry.metrics import Counter, Histogram, UpDownCounter

_meter = metrics.get_meter("commerce-system-demo-observability", version="0.1.1")
_meter = metrics.get_meter("commerce-system-demo-observability", version="0.1.2")

http_request_duration_seconds: Histogram = _meter.create_histogram(
name="commerce_http_request_duration_seconds",
Expand Down
2 changes: 1 addition & 1 deletion app/observability/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _build_resource(settings: Settings) -> Resource:
"""Build OpenTelemetry resource attributes from runtime settings."""
attributes = {
"service.name": settings.otel_service_name,
"service.version": "0.1.1",
"service.version": "0.1.2",
"deployment.environment": settings.otel_environment,
}

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "commerce-system-demo"
version = "0.1.1"
version = "0.1.2"
description = "FastAPI commerce service demo"
readme = "README.md"
requires-python = ">=3.11"
Expand Down
Loading
Loading