Skip to content

Commit

Permalink
Include exported 'isReferencing' relations in import (#34)
Browse files Browse the repository at this point in the history
* Include exported 'isReferencing' relations in import

* Update test_utils_relations.py

* importers: back to built-in dict
  • Loading branch information
ksuess authored Sep 18, 2024
1 parent 84fd598 commit df82c1b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 1 addition & 0 deletions news/32.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include 'isReferencing' relations in import. @ksuess
1 change: 0 additions & 1 deletion src/plone/exportimport/utils/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

RELATIONS_TO_IGNORE = [
"translationOf", # old LinguaPlone
"isReferencing", # linkintegrity
"internal_references", # obsolete
"link", # tab
"link1", # extranetfrontpage
Expand Down
16 changes: 1 addition & 15 deletions tests/utils/test_utils_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,7 @@ def test_set_relations(self, get_existing_relations):

@pytest.mark.parametrize(
"from_attribute",
[
"translationOf", # old LinguaPlone
"isReferencing", # linkintegrity
"internal_references", # obsolete
"link", # tab
"link1", # extranetfrontpage
"link2", # extranetfrontpage
"link3", # extranetfrontpage
"link4", # extranetfrontpage
"box3_link", # shopfrontpage
"box1_link", # shopfrontpage
"box2_link", # shopfrontpage
"source", # remotedisplay
"internally_links_to", # DoormatReference
],
relations_utils.RELATIONS_TO_IGNORE,
)
def test__prepare_relations_to_import_should_filter_attribute(
self, from_attribute: str
Expand Down

0 comments on commit df82c1b

Please sign in to comment.