Commit Graph

1464 Commits

Author SHA1 Message Date
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
52caf795d1 Renamed function to hasSuccesfullyConnectedSwiftDb() 2017-09-24 20:29:01 +01:00
Klaus Basan
1aa8cfb1e8 Formatting, messages 2017-09-24 20:29:00 +01:00
Klaus Basan
3c97d68430 Ref T149, connect reader signals as Qt::QueuedConnection; 2017-09-24 20:28:59 +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
155d436788 Ref T150, Ref T156 allow using setup reader in unit test 2017-09-24 20:28:48 +01:00
Klaus Basan
fedcd76a05 Ref T156, allow to interactively resolve setup issues
* interactivelySynchronizeSetup
* utility function parseAndSynchronizeSetup, explicit loading of setup
* removed m_startSetupReader;
2017-09-24 20:28:42 +01:00
Klaus Basan
428ba0975c Ref T156, setup reader adjusted
* link with watchdog Ref T150
* allow to disable URL connect checks if setup dialog is used
* refactoring of CSetupReader::parseCmdLineArguments so reparsing is possible
2017-09-24 20:28:37 +01:00
Klaus Basan
a4de52852d Ref T150, use network watchdog with web data services
* removed own checks and use watchdog
* connect with readers to avoid redundant checks
2017-09-24 20:28:35 +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
fdfa2233fb Ref T150, Ref T156 cleaned up setup reader
* grouped functions together if they are based on the same URLs
* renamed functions
* Doxygen comments
2017-09-24 20:28:33 +01:00
Klaus Basan
b20c44a9f3 Ref T150, use watchdog in application
* remove own checks
* use watchdog
* connect watchdog to other readers to avoid redundant checks
2017-09-24 20:28:28 +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
afbf3f05c8 Ref T150, utility functions in URL list
* renamed to withAppendedPath
* findByHost
* addFailed utility functions
2017-09-24 19:54:30 +01:00
Klaus Basan
fe01a9d4aa Formatting, typos 2017-09-24 19:54:28 +01:00
Klaus Basan
6d11ea2435 Unified formatting of member m_XXX 2017-09-24 19:54:27 +01:00
Klaus Basan
dbe66eceb2 Ref T149, get URL logs from web data services 2017-09-24 19:54:26 +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
eab22e86b0 Based on slack discussion, pass arguments from launcher to started application
https://swift-project.slack.com/archives/C04J6J76N/p1504449711000040

* utility functions in CApplication and CNetworkVatlib for cmd args
* a.addVatlibOptions() in launcher
* function CSwiftLauncher::startDetached to unify startup and simplify debugging
2017-09-24 19:54:15 +01:00
Klaus Basan
7c723b8b79 Ref T148, adjusted web data services
* get info about cached entities
* demote error messages if objects are cached
* no longer trigger reads during shutdown
2017-09-24 19:54:12 +01:00
Klaus Basan
b107617f73 Ref T148, formatting/renaming 2017-09-24 19:54:10 +01:00
Klaus Basan
961f47b700 Ref T148, renamed/added hasConnectedSwiftDb / canConnectSwiftDb 2017-09-24 19:54:07 +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
5d4c022dc0 Ref T140, too many warnings when wrong XPDR code is received.
Demoted to debug message.

Slack: https://swift-project.slack.com/archives/C04J6J76N/p1504365879000106
2017-09-24 19:54:01 +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
Roland Winklmeier
27f97e8ac8 Implement interpolator mode for FS9
Summary:
This implementation will always return true if we were setting the mode,
since we cannot easily access the return value from
CInterpolatorMulti::setMode in a thread safe manner.

Reviewers: #swift_pilot_client, kbasan, msutcliffe

Reviewed By: #swift_pilot_client, kbasan, msutcliffe

Subscribers: kbasan, jenkins

Differential Revision: https://dev.swift-project.org/D52
2017-09-24 19:53:35 +01:00
Klaus Basan
2b3b173b76 Default calculation of distance/bearing for airports. Follow up of the discussion in slack/during T125
Summary: Default calculation of distance/bearing for airports.

Reviewers: msutcliffe, rwinklmeier

Reviewed By: msutcliffe, rwinklmeier

Subscribers: jenkins

Maniphest Tasks: T125

Differential Revision: https://dev.swift-project.org/D48
2017-09-24 19:53:31 +01:00
Klaus Basan
dec5eff0c6 Ref T125, service to download and save file in directory 2017-09-24 19:53:26 +01:00
Klaus Basan
12db652ccf Ref T125, renaming areAllDataRead => areAllInfoObjectsRead 2017-09-24 19:53:17 +01:00
Klaus Basan
8c032fb4d7 Ref T125, allow to get distribution list by JSON string. Also setup value object directly using JSON string now. 2017-09-24 19:53:13 +01:00
Klaus Basan
15f5a7f489 Ref T125, URL for XSwiftBus file info webservice 2017-09-24 19:53:12 +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
a993ccd1c1 Fix CApplication::processEventsFor so it can be used in samples/unit tests 2017-09-24 19:53:07 +01:00
Klaus Basan
16c2881e6a New FSD testserver (on swift machines) 2017-09-24 19:53:00 +01:00
Klaus Basan
d995bcf59c Ref T126, fixed too early timeout
* use timeout timestamp
* used approch with trials was wrong, as number of trials also depends on number of reader
2017-09-24 19:52:58 +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
Mathew Sutcliffe
de13fc51cb T37 T130 Workaround to consolidate time offset to all places it is needed. 2017-09-24 19:52:50 +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
8119aafca4 Move URLs getter to cpp. This is a tweak so I can easily change the URLs for testing. 2017-09-24 19:52:22 +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
0117558ea7 Formatting 2017-09-24 19:52:04 +01:00
Klaus Basan
71fa0fc7b8 Ref T111, handle SELCAL in simulator context (fix, was missing so far) 2017-09-24 19:51:59 +01:00
Klaus Basan
66773d7593 Ref T111, allow to set SELCAL in simulator 2017-09-24 19:51:55 +01:00
Klaus Basan
1387573e5b Ref T112, moved simulator settings in subdir/settings namespace 2017-09-24 19:51:46 +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