From 3c202bc6e31d8d451b135c04f4c935340bdf2fcc Mon Sep 17 00:00:00 2001 From: "Mark A. Connelly" <16519297+markconnellypro@users.noreply.github.com> Date: Sun, 14 Jul 2024 02:08:23 -0400 Subject: [PATCH 01/31] Force uppercase comparison for GovernmentModel->getAbbreviationId; fix output field name --- src/app/Models/GovernmentModel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/Models/GovernmentModel.php b/src/app/Models/GovernmentModel.php index c61e368..c07a134 100644 --- a/src/app/Models/GovernmentModel.php +++ b/src/app/Models/GovernmentModel.php @@ -116,13 +116,13 @@ public function getDetail(int|string $id, string $state): array public function getAbbreviationId(string $id): int { $query = <<db->query($query, [ - $id, + strtoupper($id), ])->getResult(); $id = -1; From 1851b03638c07496bac03df100dffefc23e7809b Mon Sep 17 00:00:00 2001 From: "Mark A. Connelly" <16519297+markconnellypro@users.noreply.github.com> Date: Thu, 1 Aug 2024 20:32:23 -0400 Subject: [PATCH 02/31] DataTables license --- license/dependency/DataTables-MIT.html | 6 +++--- license/dependency/DataTables.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/license/dependency/DataTables-MIT.html b/license/dependency/DataTables-MIT.html index b73aa31..d700fc5 100644 --- a/license/dependency/DataTables-MIT.html +++ b/license/dependency/DataTables-MIT.html @@ -9,7 +9,7 @@ - + @@ -18,8 +18,8 @@ - - + + diff --git a/license/dependency/DataTables.html b/license/dependency/DataTables.html index eb22341..5af5fea 100644 --- a/license/dependency/DataTables.html +++ b/license/dependency/DataTables.html @@ -9,7 +9,7 @@ - + @@ -18,8 +18,8 @@ - - + + From 1ce478f7c5f798f5edcff29ac899d89c711ea8dc Mon Sep 17 00:00:00 2001 From: "Mark A. Connelly" <16519297+markconnellypro@users.noreply.github.com> Date: Thu, 1 Aug 2024 20:36:41 -0400 Subject: [PATCH 03/31] Fix leafet location for development --- src/app/Controllers/Map.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Controllers/Map.php b/src/app/Controllers/Map.php index 7bae504..759df18 100755 --- a/src/app/Controllers/Map.php +++ b/src/app/Controllers/Map.php @@ -74,7 +74,7 @@ public function leaflet(string $state = ''): void echo view('leaflet/state_' . $state, $this->data); } catch (\Throwable) { try { - echo view('development/leaflet_state_' . $state, $this->data); + echo view('development/leaflet/state_' . $state, $this->data); } catch (\Throwable) { echo view('leaflet/state', $this->data); } From 98dd703ece6a9d605f126535c8472d21bf8e34cf Mon Sep 17 00:00:00 2001 From: "Mark A. Connelly" <16519297+markconnellypro@users.noreply.github.com> Date: Thu, 12 Sep 2024 22:36:27 -0400 Subject: [PATCH 04/31] Development: Add File Source table to Event page --- src/app/Controllers/Event.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/Controllers/Event.php b/src/app/Controllers/Event.php index 20b3228..dd48d8a 100755 --- a/src/app/Controllers/Event.php +++ b/src/app/Controllers/Event.php @@ -95,6 +95,11 @@ public function view(string $state, int|string $id): void $SourceCitationModel = new SourceCitationModel(); $query = $SourceCitationModel->getByEvent($id); echo view('source/table_citation', ['query' => $query, 'state' => $state, 'hasColor' => false, 'hasLink' => true, 'title' => 'Source']); + if ($this->isLive()) { + $FileSourceModel = new \App\Models\Development\FileSourceModel(); + $query = $FileSourceModel->getByEvent($id); + echo view(ENVIRONMENT . '/filesource/table', ['query' => $query, 'state' => $state]); + } if ($hasMap) { $i = 0; echo view('leaflet/start', ['type' => 'event', 'includeBase' => true, 'needRotation' => false]); From cdacc6c79de4a08024bdcb073a50bdfbfe21e1da Mon Sep 17 00:00:00 2001 From: "Mark A. Connelly" <16519297+markconnellypro@users.noreply.github.com> Date: Fri, 13 Sep 2024 00:17:16 -0400 Subject: [PATCH 05/31] Move order of commands in PHP Dockerfile to accommodate development version --- docker/php/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index d5544a9..16b63dd 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -25,10 +25,10 @@ RUN mkdir /usr/src/docker COPY ./docker/php/import_common_php.sh ./docker/php/import_dependency.sh ./src/private/development/docker/import_developmen[t]_php.sh ./src/private/production/docke[r]/* ./src/private/personal-production/personal-docke[r]/* /usr/src/docker/ RUN chmod -R 764 /usr/src/docker/* ARG CI_ENVIRONMENT +RUN apt-get update +RUN apt-get install -y unzip zip RUN /usr/src/docker/import_common_php.sh # Restart Apache RUN service apache2 restart # Install Composer and prerequisites -RUN apt-get update -RUN apt-get install -y unzip zip COPY --from=composer:2.6.5 /usr/bin/composer /usr/bin/composer From 89e4b09ce6dc3f13e102c11af306a1469123ea79 Mon Sep 17 00:00:00 2001 From: "Mark A. Connelly" <16519297+markconnellypro@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:16:22 -0400 Subject: [PATCH 06/31] PostgreSQL backup: bump versions; add governmentname column to plsstownship.plsstownshipname --- inpostgis/postgresql_public_backup.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inpostgis/postgresql_public_backup.sql b/inpostgis/postgresql_public_backup.sql index a6fe530..e0a1cf6 100644 --- a/inpostgis/postgresql_public_backup.sql +++ b/inpostgis/postgresql_public_backup.sql @@ -2,8 +2,8 @@ -- PostgreSQL database dump -- --- Dumped from database version 16.2 (Debian 16.2-1.pgdg110+2) --- Dumped by pg_dump version 16.2 (Ubuntu 16.2-1.pgdg22.04+1) +-- Dumped from database version 16.4 (Debian 16.4-1.pgdg110+1) +-- Dumped by pg_dump version 16.4 (Ubuntu 16.4-1.pgdg22.04+1) SET statement_timeout = 0; SET lock_timeout = 0; @@ -7842,6 +7842,7 @@ CREATE TABLE geohistory.plsstownship ( plssrangefraction character varying(10) DEFAULT '0'::character varying NOT NULL, plssrangedirection character varying(1) DEFAULT '0'::character varying NOT NULL, plsstownshipduplicate character varying(1) DEFAULT '0'::character varying NOT NULL, + plsstownshipname text DEFAULT ''::text NOT NULL, plsstownshipfull text GENERATED ALWAYS AS ((((( CASE WHEN (plsstownshipnumber = 0) THEN ''::text From 5970097cef18dde3552b42c89fad7b8fc95eb783 Mon Sep 17 00:00:00 2001 From: "Mark A. Connelly" <16519297+markconnellypro@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:16:37 -0400 Subject: [PATCH 07/31] Bump DataTables licenses --- license/dependency/DataTables-MIT.html | 12 +++++++----- license/dependency/DataTables.html | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/license/dependency/DataTables-MIT.html b/license/dependency/DataTables-MIT.html index d700fc5..9b4303e 100644 --- a/license/dependency/DataTables-MIT.html +++ b/license/dependency/DataTables-MIT.html @@ -9,7 +9,7 @@ - + @@ -18,8 +18,8 @@ - - + + @@ -50,7 +50,8 @@