From 6e8421ddc56af5fe81383fba92f1c184dfef4f73 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 5 Feb 2021 01:11:12 +0000 Subject: [PATCH] typo and chnaging import time to 80s --- handbook/troggle/trogstatus.html | 2 +- handbook/troggle/unittests.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handbook/troggle/trogstatus.html b/handbook/troggle/trogstatus.html index df70d7a63..05683f713 100644 --- a/handbook/troggle/trogstatus.html +++ b/handbook/troggle/trogstatus.html @@ -42,7 +42,7 @@ Enforced time at home is giving us a new impetus to writing and restructuring th In the course of these migrations several unused or partly-used django plugins were dropped as they caused migration problems (notably staticfiles) and the plug-ins pillow, django-registration, six and sqlparse were brought up to recent versions. This was all done with pip in a python venv (virtual environment) on a Windows 10 machine running ubuntu 20.04 under WSL (Windows Systems for Linux) v1.

Missing troggle functions were repaired and partly-implemented pages, such as the list of all cavers and their surveyed passages, were finished and made to work. The logbook parsing acquired a cacheing system to re-load pre-parsed files. The survex file parsing was completely rebuilt to reduce the excessive memory footprint. While doing so the parser was extended to cover nearly the full range of survex syntax and modified to parse, but not store, all the survey stations locations. A great many unused classes and some partly written code ideas were deleted.

July 2020

-

Wookey upgraded debian on the server from 9 stretch to 10 buster and we got the python3 development of troggle running as the public version (with some http:// and https:// glitches) by 23rd July. Buster will be in-support definitely until June 2024 so we are rather pleased to be on a "not ancient" version of the operating system at last. This concided with a last tweak at improving the full cave data file import so now it runs on the server in ~200 seconds. Which is considerably more useful than the ~5 hours it was taking earlier this year. +

Wookey upgraded debian on the server from 9 stretch to 10 buster and we got the python3 development of troggle running as the public version (with some http:// and https:// glitches) by 23rd July. Buster will be in-support definitely until June 2024 so we are rather pleased to be on a "not ancient" version of the operating system at last. This concided with a last tweak at improving the full cave data file import so now it runs on the server in ~80 seconds. Which is considerably more useful than the ~5 hours it was taking earlier this year.

We plan to stick with debian 10 buster, django 1.11.29 and python 3.7.5 (the standard on buster) until spring 2021 when we may upgrade debian to the forthcoming stable release 11 bullseye. At that point debian will have python 3.8 as standard and we will migrate to django 2.x, hopefully getting as far as django 2.2 which is an LTS and actually in support until April 2022.

With any luck that will be the last of our involvement with django migrations as we may not move on from using django 2.2 until we stop using django altogether, see troggle architecture speculations.


diff --git a/handbook/troggle/unittests.html b/handbook/troggle/unittests.html index aeb06cee5..770225f0a 100644 --- a/handbook/troggle/unittests.html +++ b/handbook/troggle/unittests.html @@ -11,7 +11,7 @@

Troggle Unit Tests

We have a small suite of tests which are run manually by troggle programmers like this: -

 troggle$ python manage.py tests -v 1
+
 troggle$ python manage.py test -v 1
The test code is all in troggle/core/TESTS/tests.py.

The test 'test_page_expofile' checks that a particular PDF is being served correctly by the web server and that the resulting page is the correct length of 2,299,270 bytes: