Commit Graph

138 Commits

Author SHA1 Message Date
Klaus Basan
40bc75a98c Ref T164, show (by LED) when consolidating data
* added LED in info bar
* signal in background updater and
* connecting them
2017-09-26 20:15:28 +02:00
Klaus Basan
e932f08547 Ref T161, network watchdog calls ping service 2017-09-25 05:23:58 +02:00
Klaus Basan
ec77f9c64b Ref T160, further formatting 2017-09-25 05:23:57 +02:00
Klaus Basan
dabe50bcfe Ref T160, improved / more detailed info for user-agent in requests
* renamed to getSwiftNetworkRequest (make clear request is tweaked)
* add details to user request
2017-09-25 05:23:56 +02:00
Klaus Basan
bdbf2e75b4 Improved DB reader log messages 2017-09-24 20:29:26 +01:00
Klaus Basan
8c68f2302c Ref T149, improved error message for JsonDatastoreResponse able to catch PHP error messages 2017-09-24 20:29:03 +01:00
Klaus Basan
0cf308450e Ref T149, utility functions for pending URLs
* Do not call read twice in info reader
* Threadsafe utility functions
2017-09-24 20:29:02 +01:00
Klaus Basan
1aa8cfb1e8 Formatting, messages 2017-09-24 20:29:00 +01:00
Klaus Basan
ec8838198f Ref T149, improved HeaderResponse/JsonDatastoreResponse
* request started/received
* moved timestamp logic to Response class, like headerResponse.setValues(nwReply)
2017-09-24 20:28:57 +01:00
Klaus Basan
46d2f2c048 Ref T150, database reader using watchdog
* removed canConnect DB checks, using watchdog
* changed signature to: int requestHeadersOfSharedFiles
* rely on shared working URL from watchdog
2017-09-24 20:28:34 +01:00
Klaus Basan
a6855f1891 Ref T150, network watchdog check accessibility in background
* no need to check elsewhere with canConnect -> processEventsFor
* many checks were redundant (when I can connect the DB, no need to check internet)
* watchdog can also be connected to other read signals, if models are read elsewhere, it means DB is up

Summary: less checks, less calls of canConnect in main thread
2017-09-24 19:54:32 +01:00
Klaus Basan
fe01a9d4aa Formatting, typos 2017-09-24 19:54:28 +01:00
Klaus Basan
17d2243e3f Ref T149, use URL in DB writer 2017-09-24 19:54:24 +01:00
Klaus Basan
b9760b4c60 Ref T149, use URL log to log network access in threaded reader classes
* added getFromNetworkAndLog
* adjusted DB reader
* adjusted other readers
2017-09-24 19:54:23 +01:00
Klaus Basan
a22cd134f8 Formatting 2017-09-24 19:54:16 +01:00
Klaus Basan
a2e888546e Ref T148, database reader extensions
* allow to set severity of failed reading
* get entities with cached data
* removed needsSharedInfoFileLoaded in CDatabaseReaderConfig
2017-09-24 19:54:06 +01:00
Klaus Basan
2a8e2331a3 Return background updater functions when shutting down 2017-09-24 19:53:48 +01:00
Klaus Basan
0dfe6f69fe Minor fixes when reporting T141
* user authenticated must be enabled/valid
* Read only: BlackMisc::CDataReadOnly<BlackCore::Data::TAuthenticatedDbUser>
* clear user fields when not authenticated
2017-09-24 19:53:47 +01:00
Klaus Basan
12db652ccf Ref T125, renaming areAllDataRead => areAllInfoObjectsRead 2017-09-24 19:53:17 +01:00
Klaus Basan
0bbad2ff83 Minor tweaks (found during T125)
* formatting/typos
* authentication: private slots => private
2017-09-24 19:53:10 +01:00
Klaus Basan
f694ded5f2 Preparation of T126: Minor tweaks, renaming and formatting of InfoDataReader
* unified member access (this->m_xy => m_xy)
* set object name of readers
* waitForSharedInfoObjectsThenRead (not just waiting, also reading afterwards)
2017-09-24 19:52:56 +01:00
Klaus Basan
addb008ffa Pass back URLs for changed URL check. This allows to display the changed locations. 2017-09-24 19:52:28 +01:00
Klaus Basan
5a67276fbb Ref T117, utility functions for reader
* isDbModelEqualForPublishing
* getModelForDbKey(int
2017-09-24 19:52:16 +01:00
Klaus Basan
ccdfa8e12f Ref T111, allow to search for location in coordinate form 2017-09-24 19:52:07 +01:00
Klaus Basan
f3847bd33c Ref T121, check if Internet is accessible
* in case the internet provider is down, this is not detected
* extended test to detect if access is possible
* in case of downtime this indicated in status component
2017-09-24 19:51:44 +01:00
Klaus Basan
b1295cd457 Ref T111, added utility functions used for swift plugin (dummy driver)
* new reader functions
* plugin info
2017-09-24 19:51:04 +01:00
Klaus Basan
e72546d282 Ref T109, fix: when starting swift pilot client read mode is "cache + shared info objects"
Comparing with info objects only makes sense when reading shared or from DB
2017-09-24 19:51:01 +01:00
Klaus Basan
dfb6b05e9d Ref T109, datastore object and list
* unified properties in int/string DB objects
* fixed typo dbKeysAsString
2017-09-24 19:50:59 +01:00
Klaus Basan
d64bfcabce Formatting, minor tweaks 2017-09-24 19:50:54 +01:00
Klaus Basan
c276d7cd44 Private slot -> private 2017-09-24 19:50:31 +01:00
Klaus Basan
c81a56bcba Ref T29, allow to read CDbFlags::Shared in background 2017-09-24 19:50:30 +01:00
Klaus Basan
9e4cfca2cc Ref T29, utility function added and flag names adjusted 2017-09-24 19:50:29 +01:00
Klaus Basan
874b517e23 Ref T104, use unified log function
and removed some redundant log messages
2017-09-24 19:50:25 +01:00
Klaus Basan
76b3b6c0b6 Utility function to directly log warning when network not accessible 2017-09-24 19:50:18 +01:00
Klaus Basan
0bfd9a55a2 Ref T105, use timer in base class CContinuousWorker
* remove unused cleanup
* object name set in base class
2017-09-24 19:50:15 +01:00
Klaus Basan
b6b1b96ec4 Ref T105, use new style with threaded readers
* use doWorkCheck
* relaxed doWorkCheck in unit tests
* removed isShuttingDown, gracefulShutdown
* set timer object name (in case something is wrong, we might see the name in the log)
2017-09-24 19:50:08 +01:00
Klaus Basan
2fbd2c6382 Ref T105, modified background updater
* removed gracefulShutdown
* removed isShuttingDown
2017-09-24 19:50:07 +01:00
Klaus Basan
291af98770 Formatting 2017-09-24 19:50:04 +01:00
Klaus Basan
847fcfbb71 Ref T104, return inconsistent airports 2017-09-24 19:50:03 +01:00
Klaus Basan
297c2f0539 Ref T104, return inconsistent aircraft/airline ICAOs codes
- use audit
- and log inconsistent DB entries
2017-09-24 19:50:02 +01:00
Klaus Basan
7168f97b45 Ref T28, fixed issues mentioned in inline review
https://dev.swift-project.org/rSWIFTPILOTCLIENT2f289a4c7e196095e64de78f222e56fd21d80476
2017-09-24 19:49:59 +01:00
Klaus Basan
a1e16ea162 Background updater can be const, only needed "readonly" for UI 2017-09-24 19:49:39 +01:00
Klaus Basan
e2c43a688b Automatically start background updater
Ref T28
2017-09-24 19:49:36 +01:00
Mathew Sutcliffe
fdbfda848f T102 Don't try to wait for a worker to finish while holding a lock
on the mutex that protects its finished flag, as it will deadlock.
2017-09-24 19:49:31 +01:00
Klaus Basan
5aaf5cdeb1 Improved log messages and some typos fixed in DB reader 2017-06-27 20:50:25 +02:00
Mathew Sutcliffe
ff2687fbe9 T66 Check whether it is safe to abandon the worker. 2017-05-14 17:21:36 +01:00
Mathew Sutcliffe
98e67860bc T66 Tidying up CBackgroundDataUpdater startup and shutdown
by overriding the CContinuousWorker virtual methods that exist for this purpose.
2017-05-14 17:21:35 +01:00
Klaus Basan
92472e78a6 Ref T58, consolidation fixes
* override simulator, because values can be removed
* DB simulator has priority
2017-05-09 19:13:42 +02:00
Klaus Basan
9f4f06a436 Ref T28, consolidated reading
* fixed newer parameter
* unified handling of incremental updates
* skip cache update when there was no incremental data
2017-05-05 23:08:09 +01:00
Klaus Basan
f12b69bb87 Ref T28, background updater: consolidate DB and model data in background
* automatically reload DB data
* consolidate models with DB data
2017-05-05 23:07:55 +01:00