Skip to content

Conversation

@andrasbacsai
Copy link
Member

@andrasbacsai andrasbacsai commented Nov 27, 2025

Changes

  • Fixed critical bug where is_buildtime field was not unmarshaling from API responses due to JSON tag mismatch
  • Added missing is_runtime and is_shared fields to EnvironmentVariable model
  • Added comprehensive tests with 100% coverage for EnvironmentVariable struct

Testing

  • All tests passing (100% coverage for models, 63.5% for service layer)
  • Added 5 model tests and 3 service tests to validate correct marshaling/unmarshaling
  • Backward compatibility verified with partial response test

fix coollabsio/coolify#7365

Fixed critical bug where is_buildtime field was not unmarshaling from API
responses due to JSON tag mismatch (was expecting 'is_build_time' with
underscore but API returns 'is_buildtime' without underscore). Also added
missing is_runtime and is_shared fields that are present in API responses.

Added comprehensive tests for EnvironmentVariable model and service layer
to ensure proper marshaling/unmarshaling of all fields. Achieved 100%
coverage for EnvironmentVariable struct.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@andrasbacsai andrasbacsai merged commit 2f9dc6e into v4.x Nov 27, 2025
4 checks passed
@andrasbacsai andrasbacsai deleted the fix-env-is-build-time-value branch November 27, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Buildtime environment variables do not persist — UI shows saved but database always false

2 participants