Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wagtail 6.3 #1161

Merged
merged 5 commits into from
Jan 7, 2025
Merged

Update wagtail 6.3 #1161

merged 5 commits into from
Jan 7, 2025

Conversation

SaptakS
Copy link
Contributor

@SaptakS SaptakS commented Dec 30, 2024

Description

Fixes #1158 .

Changes proposed in this pull request:

  • Updates Wagtail to 6.3 (LTS) and other necessary packages
  • Updates createdevdata code to use fixtures and local images for the admin.

Type of change

  • Bug fix
  • New feature
  • Version update
  • Config changes
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires an admin update after deploy
  • Includes a database migration removing or renaming a field

Testing

How should the reviewer test this PR?
Check that everything works without anything being broken.

@chigby chigby self-assigned this Jan 6, 2025
Copy link
Contributor

@chigby chigby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this overall update is great. There's one small change I would add:

The release notes for wagtail 6.0 mention the Copy view being enabled by default. I think it's worth adding copy_view_enabled = False to ScanResultAdmin to avoid having the (broken) "Copy" action show up on the scan result list, as shown below.

image

requirements.txt Outdated
wagtail==5.2.6 \
--hash=sha256:133ec00787d83ab7fa06255641aa855e7fd75f07d04af473bd98fe782c736595 \
--hash=sha256:5497eecf8ffef7996e2ac348e90444deac71e54d3334eca27683c29da8754550
wagtail==6.3.1 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might as well make this wagtail 6.3.2, which is now released.

Comment on lines 35 to 36
print(directories)
print(file_names)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup: print calls can be removed.

local_storage = FileSystemStorage(os.path.join(fixtures_dir, "media"))
self._copy_files(local_storage, "")
call_command("loaddata", fixture_file, verbosity=4)
print(CustomImage.objects.all())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup: print call can be removed.

@SaptakS
Copy link
Contributor Author

SaptakS commented Jan 7, 2025

@chigby addressed your comments.

@chigby
Copy link
Contributor

chigby commented Jan 7, 2025

@SaptakS Did you see the mention of wagtail 6.3.2?

@SaptakS
Copy link
Contributor Author

SaptakS commented Jan 7, 2025

Aah yes. Missed that.

@chigby chigby merged commit 7bba785 into develop Jan 7, 2025
2 checks passed
@chigby chigby deleted the update-wagtail-6.3 branch January 7, 2025 22:04
@zrobert7 zrobert7 mentioned this pull request Jan 15, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Wagtail 6.3.2
2 participants