Skip to content

1.0.0.2#5

Merged
ONyklicek merged 5 commits into
1.0.xfrom
1.0.0.2
May 30, 2026
Merged

1.0.0.2#5
ONyklicek merged 5 commits into
1.0.xfrom
1.0.0.2

Conversation

@ONyklicek
Copy link
Copy Markdown
Owner

No description provided.

@ONyklicek ONyklicek merged commit 34d2286 into 1.0.x May 30, 2026
24 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae56d67349

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// For main table — resolve the in-memory record set per scope.
$inMemoryRecords = match ($scope) {
'page' => $this->getTableRecords(),
'selection' => $this->getSelectedRecords(),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use aggregate-aware records for selection summaries

When the footer is switched to selection, this path fetches selected rows via getSelectedRecords(), which uses the raw table query instead of buildTableQuery(). For aggregate columns such as Column::make('items_total')->sums('items', 'line_total')->summarizeSum(), the selected models therefore lack the items_sum_line_total attribute that HasSummary plucks, so selection totals render as empty/0 even though page/query scopes work.

Useful? React with 👍 / 👎.


// Fast path: sub-rows were eager-loaded for the whole page in one query
// (see eagerLoadSubRows). Read from memory instead of querying per parent.
if ($record->relationLoaded($relation)) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Apply sub-row filters before using loaded relations

If the table query or caller already eager-loads the sub-row relation, this fast path returns the loaded collection before the sub-row filter block below can run. In a subRowsFilterable() table backed by a query like Invoice::with('items'), active rows.subRowFilters are ignored for both the displayed children and the show-more count, because relationLoaded() short-circuits the filtered query path.

Useful? React with 👍 / 👎.

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