Commit graph

93 commits

Author SHA1 Message Date
Коrd Campbell
17cb2cbb77
fixes FB-1873 (#2400)
Co-authored-by: Kord Campbell <kord@Bob.local>
Co-authored-by: Fletcher Haynes <fletcher@capitalprawn.com>
2023-01-11 16:48:03 -08:00
Fletcher Haynes
f65367ab46
This fixes a bug with displaying errors returned from the SQL3 endpoint (#2374)
Co-authored-by: Fletcher Haynes <fletcher.haynes@generalassemb.ly>
2022-12-16 08:22:27 -08:00
Fletcher Haynes
7ab453e289
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 <fletcher.haynes@generalassemb.ly>
2022-12-08 12:47:21 -08:00
Seebs
3a8d08fed5 rename protobuf interface
For unrelated reasons, we renamed the protobuf interface from
package "pilosa" to package "proto". This means our GRPC endpoints
need to live under "proto.Pilosa" instead of "pilosa.Pilosa". This
means lattice needs to be configured the same way.
2022-11-09 11:01:45 -06:00
Jacob Brinlee
ca16e7f8fa
SUP-286 - update lattice config (#2273)
* comment out configs
2022-11-02 16:53:10 -05:00
Stephanie Yang
9b91023e29
update molecula references to featurebase (#2262) 2022-10-27 15:57:53 -05:00
Hoang Pham
9c3ec0bb97 FB-1663 - fix make build-lattice failing 2022-09-13 14:10:35 -05:00
Hoang Pham
a7fbbd24d8 FB-1339 - UI - updated lodash version to fix gitlab vulnerability 2022-09-13 09:19:19 -05:00
hphamMolecula
a2d02ffc57
FB-1337 - UI - fixes for regex backtracking vulnerabilities (#2187) 2022-08-24 15:37:55 -05:00
hphamMolecula
985a70b14e
FB-1601 - Put a link to the cloud SaaS page in the admin UI (#2189) 2022-08-11 14:55:50 -07:00
Seebs
fd9d4de31d Remove most of the resize-related logic
We had two different, incompatible-with-each-other, and both
individually broken, partial implementations of resizing logic.
There's the original pre-etcd resize, and then the etcd resize,
and neither works, but there's conflicts between the ways they
don't work.

No attempt to fix this is likely to yield decent results, so
instead, we yank them both out entirely, so if we decide to
implement resizing (which we will) we won't be confused by
stray code pertaining to resizing that's not really hooked
up to anything.

We're leaving the resize messages in protobuf to avoid renumbering
protobuf messages. We rename some of our message types to UNUSED0,
etcetera, so that any code still using the old names won't
compile, to make sure we get rid of it, but we can't just drop
the numbers without breaking rolling restart.

The Resize_AddNode tests are removed not just because we don't
have resizing, but because they were completely broken anyway
and never worked at all. But there's no reason to fix them because
they exist to fix the functionality we didn't have and are now
removing the vestigial remains of.

We also drop the one usage of the AddNode function of Noder, because
it was used only by one test code fragment that was creatincg clusters,
and that can be done more correctly. There were no other call sites
at all.

We mark the monitorAntiEntropy function to be ignored by
code coverage because it's not actually being covered. There's
a separate ticket for removing that entirely.
2022-06-21 17:03:09 -05:00
reesporte
03df1ba6ad
remove trailing spaces en masse (#2024) 2022-04-18 09:31:35 -05:00
Ben Johnson
d9ad819fe9 Revert auto-quoting in Web UI 2022-03-03 12:35:54 -07:00
reesporte
17203e3441 remove cardinality calculation from schema/details
this is related to work for [fb-1127](https://molecula.atlassian.net/browse/FB-1127)

cardinality reporting has caused no shortage of issues such that we recommend
disabling them almost everywhere.

this commit removes the cardinality calculation for right now, as well as the option
to enable/disable schema details.
2022-03-02 14:09:09 -06:00
reesporte
241550c751 fix sonarcloud code smells 2022-02-28 12:05:44 -06:00
reesporte
248dc4fe85 rip out ui/usage
addresses concerns in [fb-1127](https://molecula.atlassian.net/browse/FB-1127)

TLDR;
/ui/usage was a hotbed for issues and SEs have been turning it off anyway for ages
2022-02-28 12:05:44 -06:00
hphamMolecula
580a6109fb
Merge branch 'master' into ui-fixes 2022-01-19 10:04:35 -06:00
Hoang Pham
c969a8370e UI - added fix for Query Builder page showing up as blank when there are no tables associated with current user 2022-01-18 17:57:40 -06:00
reesporte
fdf7b4107a actually be able to generate-statik
these were the changes i had to make to be able to build lattice on my machine
2022-01-18 12:14:54 -06:00
reesporte
06c34c9f3e Merge branch 'master' into ui-fixes 2022-01-14 13:56:47 -06:00
reesporte
68c6bffa2c clear localstorage on sign out 2022-01-14 13:02:01 -06:00
reesporte
cf2410fea6 addresses multiple authn/z tickets
* fb-998 - authn/z enabled in handlers (kitchen-sink ticket)
    - authorization is enabled through the use of a bearer token (using header "Authorization")
    - authorization may occur through the use of an "Authorization" header or "molecula-chip" cookie
    - ui is updated for changes to handler
* fb-1131 - protect grpc endpoints
    - GRPC endpoints now check authorization if auth is enabled
* fb-1129 - inter-node communication
    - the following endpoints use the secretKey for authentication:
        - /internal/cluster/message: POST
        - /internal/translate/data: GET, POST

* added test to api_test.go (TestAuth_MultiNode) testing various auth/permissions stuff on a multi-node cluster

not included:
    - fb-1130 - filter response of endpoints
    - fb-1109 - improved audit logging

@jaffee [are you not entertained](https://www.youtube.com/watch?v=mutgotxrcqg)

Co-authored-by: souhailanoor <90720110+souhailanoor@users.noreply.github.com>
Co-authored-by: tgruben <tgruben@gmail.com>
Co-authored-by: 54mir <48686912+54mir@users.noreply.github.com>
Co-authored-by: kcrodgers24 <49999391+kcrodgers24@users.noreply.github.com>
2022-01-14 12:31:32 -06:00
Hoang Pham
936fb9e6bd UI - rename a unit test 2021-12-28 13:04:56 -06:00
Hoang Pham
0ad2bffd33 UI - added test files 2021-12-28 10:56:31 -06:00
Hoang Pham
39ebbbd88e UI - formatted tsx files with prettier (single quote) 2021-12-22 11:40:01 -06:00
Hoang Pham
c67ae54b1d UI - fixed Sign In button 2021-12-21 16:44:27 -06:00
Hoang Pham
7de6c37b11 UI - cleaned up code, added comments 2021-12-21 16:06:02 -06:00
Hoang Pham
a24a1e8922 UI - added fixes for PR comments 2021-12-20 15:55:52 -06:00
Hoang Pham
c91e7dc8de UI - renamed authOn to isAuthOn 2021-12-20 12:28:38 -06:00
Hoang Pham
7dc9df425d UI - removed unnecessary code 2021-12-20 12:23:55 -06:00
Hoang Pham
9086587e06 Changed how the UI processes /auth to turn on/off authentication 2021-12-20 12:19:56 -06:00
Hoang Pham
d7ba3c8334 UI - changed createTheme back to createMuiTheme 2021-12-20 09:57:07 -06:00
Hoang Pham
89a628e91a Added Featurebase UI code for authentication 2021-12-17 18:20:20 -06:00
Hoang Pham
583a0293ce added Login page for testing with BE endpoint 2021-12-13 14:04:41 -06:00
reesporte
f70fdfb59e remove inline styling 2021-11-04 12:14:01 -05:00
reesporte
7b3dee5653 single quotify 2021-11-04 11:55:32 -05:00
reesporte
e11ce9a248 clearer wording 2021-11-03 13:18:41 -05:00
reesporte
1585313a0c better styling 2021-11-03 13:14:28 -05:00
reesporte
f9c78091ab move warning label to results count 2021-11-03 13:05:47 -05:00
reesporte
ad2f5c5ed4 limit the number of results that we keep
also tells the user how many results there were, but they only
get to see 1000 of them
2021-11-02 16:03:43 -05:00
reesporte
510dd4dfb7 un-prettify for less lines of code changed :) 2021-11-01 09:36:36 -05:00
reesporte
705efc1b8a refactor for easier reading, add more tests 2021-11-01 09:25:07 -05:00
reesporte
4a18973274 use prettier to format changed files 2021-10-29 16:16:59 -05:00
reesporte
ad0b6db841 refactor css as import 2021-10-29 16:04:58 -05:00
reesporte
cdbfcef0eb hopefully updates the ci pipeline to run jest
i updated the gitlab ci pipeline so that hopefully it will run jest coverage stuff for sonar
2021-10-28 16:19:03 -05:00
reesporte
5ef7975475 refactor and add tests 2021-10-28 15:15:43 -05:00
reesporte
aadfc63bf0 add quotes around strings 2021-10-28 13:45:07 -05:00
Stephanie Yang
10f235dac1 attempt to upgrade node (to v14) and node-sass (to v4.14) 2021-10-27 13:00:40 -05:00
Stephanie Yang
1609582ba1 Update aggregate label to cardinality 2021-08-02 19:01:37 -05:00
Stephanie Yang
97df326ac6 update test and add additional test for aggregate sort 2021-08-02 19:01:37 -05:00