Closed mfenn closed 3 months ago
Does the branch
parameter show the correct branch here?
I don't actually see a branch
parameter, just host
, port
, database
, user
, password
, tlsCAData
, tlsSecurity
, and waitUntilAvailable
.
Hmmm, it should be there via: https://github.com/edgedb/edgedb-js/blob/9c60b14e2b0ab55f2b81e36027a2ba0707a7142f/packages/driver/src/conUtils.ts#L358-L360
Oh! Maybe you're using explainConfig()
https://github.com/edgedb/edgedb-js/blob/9c60b14e2b0ab55f2b81e36027a2ba0707a7142f/packages/driver/src/conUtils.ts#L390
It is indeed missing from that table. Will fix.
Oh yeah, sorry, should have been more clear.
Oh yeah, sorry, should have been more clear.
No problem! Should be fixed up in just a few minutes.
@mfenn
Can you try the latest canary (https://www.npmjs.com/package/edgedb/v/1.6.0-canary.20240730T180738) and let me know if it works for you? If so, I'll publish a patch release.
Yep, looks good. Is there any difference between database and branch at this point?
@mfenn
Is there any difference between database and branch at this point?
"Branch" is a superset of "database". It has a few more features (like being able to copy data when creating a new branch, and some CLI commands) but from a purely data/connection perspective, branch supersedes database as a concept.
Describe the bug
resolveConnectionParams
seems to erroneously report the source of a branch as "default" when theEDGEDB_BRANCH
env variable is used, though the branch specified byEDGEDB_BRANCH
is correctly used.Reproduction We use
resolveConnectionParams
to log connection parameters when our application starts up. I ran with theEDGEDB_INSTANCE
andEDGEDB_BRANCH=example
(but not the defaultmain
).Expected behavior I would expect that it would report the source of the branch as the
'EDGEDB_BRANCH' environment variable
.Versions (please complete the following information):
2.0
):5.3+7adaf21
2.0
):5.2.2+ed96c17
edgedb-js
version (e.g.0.20.10
):1.5.8
Node v22.4.1