Commit Graph

433 Commits

Author SHA1 Message Date
Dan Sosedoff
450badfbbb
Handle returning values in update/delete queries 2022-12-05 20:56:21 -06:00
Dan Sosedoff
695a99dade
Enable dev assets mode with PGWEB_ASSETS_DEVMODE env var 2022-12-03 18:27:46 -06:00
Dan Sosedoff
3cec2c5c66
Merge pull request #596 from sosedoff/fix-flaky-backend-test
Fix flaky backend connection test
2022-12-03 16:49:51 -06:00
Dan Sosedoff
1b42caf3a7
Fix flaky backend connection test 2022-12-03 16:42:30 -06:00
Dan Sosedoff
96f82201b5
Fix indexes test 2022-12-03 16:31:07 -06:00
Dan Sosedoff
606227d308
Include index size on the index list view 2022-12-03 16:16:00 -06:00
Dan Sosedoff
96625916e2
Tweak http message logger format 2022-12-03 15:11:45 -06:00
Dan Sosedoff
07d0010750
Make linter happy 2022-12-02 14:22:50 -06:00
Dan Sosedoff
16726e2461
Add idle timeout into session manager 2022-12-02 14:20:20 -06:00
Dan Sosedoff
0a133dc395
Reorder imports 2022-12-02 14:00:01 -06:00
Dan Sosedoff
73dfcc46c3
Verify client is closed 2022-12-02 13:59:22 -06:00
Dan Sosedoff
bc54c95140
Tweak test run names 2022-12-02 13:57:56 -06:00
Dan Sosedoff
29a6a0df8c
Add session manager tests 2022-12-02 13:56:49 -06:00
Dan Sosedoff
9074d4bfb8
Add internal sessions manager 2022-12-02 13:36:31 -06:00
Dan Sosedoff
e7ac416440
Sanitize connect token in logging 2022-12-02 12:20:58 -06:00
Dan Sosedoff
f19f165afc
Configure logger for connect backend 2022-12-02 11:45:23 -06:00
Dan Sosedoff
f9e376a117
Code cleanup; add make lint task 2022-12-01 16:51:12 -06:00
Dan Sosedoff
dafda4a977
Add VersionInfo struct to render in the /info endpoint 2022-12-01 16:41:46 -06:00
Dan Sosedoff
72ecd20dd1
Handle logger levels 2022-12-01 13:01:32 -06:00
Dan Sosedoff
c996d71378
Implement gin request logger with param filtering 2022-12-01 13:01:32 -06:00
Dan Sosedoff
dd1fb90355
Refactor bookmarks ssl params 2022-11-23 16:21:30 -06:00
Dan Sosedoff
c103eed463
Comment fixes 2022-11-22 16:17:28 -06:00
Dan Sosedoff
e1aa717b22
Print available environment variables in help message 2022-11-22 16:09:01 -06:00
Dan Sosedoff
a2a5415ace
Print deprecation notice when using unprefixed env var 2022-11-22 15:20:49 -06:00
Dan Sosedoff
b1023cdcfd
Add support for PGWEB_ prefixed env vars 2022-11-22 14:51:13 -06:00
Dan Sosedoff
fa0efb1597
Make getCurrentUser method private 2022-11-22 14:51:13 -06:00
Dan Sosedoff
9bfec11b48
Fix linting errors 2022-11-14 16:10:50 -06:00
Dan Sosedoff
c706523bd0
Lint: replace ioutil with os package 2022-11-14 15:47:36 -06:00
Dan Sosedoff
685c222b9d
Lint: replace os.Kill trap with syscall.SIGTERM 2022-11-14 15:43:34 -06:00
Dan Sosedoff
781469c4cf
Version bump: 0.11.12 2022-07-05 21:11:03 -05:00
Boban Acimovic
7b8b9f5c80
update go deps and alpine (#558) 2022-05-20 20:36:11 -05:00
Dan Sosedoff
db2a7a8aa5
Version bump: 0.11.11 2022-03-29 23:32:36 -05:00
Dan Sosedoff
89f84367ad
Change binary codec back to none (#555) 2022-03-26 18:11:33 -05:00
Matthieu Vachon
5803295174
Added binary codec base58 as well as improving the help for --binary-codec flag (#548)
* Added binary codec `base58` as well as improving the help for `--binary-codec` flag
* Added tests for base58
* Fixed tests

Co-authored-by: Matthieu Vachon <matt@streamingfast.io>
2022-01-27 22:10:01 -06:00
Dan Sosedoff
8171907ec2
Version bump: 0.11.10 2022-01-20 21:28:05 -06:00
Dan Sosedoff
e2f5e06c07
Add connect backend tests (#546) 2022-01-08 14:45:21 -06:00
Dan Sosedoff
0794c642e4
Use HTTP 302 status code for successful backend redirect (#544) 2022-01-08 12:25:24 -06:00
Tim Ings
17e95601ec
Explain analyze dropdown button (#532)
* Adds bootstrap dropdown plugin
* Float dropdown toggle left
* Extract query running message toggles
* Adds analyze function and api call
* Adds analyze api
2022-01-03 19:05:46 -06:00
Dan Sosedoff
af79994595
DRY ldflags; include build time into version string (#541) 2021-12-30 15:33:43 -06:00
Dan Sosedoff
706caa44bf
Serialize binary bytea cols into hex/base64 (#537)
- Adds binary serialization into hex/base64
- Default codec is base64
- Codec can be changed via `--binary-codec` CLI option
2021-12-29 11:03:50 -06:00
Dan Sosedoff
ccfa3497f3
GitHub actions migration (#540) 2021-12-25 11:31:41 -06:00
Dan Sosedoff
7ec1e01edd
Version bump: 0.11.9 2021-10-08 21:30:45 -05:00
Dan Sosedoff
0252540c4b
Merge pull request #525 from sosedoff/go-embed-path-prefix-fix
Fix broken path prefix
2021-08-17 20:47:18 -05:00
Dan Sosedoff
46935a7a12
Fix broken path prefix 2021-08-10 12:12:05 -05:00
rui
218800395d
fix: should be build time rather than runtime 2021-07-09 15:52:09 -04:00
Dan Sosedoff
4de356cb1d
Version bump: 0.11.8 2021-07-07 19:11:42 -05:00
Nikita Kazarian
8e2c826ba3 go 1.16 features
- use go embed instead of go-binary and remove all about old assets (go 1.16 feature)
- pin gox version (go 1.16 feature)
- update ci to go 1.16
2021-03-05 03:47:01 +03:00
Dan Sosedoff
31f6261c1c Version bump: 0.11.7 2020-10-18 10:29:42 -05:00
Dan Sosedoff
86b1ea887c Adjust error message matching for dump spec 2020-10-18 10:18:03 -05:00
Dan Sosedoff
f61c1c45d5 Use regular expression for checking some of the connectio errors 2020-10-18 09:32:34 -05:00
Simon Hanna
27a83bdf9e
Do not show other databases if session is locked
Fixes: #470
2020-07-15 18:11:05 +02:00
Dan Sosedoff
02ddf85af2 Do not terminate if local authentication failed on start 2020-04-23 15:54:12 -05:00
Dan Sosedoff
678a6fd7cb Show results row context menu on custom query results 2020-03-15 19:50:19 -05:00
Dan Sosedoff
3e4e9c30c9 Release 0.11.6 2020-02-19 20:24:33 -06:00
Dan Sosedoff
6025b7afb2 Remove double click action on cell
This feature was a source of confusion for new pgweb users for quite
some time now. Most people thought by double-clicking the cell it
would allow them to edit the value since the column is replaced
with textarea. The textarea was there to copy the cell's value, not
for editing. Feature is no longer required due to availability of a
cell context menu, which provides a link to copy the value.
2020-02-12 13:14:58 -06:00
Dan Sosedoff
e2217e5f71 Add tests for ssl params 2020-02-11 10:58:40 -06:00
Dan Sosedoff
ce4aea8da1 Add ssl cert/key options 2020-02-05 22:09:13 -06:00
Dan Sosedoff
9c7f566d4d Add option to support sslrootcert parameter 2020-02-05 22:01:25 -06:00
Dan Sosedoff
9d0a0e1db1 Release 0.11.5 2019-12-16 17:15:55 -06:00
Dan Sosedoff
43a2945208 Include go version into info response 2019-12-04 20:29:23 -06:00
Dan Sosedoff
5d2ec70476 Autocomplete on all database objects 2019-12-04 19:36:09 -06:00
Jim Smith
e5c53d598c Fix for visual glitch when schema name wider than 250px 2019-12-04 18:28:14 +00:00
Dan Sosedoff
8b1f234b91 Include go version into builds 2019-11-29 13:59:50 -06:00
Dan Sosedoff
bc95e8dced Add extra styling for autocomplete 2019-11-02 13:37:52 -05:00
Dan Sosedoff
8428d268b1 Lint 2019-11-02 13:00:23 -05:00
Dan Sosedoff
7475f398b1 Add support for encrypted ssh keys 2019-11-02 12:44:04 -05:00
Dan Sosedoff
994ceca1d1 Return error when ssh key does not exist 2019-11-02 11:36:31 -05:00
Dan Sosedoff
059764d015 Release 0.11.4 2019-10-05 12:48:21 -05:00
Dan Sosedoff
7a6450091a
Code formatting and cleanup (#442)
* Formatting, extract error messages
* More refactor
* Move errors to a separate file
* Add missing file
* Misc
2019-09-29 12:16:42 -05:00
Dan Sosedoff
b6f01da232 Drop unsupported pg_dump options from connection string 2019-09-25 20:29:21 -05:00
Sylvain DOIGNON
5bb339e1a2 fix SQL export filename 2019-07-31 14:43:55 +02:00
Dan Sosedoff
c830a55a64 Release 0.11.3 2019-07-24 17:07:27 -05:00
Dan Sosedoff
f31143ba3a Set odd background color for table rows 2019-07-05 17:28:55 -05:00
Dan Sosedoff
5c3b21d711 Expland lists of objects on search 2019-07-05 16:20:46 -05:00
Dan Sosedoff
416cae3101 Add database object filter to the sidebar 2019-07-05 16:18:29 -05:00
Dan Sosedoff
819b13fe55 Restructure sidebar 2019-07-05 15:19:05 -05:00
Dan Sosedoff
2a0fd54855 Remove comments from the query before checking for restricted keywords 2019-02-25 11:43:04 -06:00
Dan Sosedoff
b83f52707a Remove LOCK/SET from restricted keywords 2019-02-20 20:29:28 -06:00
Dan Sosedoff
5bb6378e94 Switch back readonly mode after test finish 2019-02-20 18:22:44 -06:00
Dan Sosedoff
40eb74529e Reject queries that contain restricted keywords in read-only mode 2019-02-20 18:20:27 -06:00
Dan Sosedoff
d3aaf8f5db Release 0.11.2 2019-02-15 14:09:49 -06:00
Dan Sosedoff
65aae5ec95 Add extra test cases for camelCase table names 2019-02-08 14:02:36 -06:00
Dan Sosedoff
5af4332593 Fix SQL query for camelCase tables row estimation 2019-02-08 13:27:40 -06:00
Dan Sosedoff
dc1009cdd8 Release 0.11.1 2019-01-28 17:11:04 -06:00
Dan Sosedoff
44b6932202 Regenerate bindata 2019-01-28 16:45:41 -06:00
Dan Sosedoff
c32d68809b Add extra note 2019-01-28 14:22:05 -06:00
Dan Sosedoff
d48172986e Fix error when automatic user detection fails 2019-01-28 14:03:45 -06:00
Dan Sosedoff
baa587166c
Merge pull request #405 from Nhat002/fix_encode_query_to_base64_in_export
Add custome base64 encode to handle special characters on query to export result
2019-01-28 11:47:36 -06:00
Dan Sosedoff
a7959ad0fa Fix startup error when DATABASE_URL is set 2019-01-25 10:29:24 -06:00
Nhat Tran
25304f8229 Fix: missing base64.js in index.html and remove blank space 2019-01-25 12:04:21 +08:00
Nhat Tran
bc0602c523 Add custome base64 encode to handle special character 2019-01-24 15:35:16 +08:00
Dan Sosedoff
ae60604ef1 Fix typo 2019-01-16 22:54:23 -06:00
Dan Sosedoff
53c02d8914 Release 0.11.0 2018-12-24 12:57:39 -06:00
Dan Sosedoff
435a67cb5d Tweak sidebar database object counters styles 2018-12-19 12:40:28 -06:00
Dan Sosedoff
9c07ac356b Do not exit with error if local server is not running 2018-12-18 18:11:56 -06:00
Dan Sosedoff
2bd9f39da5 Fix SSH error: ssh: must specify HostKeyCallback 2018-12-14 19:56:33 -06:00
Dan Sosedoff
c4e63dcc85 Regenerate bindata 2018-12-13 22:36:38 -06:00
Dan Sosedoff
794e5a22c1 Rename command.VERSION to command.Version 2018-12-13 22:35:43 -06:00
Dan Sosedoff
eeb5245cb9 Typo fix 2018-12-13 17:56:57 -06:00
Dan Sosedoff
9c1ce91de1 Scope activity list to current database 2018-12-13 12:14:10 -06:00