Skip to content

V11: Remove "Fake" Query#1853

Open
luke-hill wants to merge 6 commits intomainfrom
v11/remove_fake_query
Open

V11: Remove "Fake" Query#1853
luke-hill wants to merge 6 commits intomainfrom
v11/remove_fake_query

Conversation

@luke-hill
Copy link
Copy Markdown
Contributor

Description

Each merged PR here will slowly begin to isolate and remove the fake query objects

Type of change

Please delete options that are not relevant.

  • Refactoring (improvements to code design or tooling that don't change behaviour)
  • New feature (non-breaking change which adds new behaviour)
  • Breaking change (will cause existing functionality to not work)

Please add an entry to the relevant section of CHANGELOG.md as part of this pull request.

Checklist:

Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.

  • Tests have been added for any changes to behaviour of the code
  • New and existing tests are passing locally and on CI
  • bundle exec rubocop reports no offenses
  • RDoc comments have been updated
  • CHANGELOG.md has been updated

Comment thread lib/cucumber/formatter/message_builder.rb Outdated
* Replace the 2 instances of `@test_case_by_step_id`

* Add note for iVar removal

* Avoid fully the use of the fake query private method by relying entirely on the repository data;

* Add redudancy warnings;

* Remove redundancies

* Tidy up code

* Revert minor change to make tests pass

* Fix up naming conventions

* Add notes / trace for where to look next to try triage

* WIP always select the test case started message with the largest attempt counter when multiple exist

* Remove all placeholders
* Add fake query constant to generate new way of calculating attempts

* Switch attempts and initial test case started over to new system, commenting out old code

* Cleanup of boilerplate placeholder code

* Remove fake query and spec for test_case_started_by_test_case

* WIP

* WIP 2

* Remove duplicate method call that should be :no_op

* Refactor and remove fake query step that can be a :no_op

* Switch out the test_case_started_id method to use the refactored one from previous PR

* For test case started events, we always need to ensure the current test case started id is newly generated and not fetched

* Add note for new id generation
* WIP derive the id for final missing item - test_case_started_id when calling on_test_case_finished handler

* Remove `_new` suffix

* Remove private method now its no longer used

* Re-order methods
@luke-hill luke-hill force-pushed the v11/remove_fake_query branch from db60cc6 to d2d763d Compare April 24, 2026 01:28
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.

1 participant