Skip to content
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

Auto refresh of Object Explorer on when updating objects #7892

Closed
bjorngback opened this issue Sep 2, 2024 · 11 comments
Closed

Auto refresh of Object Explorer on when updating objects #7892

bjorngback opened this issue Sep 2, 2024 · 11 comments
Assignees
Milestone

Comments

@bjorngback
Copy link

When I update something from the Object Explorer, e.g. if I open a table and change a column name, the Object Explorer still shows the old object. To get it updated I need to right click and select refresh.

Obviously it is pretty annoying to do this every time if I want to be sure that the Object Explorer is showing the correct information. I therefore suggest the improvement that when one clicks save after having updated an object, it does an automatic refresh of the Object Explorer (i.e. it automatically triggers the same refresh I get by doing right click -> refresh).

@adityatoshniwal
Copy link
Contributor

pgAdmin should auto-refresh in that case. Its a bug if it is not.

@khushboovashi
Copy link
Contributor

The child node is not getting updated if it is updated from the parent node in the object explorer.

@anthonydb
Copy link
Contributor

I was just coming here to ask about this. It would also be good if the Object Explorer automatically refreshed every time a CREATE DATABASE or CREATE TABLE statement is executed.

@adityatoshniwal
Copy link
Contributor

adityatoshniwal commented Dec 5, 2024

I was just coming here to ask about this. It would also be good if the Object Explorer automatically refreshed every time a CREATE DATABASE or CREATE TABLE statement is executed.

The problem is how do we detect that a new database or table is created.

@khushboovashi
Copy link
Contributor

I was just coming here to ask about this. It would also be good if the Object Explorer automatically refreshed every time a CREATE DATABASE or CREATE TABLE statement is executed.

Did you mean, whenever the CREATE DATABASE or CREATE TABLE executes from the Query Tool?

anilsahoo20 added a commit to anilsahoo20/pgadmin4 that referenced this issue Dec 5, 2024
@anilsahoo20 anilsahoo20 moved this from 🏗 In Progress to In Review in Current Sprint (182) Dec 5, 2024
akshay-joshi pushed a commit that referenced this issue Dec 5, 2024
…able node does not show the updated column name. #7892
@akshay-joshi akshay-joshi moved this from In Review to In Testing in Current Sprint (182) Dec 5, 2024
@akshay-joshi akshay-joshi added this to the 8.14 milestone Dec 5, 2024
@anthonydb
Copy link
Contributor

@khushboovashi
Yes, when I execute CREATE DATABASE or CREATE TABLE in the Query Tool.

I wouldn't expect pgAdmin to know about those commands run outside the tool, e.g. in psql.

@pravesh-sharma pravesh-sharma self-assigned this Dec 6, 2024
@khushboovashi
Copy link
Contributor

@khushboovashi Yes, when I execute CREATE DATABASE or CREATE TABLE in the Query Tool.

In that case, we need to manage DELETE, UPDATE statements too.

I wouldn't expect pgAdmin to know about those commands run outside the tool, e.g. in psql.

@anthonydb
Copy link
Contributor

In that case, we need to manage DELETE, UPDATE statements too.

Yes, that makes sense! I hope it is possible to implement that feature.

@pravesh-sharma
Copy link
Contributor

Hi @anthonydb,

You can submit a new feature request for it.

@pravesh-sharma
Copy link
Contributor

pravesh-sharma commented Dec 9, 2024

Tested the issue and it is working fine.

@anthonydb
Copy link
Contributor

@pravesh-sharma
Feature request created at #8250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

7 participants