Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search Flights By Type Rating and Aircraft ICAO Type Code #1881

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

FatihKoz
Copy link
Contributor

@FatihKoz FatihKoz commented Sep 15, 2024

Based on @BossOfGames 's idea and implementation for the usage of whereIn() as a new search criteria [WhereCriteria], I slightly changed his Type Rating based query to improve performance and added Aircraft ICAO Type Code based search capabilities. [FlightRepository]

According to VA settings, both $type_ratings and $icao_codes are built upon user capabilities (restricted settings) or all (relaxed settings). [FlightController]

Added both fields with conditional checks to default theme. [search.blade]

image

Enhances #1879 and provides other changes for this feature to be used with any theme.

Closes #1851

@FatihKoz FatihKoz changed the title Search Flight By Type Rating and Aircraft ICAO Type Code Search Flights By Type Rating and Aircraft ICAO Type Code Sep 15, 2024
Add name to the collection, so it can be used in the search form instead of (or together with) the type code.
Replace `!empty()` with `filled()` , thanks to @PaintSplasher for the test and solution.
@BossOfGames
Copy link
Contributor

This looks fantastic. Thanks for the corrections! Can you amend your PR description to add closes #1851 to your PR so it auto closes the issue on merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants