Commit Graph

40 Commits

Author SHA1 Message Date
Joern
f7d222d99d TrainDB - fix //1 remove workout error
... caused error in list-model since entries are added and "end-of" dbtable
... now only update of texts in upgrade to handle pre 3.3 translation problems
2015-11-19 21:45:19 +01:00
Joern
f5cf9e65a3 TrainDB / Add upgrade feature to fix wrong default entries
.. videosync table version stored in TrainDB (was missing before)

.. upgrade to 3.3 fixes default entries for Workouts (e.g. due to wrong translation with missing " " in text - German)
2015-10-25 13:08:00 +01:00
Vianney Boyer
b46b39e53a Add rlv file parser for Video synchronisation feature - Work In Progress 2015-10-14 19:03:16 +02:00
Joern
1a8d683303 Store GC Settings in multiple .INI files instead of system specific (Registry, PLIST,..) format
... change storage format to .INI files (which is QTs cross-system format)
... differentiate between System, Global and Athlete specific settings
... store the Global Settings in the AthleteDirectory (root)
... store the Athlete specific Settings in the Athletes Names subdir /config
... migrate existing Settings from current location into new formats "on-the-fly"
2015-09-19 11:13:17 +02:00
Joern
30ca55787d Indicate the Path to Athlete Directory to backup during Upgrade (original code by GitHub user "mtbkeith" - thanks)
..show path in Upgrade Windows (separate from the scrolling section)
..allow path to be selected and copied to clipboard via Mouse
2015-08-08 15:41:06 +02:00
Mark Liversedge
c18fbaf742 Upgrade cosmetics
.. change LTM trend background to same as ride plot on upgrade
   as by default it will be black and look different

.. remove metal look on anything other than Mac prior to the
   10.10 Yosemite look. Metal looks naff these days.
2015-08-06 00:57:46 +01:00
Mark Liversedge
45ca7e7716 More new user nits
.. chrome reset by 3.1 upgrade .. aaaargghhh.
.. set default date range to last 3 months not all
2015-07-31 09:55:11 +01:00
Joern
714c956e92 Upgrade/JSON Conversion - Switch off "Auto" Fix Tools
... add feature to switch off "Auto" Fix tools
... switch off "Auto" Fix Tools during Upgrade/JSON Conversion
2015-07-25 09:59:41 +02:00
Joern
3c409241b7 Upgrade - Folder - verify upgrade demand
... check if the  "folder-upgrade" has really taken place - if not
reset, Upgrade Flag to force the new folder structure upgrade
... (allows to revert to the pre-upgrade backup of a folder structure -
which during test already had be successfully upgraded and therefore
marked as being ok).
2015-02-20 17:39:44 +01:00
Joern
e7d2faa381 Upgrade - enforce root() clean-up
... problems on deleting the source files (even they have have been
successfully copied to /target) are now reported as error (which require
to be cleaned up before Upgrade is marked as "successful")

... reason is that such "orphan" files may cause problems - e.g. if the
"upgrade-successful" indicator get's lost and we want to start 3.2 with
a fully cleaned file structure.
2015-02-08 12:46:30 +01:00
Joern
97854bdd8c Upgrade - More checks/messages
... check for valid Activity Filename format "YY_MM_DD_HH_MM_SS" (for
non-JSON files before conversion)
... check if the  Activity filename contains a valid date/time
... report if File is not readable - not just "skip" it
2015-02-05 17:31:18 +01:00
Mark Liversedge
fb994fa5e7 Rename Ride to Activity
.. across the code, except where it clearly is a ride
   e.g. importing PowerTap or SRM
2015-01-30 10:59:56 +00:00
Joern
fa5642c95f Folder Upgrade adjust to 3.2 Version
... make Upgrade Marker release independent
... adjust the texts from 3.11 to 3.2 verson id

... this will just make the Upgrade procedure run ONCE again for
Athletes which have been converted by a DEV build - but just to
check/report sucess
2015-01-24 14:22:37 +01:00
Joern
f655dbdde8 Introducing /quarantine for acvitities cause RideCache to crash/dump
... 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
2015-01-11 13:22:47 +01:00
Damien
a2f44e718f MetaData: Add default values 2014-12-17 08:17:11 +01:00
Mark Liversedge
0a00fd88bf Merge pull request #1189 from Joern-R/fix2
Athlete Subdirs - improvements
2014-12-05 17:48:54 +00:00
Joern
1683ae9e2e Athlete Subdirs - improvements
.. added /BAK subdir where all actvities .BAK files are stored
.. do not delete any original files in /imports /downloads when deleting
activity
.. copy deleted activity .JSON as .BAK into /BAK subfolder
.. adjust upgrade procedure to copy .BAK files to /BAK
2014-12-05 18:44:11 +01:00
Joern
27c0d100f5 GC Upgrade
.. do not force User to scroll down to proceed
.. change "proceed" text to be more clear
2014-12-05 17:11:09 +01:00
Joern
3868096745 Upgrade v3.11 - Folder Conversion - troubleshooting
... add Link to Wiki Troubleshooting guide to Upgrade Log in case errors
have occured
2014-11-26 18:36:37 +01:00
Claus Assmann
35eb416bd2 Fix comment spelling errors
.. lots of them !
2014-11-24 15:37:56 +00:00
Joern
957bd3ea1f GC Upgrade 3.11 - Log Autoscroll
... Log automatically scrolls when it's created - so no extra check if
end of log was reached required to process
2014-11-23 18:22:48 +01:00
Joern
251f5c862e GC Upgrade 3.11 enhancements
... make Upgrade Check Window smaller (with scrollable Text)
... only allow to proceed if Text is scrolled down to end (full read)
... in Upgrade Log, only allow to proceed to athlete if Log has been
scrolled down to the end
2014-11-23 17:24:05 +01:00
Joern
8f923813ac Translation DE - 3.11 - First Update
... Update Translation for DE
... Correct text for GC Upgrade
2014-11-23 14:58:55 +01:00
Joern
3f45e8541b AthleteDirectory - Folder Structure - small fixes
... New Athlete -> Unnecessary "Upgrade Popup" - removed
... Typo in Upgrade Popup Text fixed
2014-11-09 11:30:21 +01:00
Joern
230f028037 AthleteDirectory - Folder Structure Part 2 of 2 + Always create .JSON
... create folder structure for existing and new athletes
... upgrade existing athlete to new structure when opening / incl.
logging and error handling
... convert any "Downloaded" file to .JSON directly - store source file
in /downloads
... convert any "Imported" file to .JSON directly - store source file in
/imports
2014-11-02 19:55:01 +01:00
Mark Liversedge
dc65542cbc Version 3.1 RELEASE CANDIDATE
.. updated version number and activated upgrade processing
2014-07-04 11:53:01 +01:00
Mark Liversedge
5cc7fdf2a9 3.1 Upgrade Processing Part 3 of 3
.. PM chart is deprecated, so when loading an LTM chart
   with skiba curves is implemented instead.

.. we cannot easily add charts to the layout without refactoring
   HomeWindow so have moved that out of scope

NOTE: The upgrade processing has not been activated -- but can
      be once we build and issue our first 3.1 RC.
2014-06-22 16:25:17 +01:00
Mark Liversedge
91fbd2dadc 3.1 Upgrade Processing Part 2 of 3
.. update RideMetadata to remove 'Default' color
   if it exists and add 'Reverse' color

.. will also add 'TSS', 'Aerobic TISS' and 'Anaerobic
   TISS' to the metric tab if needed to avoid FAQ #1.
2014-06-22 14:52:15 +01:00
Mark Liversedge
22e136f96f 3.1 Upgrade Processing Part 1 of 3
.. getting the upgrade code going, this just adds new functions
   for changing colors and themes and doesn't perform an upgrade

.. Part 2 will deal with W' and power.zones changes

.. Part 3 will deal with chart setup changes
2014-06-22 13:08:27 +01:00
Mark Liversedge
f83cf11ab3 Undo accidental push of Upgrade WIP
.. pushed untested and unfinished changes for the
   3.1 upgrade process, this push undoes that.
2014-06-10 14:53:54 +01:00
Mark Liversedge
fc8be32473 Searchbox rounded corners
.. gone in flat mode.
2014-06-09 20:39:59 +01:00
Mark Liversedge
28a4e6e3aa Version History update for v3.0-SP2
.. added build id 3032 for 3.0.2
2014-02-28 21:48:53 +00:00
Mark Liversedge
6f8df99b8a Sync versions / upgrade script with v3.0 SP1
.. which was released today.
2013-12-21 18:40:37 +00:00
Mark Liversedge
cd105850e5 Version 3 Release
.. update of build and upgrade processing for
   release 3 final update.
2013-06-07 08:53:24 +01:00
Mark Liversedge
3cae674b6a Clean up measures.xml
.. remove it as part of the upgrade.
.. use built-in version for db schema
.. don't re-read it when doing getAllMeasuresFor()
2013-05-22 21:18:57 +01:00
Mark Liversedge
92e7ed0d23 UI Nits: Defaut sidebar settings
When a new athlete is created or when running v3 for the first
time for this user the sidebars shown are yucky. This just updates
the settings to make sure you start up with a simple sidebar for
the four views.
2013-05-22 15:58:01 +01:00
Mark Liversedge
ac4962bc89 Upgrade should only try once
.. since it prohibits startup when fails.
.. suspect there is an issue with optimise() on a new index
.. have also added more logging to watch this.
2013-05-21 06:54:53 +01:00
Mark Liversedge
63253d9cba Upgrade: Set default weight to non-zero
As part of the upgrade, if the default weight is zero
set it to 75.
2013-05-19 21:09:17 +01:00
Mark Liversedge
ce277baca4 Crash Reporting
We now use a per-athlete setting to track if the last
time the athlete was opened GC shutdown gracefully.

If it didn't then we show a dialog box with some basic
data to use to debug / diag the problem. For now it is
just limited to;

* metric.log
* athlete directory listing (by modified time)
* app settings

We explicitly DO NOT include personal information such
as DOB, Weight, Sex nor critical information such as userids
or passwords.

This is a first stab at this, and we will almost certainly
improve it to include other .xml config files as well as
automatically posting an email (or similar).

Fixes #596.
2013-05-11 22:50:40 +01:00
Mark Liversedge
cd864c5ff2 Added Upgrade processing
We now maintain a build id which correlates to a release
version (or development version if we want).

Most importantly, when we increment the build id we get to
run some processing when the cyclist is opened to clean/prep
for this release.

I have added V3 RC3 as the first build id and it will
remove *.cpi and *.bak files as well as removing the
clucene index and metricDBv3 file.

Fixes #584.
2013-05-02 16:18:04 +01:00