pgadmin-org / pgadmin-org/pgadmin4

Auto Refresh of Object Explorer Upon CREATE, ALTER, DELETE, UPDATE in Query Tool

Open
#8,250 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
3.8k
Forks
891
Avg merge
4d 7h
Merged PRs (30d)
8

Description

Per the conversation in https://github.com/pgadmin-org/pgadmin4/issues/7892, as a user I would like the Object Explorer tree to refresh automatically after I run CREATE, ALTER, DELETE and UPDATE statements in the pgAdmin tool. Currently, to see changes following those statements, I must manually refresh the object tree.

For example, in these scenarios:

  • If I create a table, the tree should refresh to show that table.
  • Conversely, if I delete a table, the tree should refresh to show that table is removed.
  • If I run an ALTER statement to add a column to a table, the tree would refresh and show that new column.

And so forth ...

This behavior is similar to what is found in DataGrip, which automatically instrospects all objects after such statements.

Describe alternatives you've considered

Manually refreshing is the only alternative, but that's an extra step.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the Query Tool and Object Explorer but no files or tests. Start by tracing how Query Tool statements are executed and how the Object Explorer is refreshed, then verify the behavior for CREATE, ALTER, DELETE, and UPDATE statements. Done means the tree reflects each listed change without a manual refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.