From c7e92d9fa09379ab54297f12e17323f0d61939c3 Mon Sep 17 00:00:00 2001 From: dtookey Date: Wed, 18 May 2022 09:44:57 -0400 Subject: [PATCH] added some debug printing to the logs. Swapped the order of some things in 1-sanitize_init.sql in hopes to speed up the import/processing times. --- src/projectInsight/insight-connect.go | 2 +- src/sql/0-run-first/1-sanitize_init.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/projectInsight/insight-connect.go b/src/projectInsight/insight-connect.go index 99be0c3..29bce79 100644 --- a/src/projectInsight/insight-connect.go +++ b/src/projectInsight/insight-connect.go @@ -146,7 +146,7 @@ func (iClient *InsightClient) getRawUsers() *[]*InsightUser { req := iClient.createRequest(userEndpoint, insightTokenFile) rawBytes := iClient.doGet(req) container := make([]*InsightUser, 0, 150) //do we want to make the default result size parametric? - + log.Println(string(*rawBytes)) err := json.Unmarshal(*rawBytes, &container) if err != nil { log.Panic(err) diff --git a/src/sql/0-run-first/1-sanitize_init.sql b/src/sql/0-run-first/1-sanitize_init.sql index cfe8ec9..e3c1af3 100644 --- a/src/sql/0-run-first/1-sanitize_init.sql +++ b/src/sql/0-run-first/1-sanitize_init.sql @@ -5,8 +5,8 @@ CREATE OR REPLACE INDEX billing_refnum ON billing (refNumber); -- noinspection SqlWithoutWhere UPDATE users SET hash = ''; -UPDATE project_lifecycle SET new_value = '+CREATED', changed_column = 'status' WHERE changed_column = 'created'; DELETE FROM project_lifecycle WHERE project_number = 'EVENT'; +UPDATE project_lifecycle SET new_value = '+CREATED', changed_column = 'status' WHERE changed_column = 'created'; #TIMEZONE FIX # we'll store the roll amount as a single variable