-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default ServerGroup to user loading 0 Servers #6855
Add default ServerGroup to user loading 0 Servers #6855
Conversation
* check for 0 ServerGroups as result of upload and re-add the default ServerGroup * remove duplicate Server delete loop Fixes pgadmin-org#6602
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes made in load_database_servers function doesn't make sense.
If any user cleared all the servers through command line and then wants to add server from the UI, then this fix will never be executed.
You should add this change in clear_database_servers itself.
I've only started digging into the code, so happy to adjust, but just wanted to check: a. does -- from the Is there some way to clear the servers from the commandline without importing? b. I do like the idea of putting a check like this in BUT if we clear the servers from a user, then add a default Another option would be to clear user servers & create a default in Happy to make requested changes, but just want to clarify the expected results. |
/path/to/python /path/to/setup.py --load-servers input_file.json --replace Import/Export server functionality has UI and CLI based both the implementation.
Agreed.
As per the current implementation, pgAdmin does not allow the default server-group to be deleted from the left tree browser. Please let me know if you still have any doubt. |
Thx for triggering the tests, @khushboovashi ! Looking at the failures briefly this morning, looks like
Failure 1 seems like something beyond the scope of this PR, though I didn't see other recent-ish (2-3 days old) PRs failing that. |
Fixes #6602