pgadmin-org / pgadmin-org/pgadmin4

View Editor Loses formatting between edits

Open
#9,838 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

The formatting of the View editor is not retained between editing sessions.
This is especially annoying when it moves things that were put on separate lines for complex joins or concat and make them single lined and hard to read / see.

To Reproduce

Open the View Editor and us the automatic formatting CTRL + K.
Save
Open the View Editor again and the formatting has been lost.

Expected behavior

Formatting to be retained between saves.

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

Start by reproducing the issue in the View Editor: apply automatic formatting with Ctrl+K, save the view, close it, and reopen it. Trace how the editor content is saved and loaded, then verify that formatting is unchanged across repeated save and reopen cycles.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
database, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.