... remove $$replace and use the latest src.pro code from QWT lib (which
allows in-source and out-of-source/shadow build)
($$replace - for unknown reasons - creates an empty string/fails if the
input string contains mixed Upper and Lower case characters - which it
happening in many file systems)
.. will break out of source builds in QT Creator
.. means everyone else's builds will still work
.. happy to apply change if it doesn't break builds for others
Fixes#1247
.. splits into words but will allow user to escape using the quote
character (") or the backslash (\).
.. so <"hello world" \"this\" t\est> will result in three strings
<hello world> <"this"> and <test>
.. use a simple free text search against the ridecache now we
have all the texts available and in memory
.. no need to maintain an index, no dependency on a horrid lib
with nasty dependencies and its faster too
.. the free text search is very simple, will need to bolster it
over time e.g. it matches text not words
... add "Up" - "Down" function for Curves Table Items in LTM Settings
(particular useful when add a curve in Stacked View and wanting to have
that curve shown at first position)
.. on windows especially, there were issues with the call to
IndexWriter::addDocument() resulting in an exception.
.. the introduction of a QMutexLocker to manage the mutex locking
seems to have fixed things, but they only seemed to manifest
on Windows.
... change calcuation of Averages for TE/PS by using the delivered
samples with valid values (> 0) and the number of delivered data samples
> 0 as the basis
... correct the path in RideItem after updating RideCache to the final
path (since RideItem has a local buffer for the path - which is e.g.
used at "Save Ride") any manual changes after the import will create a
new .JSON in /tmpActivities and not update the original .JSON in
/activities
(Problem only occurs when using the in-memory data after an Import or
Downlaod)
... for RideImport and RideDownload the created .JSON files are firstly
stored in /tempActivities and only moved to /activities after
successfull updating RideCache (with this files with "bad data" cause
RideCache calculations to crash can be identified when starting GC again
... in GC CrashDialog the /tempActivities are documented in the Crash
Log and moved to /quarantine for further analysis
... small addition - the existence of the new directory structure is
verified when opening an Athlete - missing directories are added to
ensure a consistent structure being in place at all times
.. but to avoid being too 'opinionated' about the users
training we limit to the really obvious things and
don't offer any opinion on middling values.
.. LTS > 80 is green > 100 is blue
.. SB < 40 is red -- overtraining
.. RR < -4 or > 8 is red -- detraining or overextending
.. it borders on bollocks given each athlete is different
and training is about managing the overreaching and recovery
to push at those boundaries
.. might end up removing this altogether .. but might flag
stuff up for newbies
.. value that result in nan/inf values need to be cleansed
to ensure the metric array in the rideitem is clean
.. because we load values from json we clean anyway in
PMC data since it seriously breaks the skiba PMC and
development users will have bad data.
.. was updating as you typed which created a nasty lag
but updated the metadata and metrics constantly
.. on one hand it was reassuring to see things change as
you typed, but on the other hand it was pretty tedious
.. we now catch focus change on text edits, see if they've
been changed and then trigger an update if that is the case