Commit graph

64 commits

Author SHA1 Message Date
Peter Goodhall
2cb8d62860 Add gridsquare prefix index and optimizations
Bump migration version and add a new migration (246) to create/drop a 4-char prefix index on COL_GRIDSQUARE to speed LIKE queries; migration 245 now also drops the prefix index if present. Add Stations::user_owns_station and use it in Logbookadvanced_model to avoid N+1 station lookups. Add caching to Logbooks_model::list_logbook_relationships to prevent redundant queries. Optimize Oqrs_model queries to select only needed columns for several methods. Add Stats::getUniqueCallsignsConsolidated to combine multiple unique-callsign groupings into a single set of queries for better performance. Database debug toggles added where appropriate.
2026-02-11 11:09:39 +00:00
Peter Goodhall
1d51b608ae Use direct lotw_users joins instead of subqueries
Replace repeated LEFT OUTER JOIN (SELECT callsign, MAX(lastupload) ...) derived-table joins with simpler LEFT JOIN lotw_users lotw across Distances_model, Logbook_model, Logbookadvanced_model, and Worked_all_britain_model. Also remove an unnecessary DISTINCT/inner station_profile join from an optimized Logbook_model subquery. These changes simplify SQL emitted by the CI query builder, improve compatibility and readability, and may improve performance; note that using direct joins can change which lastupload row is returned if multiple lotw_users rows exist for a callsign.
2026-02-11 10:50:22 +00:00
Peter Goodhall
7bdd3386b7 Use latest LoTW upload per callsign in joins
Replaces direct joins to lotw_users with subqueries that select the latest (MAX) lastupload per callsign in Distances_model, Logbook_model, and Logbookadvanced_model. This ensures only the most recent LoTW upload per callsign is joined, improving data accuracy and preventing duplicate join results.
2025-12-02 22:47:19 +00:00
Peter Goodhall
63ec8ff1c4 Add bulk satellite assignment to logbook entries
Introduces functionality to assign satellite information to multiple QSOs in Logbook Advanced. Adds controller and model methods for updating satellite data, a new view for satellite selection, and corresponding frontend logic to handle user interaction and update selected entries.
2025-11-07 15:28:18 +00:00
Peter Goodhall
ec1f2d8ddd Add station location selection to Logbook Advanced
Introduces the ability to view and change the station location for selected QSOs in Logbook Advanced. Updates backend, frontend, and QSO model to support station location display and modification, including new UI elements and AJAX handlers. Removes SimpleFLE documentation file.
2025-11-06 11:00:44 +00:00
Peter Goodhall
a124f25837 Add gridsquare validation to prevent placeholder values
Introduces the isValidGridsquare() method to reject obvious invalid or placeholder gridsquare values (e.g., AA00AA, JJ00JJ) when updating QSO data from callbook information. This ensures only valid gridsquares are stored, improving data quality.
2025-11-05 16:19:28 +00:00
Peter Goodhall
cc3d728a1d Improve result limits and defaults in logbook and OQRS
Added validation and default values for result limits in Logbookadvanced_model and Oqrs_model to prevent invalid or empty limits. Updated views to set default selected options for result limits in logbook advanced and OQRS request pages. Also fixed SQL order by column alias typos in Logbookadvanced_model.
2025-10-11 10:27:47 +01:00
Peter Goodhall
76f002b214 Revert "Add debug output and refactor queries for LoTW and logbook"
This reverts commit 4cad75be43.
2025-10-11 00:11:46 +01:00
Peter Goodhall
4cad75be43 Add debug output and refactor queries for LoTW and logbook
Added extensive debug output and error handling to LoTW upload and download processes for easier troubleshooting. Refactored SQL queries in Logbook_model and Logbookadvanced_model to simplify and optimize data retrieval, replacing subqueries with more direct joins and query builder usage. Removed migration 217_add_performance_indexes.php.
2025-10-11 00:08:03 +01:00
Peter Goodhall
2a835fea1f Optimize QSO queries with subqueries and improved joins
Refactored SQL queries in Logbook_model and Logbookadvanced_model to use subqueries for filtering and pagination, improving performance and accuracy. Updated joins and selected fields for consistency and to avoid duplicate results, especially when limiting and ordering large datasets.
2025-10-10 23:04:21 +01:00
Peter Goodhall
d53a17faa5 Advanced search - Fixes issue with some modes missing 2024-11-27 13:49:02 +00:00
int2001
6af065185e
Also do not overwrite VIA when clicking green Button 2023-12-14 07:44:36 +00:00
int2001
03c92a9683
Added Operator to Table/Quicksearch/Search 2023-12-04 13:21:59 +00:00
HB9HIL
ba63e5f6db Merge remote-tracking branch 'upstream/dev' into bootstrap_5 2023-11-24 12:14:10 +01:00
phl0
a2f1e4f603
Concat QSO IDs in PHP rather than SQL 2023-11-23 20:43:45 +01:00
HB9HIL
2d0dda8fb7 datetimepicker filter lba 2023-11-17 17:24:24 +01:00
int2001
c602dab260
Fixes Bug, when dupes isn't set 2023-10-19 04:56:45 +00:00
int2001
2660aba8ea
Small bugfix if no dupe is found 2023-10-17 12:23:40 +00:00
int2001
1d33c5d938
Maintable as var 2023-10-17 10:23:51 +00:00
int2001
cf084f577c
DupeSearch Lang & PHP-Logic 2023-10-17 10:14:10 +00:00
HB9HIL
44631e64b3 Typo 2023-10-04 16:01:45 +02:00
HB9HIL
8831a0c9f0 Removed unnecessary changes 2023-10-04 14:46:18 +02:00
HB9HIL
ff9f925c08
searchCriteria QSL Sent/Received Method 2023-10-04 13:40:43 +02:00
HB9HIL
7e3cd2f5ae
Add new Filter 2023-10-04 10:48:32 +02:00
HB9HIL
5aa0b48e68
Add new Filter 2023-10-04 10:46:34 +02:00
HB9HIL
803b0d06bd
Add new Filter 2023-10-04 10:40:18 +02:00
HB9HIL
fa3d024720
Add new Filter 2023-10-04 09:27:28 +02:00
HB9HIL
39f90570af
Added new Filter 2023-10-04 01:28:11 +02:00
Peter Goodhall
fbd0ec7ff1 Revert "Update Logbookadvanced_model.php"
This reverts commit f8dc31f20c.
2023-09-07 14:36:07 +01:00
Peter Goodhall
fd99bed5f3 Revert "Update Logbookadvanced_model.php"
This reverts commit 20e13b0031.
2023-09-07 14:36:01 +01:00
Peter Goodhall
20e13b0031 Update Logbookadvanced_model.php 2023-09-07 14:24:43 +01:00
Peter Goodhall
f8dc31f20c Update Logbookadvanced_model.php 2023-09-07 14:08:28 +01:00
Peter Goodhall
3818645f5a Update Logbookadvanced_model.php 2023-09-07 13:54:14 +01:00
Peter Goodhall
331cff4151 removed dxcc just to see if its causing the duplicate rows 2023-09-07 13:53:44 +01:00
Peter Goodhall
e96aa3945d Update Logbookadvanced_model.php 2023-09-07 13:46:15 +01:00
Peter Goodhall
d70f278474 Update Logbookadvanced_model.php 2023-09-07 13:41:51 +01:00
Andreas
f96bc81f73 [Advanced Logbook] Can selects QSOs for map 2023-08-21 14:18:05 +02:00
Andreas
389d9fe06b [Advanced Logbook] Added map that uses the same filters as the search 2023-08-18 20:02:47 +02:00
int2001
e4fa5e0861
Fixed EQSL-Col naming 2023-08-14 04:03:46 +00:00
Andreas
80b4e8f70f [Advanced Logbook] Added filter for QSL images, and slideshow button 2023-08-11 19:13:13 +02:00
phl0
816f58f017
Look alos for QSOs where QSL column is NULL or empty 2023-07-29 18:11:38 +02:00
Andreas
6fc021f14c [Advanced Logbook] Added SOTA, POTA, WWFF searches and refs 2023-07-07 10:03:52 +02:00
Andreas
9d73c30f91 [Advanced Logbook] Added Quickfilter search. Mark one line and click filter button 2023-07-05 09:29:13 +02:00
Andreas
38dee35937 [Advanced Logbook] Added QSL image popup and indicator 2023-06-30 23:36:35 +02:00
Andreas
34c0a925f2 [Advanced Logbook] Added eQSL/LoTW filter and DXCC/CQ/IOTA lookup 2023-06-29 18:59:12 +02:00
Andreas
e2b442d39c [Advanced Logbook] Fixed update query 2023-06-28 09:17:48 +02:00
Andreas
aa139017d9 [Advanced Logbook] Received QSL (direct/bureau) can be set 2023-06-28 08:27:44 +02:00
Andreas
397a60d083 [LoTW] Added table with users. Query to find unconfirmed QSOs and L marking in advanced logbook 2023-05-26 10:38:31 +02:00
phl0
f1c6f4e880
Also allow for SAT name filter with propmode SAT 2023-05-08 20:27:53 +02:00
Andreas
ddca0a4fe7 [Advanced Logbook] Fixed sort order when exporting ADIF 2023-05-02 20:53:29 +02:00