Sha256: 219171a08b28b0282cb6bc230878706cf8c7a4303a273c7ca8ad9acc92aacca7

Contents?: true

Size: 1.94 KB

Versions: 1

Compression:

Stored size: 1.94 KB

Contents

## [Unreleased]

## [0.3.1] - 2025-01-14
### Fixed
- Fixed circular dependency handling in RecordCollector to correctly limit record collection
  - Moved prevention logic earlier in the collection process to stop circular dependencies before record collection
  - Improved tracking of visited associations for more accurate prevention
  - Added better logging for dependency prevention decisions
  - Fixed test case for circular dependency prevention in nested associations

## [0.3.0] - 2025-01-13
### Added
- **Polymorphic Association Support**:
  - RecordCollector now supports tracking and collecting records from polymorphic associations.
  - Polymorphic `belongs_to`, `has_many`, and `has_one` associations are automatically detected and processed during data collection.
  - Added tracking for polymorphic types in `@collection_stats` to provide detailed insights into polymorphic relationships.
  - Graceful handling of missing records in polymorphic associations using error logging.

### Fixed
- Improved error handling for `ActiveRecord::RecordNotFound` exceptions when loading polymorphic associations.
- Correctly initializes and updates association statistics for polymorphic associations in `@collection_stats`.

## [0.2.1] - 2025-01-13
### Fixed
- Fixed JSONB field handling to output '{}' instead of empty string for blank values
- Added test coverage for JSONB field handling in PgDumpGenerator

## [0.2.0] - 2025-01-13
### Added
- New preset system for managing different test data configurations
- Added `preset`, `use_preset`, and `with_preset` methods for configuration
- Support for multiple named configuration presets
- Added documentation for using presets
- New PresetConfig class to handle preset-specific configurations

### Changed
- Refactored Configuration class to use preset-based approach
- Moved configuration methods into PresetConfig class
- Updated documentation with preset usage examples and best practices

## [0.1.0] - 2025-01-11
- Initial release

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
real_data_tests-0.3.1 CHANGELOG.md