Remove dead lib/aethyr/event_sourcing/ directory #37

Closed
opened 2026-03-14 23:54:56 +00:00 by freemo · 1 comment
Owner

Metadata

  • Commit Message: refactor(event-sourcing): remove duplicate event sourcing directory
  • Branch: feature/m1-v12-remove-duplicate-es

Background

lib/aethyr/event_sourcing/ contains configuration.rb and immudb_event_store.rb which are never required by any code. They are a duplicate implementation that was superseded by the consolidation work.

Expected Behavior

The lib/aethyr/event_sourcing/ directory and its contents are removed. Only lib/aethyr/core/event_sourcing/ remains.

Acceptance Criteria

  • lib/aethyr/event_sourcing/configuration.rb deleted
  • lib/aethyr/event_sourcing/immudb_event_store.rb deleted
  • lib/aethyr/event_sourcing/ directory deleted
  • lib/aethyr/event_store_stats.rb updated if it references the removed files
  • No remaining references to Aethyr::EventSourcing::Configuration or Aethyr::EventSourcing::ImmudbEventStore

Subtasks

  • Delete lib/aethyr/event_sourcing/ directory
  • Grep codebase for references to removed classes, update or remove
  • Tests: Run bundle exec rake unit, fix any errors

Definition of Done

This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.

## Metadata - **Commit Message**: `refactor(event-sourcing): remove duplicate event sourcing directory` - **Branch**: `feature/m1-v12-remove-duplicate-es` ## Background `lib/aethyr/event_sourcing/` contains `configuration.rb` and `immudb_event_store.rb` which are never required by any code. They are a duplicate implementation that was superseded by the consolidation work. ## Expected Behavior The `lib/aethyr/event_sourcing/` directory and its contents are removed. Only `lib/aethyr/core/event_sourcing/` remains. ## Acceptance Criteria - [x] `lib/aethyr/event_sourcing/configuration.rb` deleted - [x] `lib/aethyr/event_sourcing/immudb_event_store.rb` deleted - [x] `lib/aethyr/event_sourcing/` directory deleted - [x] `lib/aethyr/event_store_stats.rb` updated if it references the removed files - [x] No remaining references to `Aethyr::EventSourcing::Configuration` or `Aethyr::EventSourcing::ImmudbEventStore` ## Subtasks - [x] Delete `lib/aethyr/event_sourcing/` directory - [x] Grep codebase for references to removed classes, update or remove - [x] Tests: Run `bundle exec rake unit`, fix any errors ## Definition of Done This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.
freemo added this to the v1.2.0 milestone 2026-03-14 23:54:56 +00:00
freemo self-assigned this 2026-03-15 04:25:22 +00:00
freemo modified the milestone from v1.2.0 to v1.0.0 2026-03-15 23:19:34 +00:00
Author
Owner

Implementation Notes

Changes Made

  1. Deleted lib/aethyr/event_sourcing/ directory — removed configuration.rb (168 lines) and immudb_event_store.rb (414 lines), the duplicate implementations superseded by lib/aethyr/core/event_sourcing/.

  2. Deleted tests/unit/event_sourcing_configuration.feature (128 lines) — this feature file exclusively tested Aethyr::EventSourcing::Configuration, the removed duplicate class.

  3. Deleted tests/unit/step_definitions/event_sourcing_configuration_steps.rb (255 lines) — step definitions for the above feature.

  4. Updated tests/unit/immudb_event_store.feature — removed the first 194 lines of scenarios that tested Aethyr::EventSourcing::ImmudbEventStore (the duplicate). Retained all 52 core scenarios testing Aethyr::Core::EventSourcing::ImmudbEventStore.

  5. Updated tests/unit/step_definitions/immudb_event_store_steps.rb — removed ~736 lines of duplicate-class-specific code (Prometheus stubs, Sequent stubs, mock builders, and step definitions). Retained all core event store step definitions and infrastructure.

Verification

  • lib/aethyr/event_store_stats.rb was inspected and does not reference the removed files/classes (only references event_sourcing_enabled config key).
  • Full codebase grep for Aethyr::EventSourcing::Configuration, Aethyr::EventSourcing::ImmudbEventStore, aethyr/event_sourcing/configuration, and aethyr/event_sourcing/immudb_event_store returns zero results.
  • The core event sourcing directory lib/aethyr/core/event_sourcing/ is untouched.

Test Results

  • immudb_event_store.feature: 52 scenarios, 198 steps — all passed
  • rubocop: No new offenses introduced (pre-existing Ruby 2.4 parser warnings unchanged)
  • Net deletion: 1,885 lines removed, 6 lines added

Summary

  • 6 files changed, 6 insertions(+), 1,885 deletions(-)
  • 2 source files deleted, 2 test files deleted, 2 test files updated
## Implementation Notes ### Changes Made 1. **Deleted `lib/aethyr/event_sourcing/` directory** — removed `configuration.rb` (168 lines) and `immudb_event_store.rb` (414 lines), the duplicate implementations superseded by `lib/aethyr/core/event_sourcing/`. 2. **Deleted `tests/unit/event_sourcing_configuration.feature`** (128 lines) — this feature file exclusively tested `Aethyr::EventSourcing::Configuration`, the removed duplicate class. 3. **Deleted `tests/unit/step_definitions/event_sourcing_configuration_steps.rb`** (255 lines) — step definitions for the above feature. 4. **Updated `tests/unit/immudb_event_store.feature`** — removed the first 194 lines of scenarios that tested `Aethyr::EventSourcing::ImmudbEventStore` (the duplicate). Retained all 52 core scenarios testing `Aethyr::Core::EventSourcing::ImmudbEventStore`. 5. **Updated `tests/unit/step_definitions/immudb_event_store_steps.rb`** — removed ~736 lines of duplicate-class-specific code (Prometheus stubs, Sequent stubs, mock builders, and step definitions). Retained all core event store step definitions and infrastructure. ### Verification - `lib/aethyr/event_store_stats.rb` was inspected and does **not** reference the removed files/classes (only references `event_sourcing_enabled` config key). - Full codebase grep for `Aethyr::EventSourcing::Configuration`, `Aethyr::EventSourcing::ImmudbEventStore`, `aethyr/event_sourcing/configuration`, and `aethyr/event_sourcing/immudb_event_store` returns **zero results**. - The core event sourcing directory `lib/aethyr/core/event_sourcing/` is untouched. ### Test Results - **immudb_event_store.feature**: 52 scenarios, 198 steps — **all passed** - **rubocop**: No new offenses introduced (pre-existing Ruby 2.4 parser warnings unchanged) - Net deletion: **1,885 lines removed**, 6 lines added ### Summary - 6 files changed, 6 insertions(+), 1,885 deletions(-) - 2 source files deleted, 2 test files deleted, 2 test files updated
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: aethyr/Aethyr#37
No description provided.