From 2020cef8ace9e8aee4e30298a3452774d577eed1 Mon Sep 17 00:00:00 2001 From: Fletcher Haynes Date: Thu, 8 Dec 2022 12:47:21 -0800 Subject: [PATCH] This adds in support to the lattice UI application to use the SQL3 (#2338) * This adds in support to the lattice UI application to use the SQL3 endpoint. If the `/sql` endpoint returns 404, it will use the SQL1 endpoint. If the `/sql` endpoint is available, it will send SQL queries to that. It does not try the SQL1 endpoint if the SQL3 endpoint returns an error processing the query. That is, it is all SQL3 or SQL1. - Below are the specific changes: - Adds a file that contains functions for interacting with http services as opposed to just grpc/event-based services. As of this commit, it is only the SQL3 endpoint. - This adds a variable to track if we are using the SQL3 endpoint or not - This adds a function to handle the response from the SQL3 endpoint - Adds a function to eventServices to query the sql3 HTTP endpoint - Fixed a missing semicolon in grpcServices Co-authored-by: Fletcher Haynes (cherry picked from commit 7ab453e289c41805278aece4f21470f2d96b5a2a)