Fixed a schema diff issue where string separator '_$PGADMIN$_' is visible for identical user mappings. Fixes #7228

This commit is contained in:
Akshay Joshi 2022-03-10 13:59:08 +05:30
parent adf4634459
commit 9ed2506062
3 changed files with 27 additions and 1 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_6_7
release_notes_6_6
release_notes_6_5
release_notes_6_4

View File

@ -0,0 +1,21 @@
************
Version 6.7
************
Release date: 2022-04-07
This release contains a number of bug fixes and new features since the release of pgAdmin4 6.6.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #7228 <https://redmine.postgresql.org/issues/7228>`_ - Fixed a schema diff issue where string separator '_$PGADMIN$_' is visible for identical user mappings.

View File

@ -264,11 +264,15 @@ def _get_identical_and_different_list(intersect_keys, source_dict, target_dict,
"Schema Diff: Target Dict: {0}".format(dict2[key]))
if are_dictionaries_identical(dict1[key], dict2[key], ignore_keys):
title = key
if node == 'user_mapping':
title = _get_user_mapping_name(key)
identical.append({
'id': count,
'type': node,
'label': node_label,
'title': key,
'title': title,
'oid': source_object_id,
'source_oid': source_object_id,
'target_oid': target_object_id,