Skip to content

Commit

Permalink
revert fd6d640 and 341a7b8
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Jun 8, 2023
1 parent 341a7b8 commit 1299639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
6 changes: 3 additions & 3 deletions src/plone/volto/browser/migrate_to_volto.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class MigrateToVolto(BrowserView):
def __call__(self):
request = self.request
self.service_url = request.get("service_url", "http://localhost:5000/html")
self.migrate_folders = request.get("migrate_folders", False)
self.migrate_default_pages = request.get("migrate_default_pages", False)
self.purge_richtext = request.get("purge_richtext", False)
self.migrate_folders = request.get("migrate_folders", True)
self.migrate_default_pages = request.get("migrate_default_pages", True)
self.purge_richtext = request.get("purge_richtext", True)
# We can still use outdated draftjs by setting slate to False on the request
self.slate = request.get("slate", True)

Expand Down
30 changes: 0 additions & 30 deletions src/plone/volto/tests/test_migrate_to_volto.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ def test_plonevolto_is_installed(self):
self.assertFalse(installer.is_product_installed("plone.volto"))

view = self.portal.restrictedTraverse("@@migrate_to_volto")
# check checkboxes
self.request.form["migrate_folders"] = True
self.request.form["migrate_default_pages"] = True
self.request.form["purge_richtext"] = True
self.request.form["form.submitted"] = True
view()

Expand All @@ -70,10 +66,6 @@ def test_items_are_migrated_to_folderish(self):
)

view = self.portal.restrictedTraverse("@@migrate_to_volto")
# check checkboxes
self.request.form["migrate_folders"] = True
self.request.form["migrate_default_pages"] = True
self.request.form["purge_richtext"] = True
self.request.form["form.submitted"] = True
view()

Expand Down Expand Up @@ -113,9 +105,6 @@ def test_folders_are_migrated(self):
self.assertEqual(self.portal["folder1"].portal_type, "Folder")

view = self.portal.restrictedTraverse("@@migrate_to_volto")
self.request.form["migrate_folders"] = True
self.request.form["migrate_default_pages"] = True
self.request.form["purge_richtext"] = True
self.request.form["form.submitted"] = True
view()

Expand Down Expand Up @@ -145,10 +134,6 @@ def test_collections_are_migrated(self):
self.assertEqual(self.portal["collection"].portal_type, "Collection")

view = self.portal.restrictedTraverse("@@migrate_to_volto")
# check checkboxes
self.request.form["migrate_folders"] = True
self.request.form["migrate_default_pages"] = True
self.request.form["purge_richtext"] = True
self.request.form["form.submitted"] = True
view()

Expand Down Expand Up @@ -195,10 +180,6 @@ def test_default_pages_are_migrated(self):
folder.setDefaultPage("doc")

view = self.portal.restrictedTraverse("@@migrate_to_volto")
# check checkboxes
self.request.form["migrate_folders"] = True
self.request.form["migrate_default_pages"] = True
self.request.form["purge_richtext"] = True
self.request.form["form.submitted"] = True
view()

Expand Down Expand Up @@ -257,10 +238,6 @@ def test_default_page_collections_are_migrated(self):
self.assertEqual(len(collection.results()), 2)

view = self.portal.restrictedTraverse("@@migrate_to_volto")
# check checkboxes
self.request.form["migrate_folders"] = True
self.request.form["migrate_default_pages"] = True
self.request.form["purge_richtext"] = True
self.request.form["form.submitted"] = True
view()

Expand Down Expand Up @@ -314,10 +291,6 @@ def test_default_page_news_are_not_migrated(self):
self.assertIn("news", folder.keys())

view = self.portal.restrictedTraverse("@@migrate_to_volto")
# check checkboxes
self.request.form["migrate_folders"] = True
self.request.form["migrate_default_pages"] = True
self.request.form["purge_richtext"] = True
self.request.form["form.submitted"] = True
view()

Expand Down Expand Up @@ -356,9 +329,6 @@ def test_richtext_is_migrated(self):
self.assertTrue(isinstance(doc.text, RichTextValue))

view = self.portal.restrictedTraverse("@@migrate_to_volto")
self.request.form["migrate_folders"] = True
self.request.form["migrate_default_pages"] = True
self.request.form["purge_richtext"] = True
self.request.form["form.submitted"] = True
view()

Expand Down

0 comments on commit 1299639

Please sign in to comment.