mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the Browser tree gets disappears when scrolling sequences. Fixes #7100
This commit is contained in:
parent
38e5ded821
commit
374c5e952f
@ -11,6 +11,7 @@ notes for it.
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
|
release_notes_6_5
|
||||||
release_notes_6_4
|
release_notes_6_4
|
||||||
release_notes_6_3
|
release_notes_6_3
|
||||||
release_notes_6_2
|
release_notes_6_2
|
||||||
|
20
docs/en_US/release_notes_6_5.rst
Normal file
20
docs/en_US/release_notes_6_5.rst
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
************
|
||||||
|
Version 6.5
|
||||||
|
************
|
||||||
|
|
||||||
|
Release date: 2021-02-10
|
||||||
|
|
||||||
|
This release contains a number of bug fixes and new features since the release of pgAdmin4 6.4.
|
||||||
|
|
||||||
|
New features
|
||||||
|
************
|
||||||
|
|
||||||
|
|
||||||
|
Housekeeping
|
||||||
|
************
|
||||||
|
|
||||||
|
|
||||||
|
Bug fixes
|
||||||
|
*********
|
||||||
|
|
||||||
|
| `Issue #7100 <https://redmine.postgresql.org/issues/7100>`_ - Fixed an issue where the Browser tree gets disappears when scrolling sequences.
|
@ -208,10 +208,16 @@ class SequenceView(PGChildNodeView, SchemaDiffObjectCompare):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
res = []
|
res = []
|
||||||
|
show_internal = False
|
||||||
|
# If show_system_objects is true then no need to hide any sequences.
|
||||||
|
if self.blueprint.show_system_objects:
|
||||||
|
show_internal = True
|
||||||
|
|
||||||
SQL = render_template(
|
SQL = render_template(
|
||||||
"/".join([self.template_path, self._NODES_SQL]),
|
"/".join([self.template_path, self._NODES_SQL]),
|
||||||
scid=scid,
|
scid=scid,
|
||||||
seid=seid
|
seid=seid,
|
||||||
|
show_internal=show_internal
|
||||||
)
|
)
|
||||||
status, rset = self.conn.execute_dict(SQL)
|
status, rset = self.conn.execute_dict(SQL)
|
||||||
if not status:
|
if not status:
|
||||||
@ -231,8 +237,7 @@ class SequenceView(PGChildNodeView, SchemaDiffObjectCompare):
|
|||||||
status=200
|
status=200
|
||||||
)
|
)
|
||||||
|
|
||||||
sequence_nodes = self._get_sequence_nodes(rset['rows'])
|
for row in rset['rows']:
|
||||||
for row in sequence_nodes:
|
|
||||||
res.append(
|
res.append(
|
||||||
self.blueprint.generate_browser_node(
|
self.blueprint.generate_browser_node(
|
||||||
row['oid'],
|
row['oid'],
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
SELECT cl.oid as oid, relname as name, relnamespace as schema
|
SELECT cl.oid as oid, relname as name, relnamespace as schema
|
||||||
FROM pg_catalog.pg_class cl
|
FROM pg_catalog.pg_class cl
|
||||||
|
{% if show_internal %}
|
||||||
|
LEFT JOIN pg_catalog.pg_depend d1 ON d1.refobjid = cl.oid AND d1.deptype = 'i'
|
||||||
|
{% endif %}
|
||||||
WHERE
|
WHERE
|
||||||
relkind = 'S'
|
relkind = 'S'
|
||||||
{% if scid %}
|
{% if scid %}
|
||||||
|
Loading…
Reference in New Issue
Block a user