You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a profile setup and then you try to setup a new one, it will ask if you want to overwrite existing entry. It just adds another entry and does not overwrite it.
dbt init a new project and verify the connection in profile.yml
inside the existing project run dbt init again and when it asks you to overwrite the connection choose yes.
There are now 2 entries in profile.yml for it
Expected Behavior
No response
Steps To Reproduce
No response
Relevant log output
No response
Environment
- OS:
- Python:
- dbt:
What database are you using dbt with?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
@leahwicz I also wasn't able to reproduce the issue where two profile entries were created, but there definitely is a bug where the user isn't asked for permission to overwrite an existing profile entry. The above PR addresses that.
@leahwicz I was not able to replicate the original described behavior either.
I reviewed @NiallRees's contribution which is perfectly fine code wise, I was unable to replicate that failure-to-ask bug as well.
I tested this on 1.0.0 and 1.0.1 with the same results. Can you both provide the versions you were working with so I can be sure I'm comparing apples to apples?
@NiallRees Never mind my previous comment, that bug is confirmed as is it's fix (thanks again).
I wasn't testing it correctly, mea culpa (the bug only occurs with custom profile_template.yml, which I missed in the first pass)
@leahwicz Let's close this ticket as addressing the issue Niall found and we can open a new one for the double-entry if you can show me how to reproduce it.
Is there an existing issue for this?
Current Behavior
If you have a profile setup and then you try to setup a new one, it will ask if you want to overwrite existing entry. It just adds another entry and does not overwrite it.
dbt init
again and when it asks you to overwrite the connection choose yes.There are now 2 entries in profile.yml for it
Expected Behavior
No response
Steps To Reproduce
No response
Relevant log output
No response
Environment
What database are you using dbt with?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: