Skip to content

Commit

Permalink
chore: Add workflow to trigger deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Jan 10, 2025
2 parents a593c4d + 1afd2ad commit 4023715
Show file tree
Hide file tree
Showing 15 changed files with 622 additions and 505 deletions.
21 changes: 15 additions & 6 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,27 @@

## Description

Please include a succinct summary of the change and which issue is fixed or which feature is introduced.
Please include a succinct summary of the change and which issue is fixed or which feature is introduced.

Please also include relevant motivation and context if possible.

Closes # (issue) if applicable.

## Type of change
## Related Issue

Link to the related issue: [Issue #](URL)

You can remove this section if not applicable.

## Type of Change

Please delete options that are not relevant to this PR.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Style change (non-breaking change which updates the styling of the UI)
- [ ] Locale/Language change (updates or additions to language files or available languages)

## How Has This Been Tested?

Expand All @@ -25,12 +33,13 @@ Please delete options that are not relevant to this PR.

- [ ] I have performed a self-review of my own code
- [ ] My changes do not introduce any new warnings or errors
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added tests that prove my fix is effective or that my feature works (where applicable)
- [ ] New and existing tests pass locally with my changes
- [ ] I have used translation helpers and provided translations (where appropriate)
- [ ] I have used translation helpers and provided translations (where applicable)
- [ ] I have run code quality tools (e.g., linters) and addressed any issues

## Screenshots (if applicable):

## Additional context
## Additional Context

Add any other context or screenshots about the pull request here. Can remove this section if not necessary.
Add any other context or screenshots about the pull request here. You can remove this section if not necessary.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.0
1.10.2
12 changes: 11 additions & 1 deletion app/Livewire/BackupTasks/Tables/IndexTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,17 @@ private function getFilteredQuery(): Builder
}

if ($this->search !== '') {
$query->where('label', 'like', "%{$this->search}%");
$connection = config('database.default');
$driver = config("database.connections.{$connection}.driver");

if ($driver === 'pgsql') {
// Use ilike for PostgreSQL to make the search case-insensitive
$query->where('label', 'ilike', "%{$this->search}%");
} else {
// TODO: Investigate approaches like 'ilike' in other engines to improve the experience.
// Use like for other database engines
$query->where('label', 'like', "%{$this->search}%");
}
}

return $query->orderByRaw('favourited_at IS NULL')
Expand Down
Loading

0 comments on commit 4023715

Please sign in to comment.