Commit a2c9556
feat(data-explorer): infer Mongo dialect instead of asking for it
The source dropdown already says "MongoDB", so the form's second
mongodb/documentdb/cosmosdb/ferretdb picker read as a duplicate question.
Removed it and derived dbType from the connection string.
dbType stays load-bearing: normalizeConnectionString appends
retryWrites=false for DocumentDB and Cosmos, which reject the driver's
default and would otherwise fail writes silently. Both are identifiable by
their managed hostnames, which is what detectDbType matches (already
covered by lib/__tests__/nosql-dialects.test.ts). When detection cannot
tell, the connection's saved dbType is kept, so an explicit FerretDB
choice from an older build survives an edit.
The connection-string placeholder still follows the inferred dialect.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent e65ae98 commit a2c9556
1 file changed
Lines changed: 18 additions & 24 deletions
Lines changed: 18 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
141 | 157 | | |
142 | 158 | | |
143 | 159 | | |
| |||
168 | 184 | | |
169 | 185 | | |
170 | 186 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 187 | | |
194 | 188 | | |
195 | 189 | | |
| |||
0 commit comments