Skip to content

refactor(database): flip Builder::pluck() to list-returning, remove lists() (task 2.5d) - #63

Closed
agissept wants to merge 1 commit into
migration/2.5-fork-stackfrom
migration/2.5d-pluck-list-flip
Closed

agissept wants to merge 1 commit into
migration/2.5-fork-stackfrom
migration/2.5d-pluck-list-flip

Conversation

@agissept

Copy link
Copy Markdown
Member

Fork side of the pluck/lists pipeline (task 2.5d). Bagian L42x→L13.

⚠️ Base

Base = migration/2.5-fork-stack (= pre-release/4.2.95 + 2.5a value() [#62] + 2.5e SoftDeletes [#61]), jadi diff PR ini cuma flip pluck-nya. Branch ini yang di-consume app buat task 2.5c (#5830) via composer. Reconciliation ke master ikut alur pre-release (2.5a #62 + 2.5e #61 + ini) — sejalur dengan 2.8/4.2.95.

Perubahan

  • Query\Builder + Eloquent\Builder: pluck($column, $key = null) sekarang return list (array) (body lists() lama); scalar path pindah ke value() (2.5a).
  • Builder::lists() dihapus dari kedua builder. Caller internal di-rewire ke pluck(): Query\Builder::implode(), DatabaseMigrationRepository::getRan(), BelongsToMany (getRelatedIds/getCurrentIds).
  • Support\Collection::lists() dipertahankan (Collection caller di-handle app 2.5c dgn ->all(); cleanup nanti).

Verifikasi

  • Fork suite 1647 tests / 3659 assertions hijau (pluck/lists tests di-update, scalar-pluck tests dihapus—dicover value()).

🤖 Generated with Claude Code

…uilder::lists() (task 2.5d)

Completes the fork side of the pluck/lists pipeline. Query\Builder and
Eloquent\Builder pluck($column, $key = null) now return the list (old lists()
body, an array); the scalar path lives in value() (added in 2.5a). lists() is
removed from both builders. Internal callers rewired: Query\Builder::implode(),
DatabaseMigrationRepository::getRan(), BelongsToMany (getRelatedIds/getCurrentIds)
now use pluck(). Support\Collection::lists() kept (Collection callers convert in
app 2.5c). Fork suite green: 1647 tests / 3659 assertions.

Stacked on migration/2.5-fork-stack (= 4.2.95 + 2.5a value() + 2.5e SoftDeletes);
this branch is what the app pins for task 2.5c.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@agissept

Copy link
Copy Markdown
Member Author

Superseded by #64 (pre-release/4.2.96 → master), yang bundle semua task 2.5 (2.5a value + 2.5e SoftDeletes + 2.5d pluck-flip) sebagai satu release PR untuk deploy. Kode sama; ditutup biar nggak dobel-merge. Histori commit tetap ada di git.

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