Commit Graph

20 Commits

Author SHA1 Message Date
Roardom
bd9f820153 fix: phpstan livewire pagination types 2024-07-09 12:24:34 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
71c5a3ebcb patch: livewire url attributes 2024-03-06 02:02:05 -05:00
HDVinnie
bcc8fd2cc0 Merge pull request #3608 from HDInnovations/Livewire-3
(Update) Livewire 3
2024-03-04 22:53:52 -05:00
HDVinnie
2fa847f6a8 remove: dead code 2024-03-04 16:21:58 -05:00
EkoNesLeg
a53e9041b6 Update AuditLogSearch.php
The change involves the way we handle the `username` filter in our audit logs search.

## Problem

Previously, the `username` filter was applied directly to the query using the `whereRelation` method:

```php
->whereRelation('user', 'username', '=', $this->username)
```

This approach had the limitation that it would always apply the `username` filter, even if `$this->username` was empty or not set.

## Solution

The solution was to use`when` to conditionally apply the `username` filter only when `$this->username` is set and not empty:

```php
->when($this->username, fn ($query) => $query->whereRelation('user', 'username', '=', $this->username))
```

## Expected Result

With this change, the `username` filter in the audit logs search will only be applied when `$this->username` is set and not empty.
2024-03-04 13:50:46 +00:00
HDVinnie
b43c524ff2 PHP Style Change (Laravel Pint CI) 2024-03-04 03:42:21 +00:00
HDVinnie
bde593e48b update: livewire 2024-03-03 22:41:29 -05:00
Roardom
b274347313 refactor: use whereRelation when possible
All changes were tested for performance regressions. None of the included changes were affected. However, the code that uses `whereIn('category_id', Category::select('id')->where('movie_meta', '=', 1)` saw a ~10% performance loss so should not be changed.
2024-03-03 15:56:02 +00:00
Roardom
fe31076104 Reapply "Merge pull request #3380 from Roardom/livewire-types"
This reverts commit b4a9dfea8b.
2024-01-24 08:03:05 +00:00
HDVinnie
b4a9dfea8b Revert "Merge pull request #3380 from Roardom/livewire-types"
This reverts commit a4e1a1bc62, reversing
changes made to 10982c68bd.
2024-01-14 16:18:08 -05:00
Roardom
7037200377 fix: Livewire queryString type hint 2024-01-14 11:35:55 +00:00
Roardom
b6a3917575 fix: add type hints to Livewire computed properties 2024-01-14 11:35:55 +00:00
HDVinnie
656647649f Revert "cleanup: pt.2"
This reverts commit 33d9927abd.
2023-10-12 23:11:20 -04:00
HDVinnie
33d9927abd cleanup: pt.2 2023-10-12 22:41:46 -04:00
HDVinnie
b3f0386149 cleanup: pt.1 2023-10-12 22:30:52 -04:00
HDVinnie
0854104639 update: more tests + sail docker-compose 2023-08-14 12:20:57 -04:00
HDVinnie
2a3ee4a045 remove: dead livewire component function 2023-06-19 10:07:56 -04:00
HDVinnie
e0a9218c4d PHP Style Change (Laravel Pint CI) 2023-05-22 23:53:13 +00:00
HDVinnie
584c6db265 add: audit log searching 2023-05-22 19:52:12 -04:00