0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

15729 Commits

Author SHA1 Message Date
Sage Abdullah
801eccc930
Release notes for #10709 2023-08-02 15:45:14 +01:00
Sage Abdullah
c9fd6b893f
Run tests in parallel in some of the GitHub Actions workflow setup 2023-08-02 15:31:58 +01:00
Sage Abdullah
6fed2c8c62
Generate coverage HTML report and upload as GitHub Actions artifact and summary 2023-08-02 14:48:57 +01:00
Sage Abdullah
3a38ce08fd
Ensure file names in tests are unique
Prevent files from being renamed with a unique suffix when running tests in parallel
2023-08-02 14:45:54 +01:00
Sage Abdullah
19123cedc6
Bump actions@setup-python to v4 and add caching for pip 2023-08-02 14:45:54 +01:00
Sage Abdullah
0a7fd3f64e
Add concurrency setting to coverage configuration 2023-08-02 14:45:54 +01:00
Sage Abdullah
00d329906f
Add tblib to testing dependencies
Needed to get better tracebacks when running tests in parallel.
2023-08-02 14:45:53 +01:00
LB Johnston
fbde6118b7 Update npm scripts
- Add new stylelint fix script & generic 'fix' (all) script in npm scripts.
- Disable autofix on `stylelint-declaration-strict-value` as this requires a custom function to be created.
2023-08-02 21:03:27 +10:00
LB Johnston
956db6adcf Add changelog for #10682 2023-08-02 21:01:56 +10:00
LB Johnston
fb340f1971 Remove CommentApp state update util
- The `update` util's types are not compatible with future TS v5 adoption.
- This util is simply a wrapper around `Object.assign` and only used in three places.
- Instead use the Object.assign in place for simplicity instead and remove the `update` util.
2023-08-02 21:00:25 +10:00
LB Johnston
1a95163138 Update eslint configs & align linting changes
- Align JS with latest Eslint package updates
- Update configs to ignore new defaults not required in test files
- Update Controller js usage & configs for classProperty naming rules
- Remove eslint ignore directives no longer required due to changed defaults
2023-08-02 21:00:25 +10:00
LB Johnston
35dfdea89c Update formatting - Prettier 3.0
- Run formatting with latest version of Prettier
2023-08-02 21:00:25 +10:00
LB Johnston
614defa6f9 Update npm packages (linting/testing/formatting)
- Update various linting packages to align with their latest versions, including fixes.
- Update Prettier to version 3 & remove the need for trailingComma: all (this is now the default), adopt formatting changes
- Sync up Jest types with the Jest version used (missed in previous Jest upgrade) #10043 / #10598
2023-08-02 21:00:25 +10:00
LB Johnston
46905db76e Move semgrep to after other linting checks
- Avoid failing all other checks if sempgrep is not compatible on an environment
2023-08-02 20:59:54 +10:00
Sage Abdullah
03737672c7
Update latest.txt for 5.1 2023-08-01 15:02:56 +01:00
Sage Abdullah
6f089f7728
Fill in release date for 5.1 2023-08-01 14:30:34 +01:00
Sage Abdullah
fd10bde656
Fetch new translations from Transifex 2023-08-01 14:29:42 +01:00
Sage Abdullah
d88ee0c595
Group 5.1 upgrade considerations by impact 2023-08-01 13:36:16 +01:00
Sage Abdullah
e8a36191d2
Group 5.2 upgrade considerations by impact 2023-08-01 13:36:16 +01:00
Thibaud Colas
23cf9762df Update tutorial screenshots for Wagtail v5.1 2023-08-01 13:15:08 +01:00
Thibaud Colas
cc2a6bcc02 Move permissions consolidation and snippet enhancements to their own release notes sections 2023-08-01 13:15:08 +01:00
Sage Abdullah
ee54eac93b
Fix missing space typo in GroupPagePermission warning 2023-08-01 10:01:11 +01:00
Sage Abdullah
84be5ba99b
Fix incorrect GroupPagePermission import in 5.1 release notes 2023-08-01 09:49:01 +01:00
Robert Rollins
9d6715e3dd Corrected a typo in {% page_header_buttons %}
Fixes #10730
2023-08-01 07:43:41 +10:00
Andy Chosak
d6ab9db01f
Don't update the reference index while deleting it
The rebuild_reference_index management command starts by
deleting the entire ReferenceIndex table.

In Wagtail versions 4.1 and 4.2, all models are tracked in the
reference index. Unfortunately this also includes the
ReferenceIndex model itself. This is changed in 5.0 to only track certain Wagtail-related models [0].

This means that when rebuild_reference_index runs in versions
4.1 or 4.2, and deletes the ReferenceIndex table, it runs the code that checks whether ReferenceIndex instances have any
references.

If the index contains a large number of references (as could
happen if an upgrade to 4.1 built an index for a non-Wagtail
model), this process becomes extremely slow. There's no need
for the rebuild_reference_index command to update the index
when deleting it, so this can be significantly optimized by
disabling auto update here.

[0] https://docs.wagtail.org/en/stable/releases/5.0.html#referenceindex-no-longer-tracks-models-used-outside-of-wagtail
2023-07-31 15:28:50 +01:00
Sage Abdullah
3179ea06bb
Add migration to replace JSON null values with empty objects in log entries' data 2023-07-31 15:12:22 +01:00
Sage Abdullah
5df19920df
Guard against TypeError in 0088_fix_log_entry_json_timestamps migration
Old logs may have the data set to JSON `null` instead of an empty JSON
object `{}`.

See https://github.com/wagtail/wagtail/pull/8021#issuecomment-1658082683
and https://github.com/wagtail/wagtail/pull/9590#discussion_r1279096075
for more details.
2023-07-31 14:11:58 +01:00
Sage Abdullah
1f1d57f621
Fix search_promotions 0004_copy_queries migration for long-lived Wagtail instances
This migration would fail on Wagtail instances that have been around
since v0.5 (when we still used django-south), because the column order
of the wagtailsearch_querydailyhits table is different from the newly-created
wagtailsearchpromotions_querydailyhits.

If you hit this issue, you deserve a 🌟
2023-07-31 11:27:55 +01:00
Storm Heg
041cdd227d
Use bakerydemo as project in Squash (#10721)
* Use bakerydemo as project in Squash

This replaces the default project created by `wagtail start`.

* Add CSRF_TRUSTED_ORIGINS to local.py

Co-authored-by: sag᠎e <laymonage@gmail.com>

---------

Co-authored-by: sag᠎e <laymonage@gmail.com>
2023-07-28 13:55:50 +02:00
Sage Abdullah
39a723f9d1
Release notes for #10174 2023-07-28 09:26:57 +01:00
Sage Abdullah
7fca33c47d
Fix preview panel iframe not loading immediately when preview panel is opened in snippets 2023-07-28 09:25:45 +01:00
Sage Abdullah
0eda6a0a49
Fix loading spinner being shown indefinitely in preview panel 2023-07-28 09:25:45 +01:00
Sage Abdullah
9122ab2aee
Fix initial size of 'Preview unavailable' content in preview panel 2023-07-28 09:25:45 +01:00
Sage Abdullah
dec8ec47ed Bump What's new help menu item to 5.2 2023-07-26 19:49:19 +01:00
Sage Abdullah
fad37fd232
Add docs for migrating from modeladmin to snippets 2023-07-26 16:04:35 +01:00
LB (Ben Johnston)
a6a91e1a01 Update FUNDING.yml with Open Collective
Will go to https://opencollective.com/wagtail
2023-07-25 07:05:46 +10:00
Sage Abdullah
89ce8824ec
Always set help text element ID for form fields with help text in field.html template 2023-07-24 10:36:39 +01:00
Sage Abdullah
c220662eed Fix link in custom HTML attributes in Panels documentation 2023-07-21 06:36:11 +10:00
Jake Howard
69724e4e3a Create preview-aware & page-enhanced cache template tags
This can be used in other places, but ensures caches are invalidated
whenever something about a page changes.

- Add a util to get wagtail-specific fragment cache keys
- Don't pollute context when injecting site variable
- Add documentation on wagtail fragment caching
- Define an intelligent cache key for pages
- Allow the components of the cache key to be easily modified
- Note that some manual changes may not create a new cache key

Co-authored-by: Andy Babic <andyjbabic@gmail.com>

Closes #5074
2023-07-20 08:24:09 +10:00
LB Johnston
412b71ac1c Update Sphinx Wagtail Theme to v6.1.1 2023-07-20 07:50:33 +10:00
Dan Hayden
2ed1b33bb8 fix code block typo in streamfield_migrations.md 2023-07-20 07:48:09 +10:00
LB Johnston
b94f16e67c Fix a few minor typos in the 5.1 release notes / changelog 2023-07-19 11:34:17 +01:00
Matt Westcott
112fa6b72d
Set an AutocompleteField on FullFeaturedSnippet so TestFilterSetClassSearch works correctly 2023-07-19 11:05:34 +01:00
dependabot[bot]
f66cb7cbb5 Bump word-wrap from 1.2.3 to 1.2.4 in /client/tests/integration
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-19 18:07:56 +10:00
dependabot[bot]
b57b90fa43 Bump word-wrap from 1.2.3 to 1.2.4
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-19 17:54:10 +10:00
Sage Abdullah
a71232df7b Set up release notes for 5.2 2023-07-19 17:53:26 +10:00
Sage Abdullah
5ee1c413ce Version bump to start work on 5.2 2023-07-19 17:53:26 +10:00
Sage Abdullah
64f496a2e1 Remove old versionadded / versionchanged notes 2023-07-19 17:53:26 +10:00
Sage Abdullah
9f48a8af94 Fix incorrect versionchanged number for user_page_permissions deprecation 2023-07-19 17:53:26 +10:00
zerolab
eb0fbdbb9e Bump target python version to 3.8 in Makefile 2023-07-19 17:52:17 +10:00