Skip to content

Conversation

@Godmartinz
Copy link
Member

@Godmartinz Godmartinz commented Nov 13, 2025

This adjusts the asset model query to search for only deployable or pending and excludes archived assets. Assets have to be requestable as well.
Before under Asset Models:
image
After:
image

The count for macbook pros in this case under assets is the same now:
image

Fixes FD51910

@Godmartinz Godmartinz requested a review from snipe as a code owner November 13, 2025 00:30
'category',
'requests',
'assets' => function ($q) {
$q->where('requestable', 1)
Copy link
Member

Choose a reason for hiding this comment

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

We could probably just use our existing query scopes here btw

@snipe snipe merged commit bd742ae into grokability:develop Nov 13, 2025
8 checks passed
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.

2 participants