Commit Graph

365 Commits

Author SHA1 Message Date
jennifersp
229db264b3 fix push newline bug 2021-11-10 11:58:36 -08:00
Zach Musgrave
20e4f9b015 Merge pull request #2364 from dolthub/zachmu/sql-create-polish
Better support for sql outside a database directory
2021-11-09 16:50:38 -08:00
Zach Musgrave
114b62bf30 PR feedback 2021-11-09 16:34:27 -08:00
Zach Musgrave
af4842768f Fixed a couple more tests 2021-11-09 16:21:58 -08:00
Zach Musgrave
5a8a95d369 Fixed tests and added additional ones. Fixed a bug in email check for dolt commit 2021-11-09 15:04:59 -08:00
Zach Musgrave
b3eaff2ec1 More tests of config, and made it so that SQL envs with no local config write updates to global config 2021-11-09 13:16:13 -08:00
jennifersp
e10587d4a0 Merge pull request #2356 from dolthub/jennifer/dump-json-format
dump - add json format
2021-11-09 11:20:46 -08:00
Maximilian Hoffman
45a3374808 DOLT_REPLICATE_HEADs_STRATEGY option, fetch all branches from remote before every read (#2346)
* save version with defaultConfig in session -- todo remove and make PersistedSession

* add PersistedSession, and DoltSession interface to switch

* fmt

* fixup test for persistedSession

* PersistedSession progress, interfaces and enginetests

* All DsessFromSess references fixed

* delete unnuecessary lines

* Comments for dolt session

* Dolt session tests

* save bats progress

* formatting

* GMS version

* Bump GMS version

* add license header

* fix multi-db errors

* try copyright again

* make test deterministic

* higher connection timeout default

* sever config ordering

* PR fixes

* PR fixes

* config rewrite progress

* server config refactor

* PR cleanup

* delete lines

* add go tests, refactor persistent global initialization

* PR fixes

* delete more lines

* small PR cleanup

* try to fix data race

* better constructor names

* zach don't like --server flag

* edge cases around disabling replication

* missed line in merge

* Skip two tests i fixed in follow-on PR

* commit hook warning progress

* merge two config prs

* fix nondeterministic bats

* zach's comments

* bump bats sql-shell expect timeout

* non-server progress

* replication warnings

* Get and set config bool types

* More bats, small PR fixes

* missing header

* fix bats panic

* PR touch ups

* flag, logic and tests for pulling multiple heads to replica

* change name because enginetest, fix impl typo

* missed file commit, config var name changed to strategy

* delete unnecessary lines

* progress, need to merge other PR

* prototype working

* delete some lines

* don't make a new branch until after fetch

* zach's comments

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* fix import cycle

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* fix import cycle, sys vars in sqle

* style fixes, one more bats

* split heads spec and all heads into two variables

* remove unnecessary rebase

* bad merge duplicated bats

* fix on demand fetch after multi head pull changes

* correctness, bats and zach fixes

* drop unnecessary server test

* bad bats title

* small PR fixes

* correctness fix for detached head / fetch branch

* fix comment

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2021-11-09 10:37:09 -08:00
jennifersp
eb338218ed fix wordings 2021-11-09 09:46:05 -08:00
Zach Musgrave
9873a81b54 More tests 2021-11-09 09:03:40 -08:00
jennifersp
5973538694 fix error msgs 2021-11-08 15:39:05 -08:00
Zach Musgrave
e724926b18 I don't know Tim, is fun necessary? 2021-11-08 13:28:51 -08:00
jennifersp
62f80f13fc Merge pull request #2347 from dolthub/jennifer/fix-dolt-fetch-bug
fix fetch newline issue
2021-11-08 13:14:14 -08:00
jennifersp
148484a2fa update remotes.bats 2021-11-08 12:14:18 -08:00
jennifersp
105c8f8321 combine uptodate detch test 2021-11-08 12:01:55 -08:00
jennifersp
4f9c26add2 add json result format 2021-11-08 11:54:53 -08:00
Max Hoffman
faf2e45f91 merge replication warnings PR 2021-11-08 10:26:21 -08:00
jennifersp
7532713f32 fix bats test 2021-11-05 15:57:32 -07:00
Zach Musgrave
21a17f0c7b Test fix 2021-11-05 15:53:12 -07:00
Zach Musgrave
dd24ced73f Unskipped test 2021-11-05 15:46:55 -07:00
jennifersp
04b77f3d80 add fixes 2021-11-05 14:58:05 -07:00
jennifersp
4a0d170091 Update remotes.bats 2021-11-05 13:46:26 -07:00
jennifersp
feab054d03 Merge branch 'main' into jennifer/fix-dolt-fetch-bug 2021-11-05 12:40:08 -07:00
jennifersp
eaa2c426a5 add test for fetch new line issue 2021-11-05 11:44:02 -07:00
Zach Musgrave
d0a33ab8bc Added a skipped test for running dolt sql outside a repo 2021-11-04 20:20:29 -07:00
Zach Musgrave
9272181c0d Fixed and added tests 2021-11-04 20:09:54 -07:00
Zach Musgrave
0b4d4bb16e Fixed bug in sql server startup 2021-11-04 17:09:52 -07:00
Zach Musgrave
37c2137557 merge main 2021-11-04 14:12:38 -07:00
jennifersp
cd6b016457 fix dump.bats typo 2021-11-04 11:08:40 -07:00
jennifersp
1af46fca87 fix dump cmd 2021-11-04 11:00:27 -07:00
jennifersp
51ed0fd79e add dump csv format 2021-11-04 09:47:11 -07:00
jennifersp
15e3498ba5 Merge pull request #2339 from dolthub/aaron/jennifer-branch-surgery-two
dolt dump: Add dolt dump command and bats tests.
2021-11-04 09:36:39 -07:00
Maximilian Hoffman
9db9a0f9dc dolt_fetch error when working directory != server directory (#2340)
* use database tempfile for mrEnv

* sql-server bats for fetch/working dir issue

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* snazzier name

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2021-11-03 17:33:17 -07:00
Zach Musgrave
8a47db3dcf Refactoring sql command, added a failing bats test 2021-11-03 17:00:45 -07:00
jennifersp
efef83b167 dolt dump: Add dolt dump command and bats tests. 2021-11-03 15:21:46 -07:00
Zach Musgrave
c255cf9787 Fixed / skip tests involving dropping databases 2021-11-03 10:44:49 -07:00
Timothy Sehn
d8cc144ee0 Add skipped bats for adding a primary key to a column with NULL in it 2021-11-02 16:31:28 -07:00
Zach Musgrave
17a8f13f14 SQL command line test for creating databases 2021-11-02 16:01:21 -07:00
Zach Musgrave
1cdf3c7b5b Added tests of error conditions 2021-11-02 15:37:48 -07:00
Zach Musgrave
58d8e8740f Server tests for creating new databases 2021-11-02 15:32:52 -07:00
Maximilian Hoffman
d11f5ec41b default session implements persistable interface, can save SQL variables (#2270)
* save version with defaultConfig in session -- todo remove and make PersistedSession

* add PersistedSession, and DoltSession interface to switch

* fmt

* fixup test for persistedSession

* PersistedSession progress, interfaces and enginetests

* All DsessFromSess references fixed

* delete unnuecessary lines

* Comments for dolt session

* Dolt session tests

* save bats progress

* formatting

* GMS version

* Bump GMS version

* add license header

* fix multi-db errors

* try copyright again

* make test deterministic

* higher connection timeout default

* sever config ordering

* PR fixes

* PR fixes

* config rewrite progress

* server config refactor

* PR cleanup

* delete lines

* add go tests, refactor persistent global initialization

* PR fixes

* delete more lines

* small PR cleanup

* try to fix data race

* better constructor names

* zach don't like --server flag

* edge cases around disabling replication

* missed line in merge

* Skip two tests i fixed in follow-on PR

* merge two config prs

* fix nondeterministic bats

* zach's comments

* bump bats sql-shell expect timeout

* GMS and integrator race to access system vars; need to decide whether to force integrator to initialize, or make GMS init private; leaving in GMS for now
2021-11-01 16:49:00 -07:00
Aaron Son
bd04b35c98 Merge pull request #2302 from dolthub/aaron/dolt-deleted-branch-handling
checkout,sql-server: Make `dolt checkout` and sql-connect-to-branch functionality available even when configured default branches do not exist.
2021-10-29 10:46:07 -07:00
Vinai Rachakonda
4a5a033c5d Expand Client Tests to include sql functions (#2303) 2021-10-29 10:18:38 -07:00
Vinai Rachakonda
3ddaf74aa8 Make sure sql shell context uses the session stored database (#2298) 2021-10-28 17:03:22 -07:00
Maximilian Hoffman
f12196df03 dolt_branches INSERT/UPDATE commit replication (#2301)
* branch table replicates

* Change param type
2021-10-28 15:28:31 -07:00
Aaron Son
87d0f702f5 go/libraries/doltcore/sqle/dsess: Further rework sql database initialization to allow revision specifiers to work when @@GLOBAL.dolt_default_branch specifies a non-existant branch. 2021-10-27 15:52:18 -07:00
Aaron Son
0e907557fc go/libraries/doltcore/sqle: Rework InitialDbState to allow for revision specifiers to continue to work after the default branch is deleted. 2021-10-27 12:08:50 -07:00
Aaron Son
9e77f1cd13 go/libraries/doltcore/env/actions: branch.go: Fix dolt checkout so it works even if the currently checked out branch does not exist. 2021-10-27 11:09:54 -07:00
Tim Sehn
4298ac70b6 Merge pull request #2294 from dolthub/tim/skipped-bats-for-multidb-bug
Skipped bats for --multi-db-dir bug
2021-10-26 13:54:48 -07:00
Timothy Sehn
0850338a36 Added skipped bats tests for a bug in multi db mode when joining two tables of the same name in two different databases 2021-10-26 12:59:01 -07:00