Sage Abdullah
3f5ed68e58
Add WagtailMenuRegisterable overrides in ModelViewSet
...
This adds model-related defaults for the menu item label and class
2023-08-15 11:53:43 +01:00
Sage Abdullah
00681e27a9
Enforce ModelViewSet to define a model
2023-08-15 11:53:43 +01:00
Sage Abdullah
2e82ea0113
Create base ViewSetGroup class
2023-08-15 11:53:42 +01:00
Sage Abdullah
fb57cdad7c
Move ModelViewSet.icon to ViewSet.icon
2023-08-15 11:53:35 +01:00
Sage Abdullah
b12dc33c21
Make base ViewSet class extend WagtailMenuRegisterable
2023-08-15 11:52:48 +01:00
Sage Abdullah
332533301a
Create WagtailMenuRegisterable and WagtailMenuRegisterableGroup classes
2023-08-15 09:12:32 +01:00
Matt Westcott
e0b0d03cf0
Release note for #10782
2023-08-15 01:33:16 +01:00
Matt Westcott
9ff0f10310
Mention model_name in docstrings
2023-08-15 01:31:16 +01:00
Matt Westcott
485545a983
Allow ViewSet subclasses to customise url_prefix and url_namespace logic
...
Alternative approach to #10766 , as per https://github.com/wagtail/wagtail/pull/10766#issuecomment-1675043897
2023-08-15 01:31:16 +01:00
Sage Abdullah
0c6275c687
Update latest.txt for 5.1.1
2023-08-14 15:40:25 +01:00
Sage Abdullah
ea8f45be85
Fill in release date for 5.1.1
2023-08-14 15:03:51 +01:00
Sage Abdullah
0056bfa480
Fetch new translations from Transifex
2023-08-14 15:02:56 +01:00
Florent Lebreton
e7bb3e9d22
Fix read_only panels for fields with translatable choice labels
2023-08-10 11:16:13 +01:00
Storm B. Heg
1c12d96457
Add WagtailTestUtils.get_soup()
method to get a BeautifulSoup
object
2023-08-10 10:10:01 +01:00
Sage Abdullah
f0cfa62bda
Release notes for #10768
2023-08-10 09:17:44 +01:00
Sage Abdullah
c56ec67a39
Introduce BooleanColumn for showing boolean values as tick/cross icons
2023-08-10 09:11:26 +01:00
Sage Abdullah
d639cbbf4c
Call out ModelAdmin migration guide in 5.1 upgrade considerations
2023-08-10 09:11:26 +01:00
Sage Abdullah
133da4c3a9
Add docs for migrating ModelAdminGroup to SnippetViewSetGroup
2023-08-10 09:11:25 +01:00
Sage Abdullah
fd2a42955d
Show not-None falsy values instead of blank in generic table cell template
2023-08-10 09:11:25 +01:00
LB Johnston
8fbf5df3f2
Docs - fix small typo in HTML layout
2023-08-09 19:50:59 +10:00
LB Johnston
b9b444fd70
Clean up unit tests that passed a function/data to Promise.resolve
...
- Passing anything to Promise.resolve just means that will be the return value of the promise (.then)
- This does not actually run the function (e.g. in the case of requestAnimationFrame)
- Avoiding unit tests that could cause confusion in the future
2023-08-09 09:00:34 +10:00
LB Johnston
db42d56bea
Add changelog for #10742
2023-08-05 10:06:31 +10:00
Storm B. Heg
1dba117c2a
Update pre-commit hooks
...
Some linters and formatters were updated in 35dfdea
, but that did not
include the versions used by pre-commit.
2023-08-05 10:04:07 +10:00
Storm B. Heg
2c43ddbbd3
Add support for options/attrs in Telepath widgets & add required/aria-describedby
...
- This allows us to pass extra data for the widget to use in a backwards-compatible way.
- FieldBlock: render 'required' and 'aria-describedby' attributes when appropriate
- Ensure options passed to `render` override defaults
- FieldBlock: add test proving options are constructed and passed down
- Allow Telepath's widget rendering to take options
- Include extra accessibility-related attributes in html output
- Resolves missing required attribute on input elements for required fields
- Resolves missing aria-describedby attribute on input element when the field has help text.
- Partial work on #10300
2023-08-05 08:55:53 +10:00
Sage Abdullah
ebbd5d0767
Remove no_output_timeout and only use 2 CPU cores for running tests on CircleCI
2023-08-04 12:33:01 +01:00
Sage Abdullah
47e2705d19
Revert "Use file-based SQLite database when running tests on CircleCI"
...
This reverts commit bc71a28955
.
2023-08-04 11:49:22 +01:00
Sage Abdullah
bc71a28955
Use file-based SQLite database when running tests on CircleCI
2023-08-04 09:45:51 +01:00
Sage Abdullah
4d870af3b2
Set PYTHONUNBUFFERED=1 and increase no_output_timeout on CircleCI
...
https://support.circleci.com/hc/en-us/articles/360045268074-Build-Fails-with-Too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded-
2023-08-03 15:28:53 +01:00
Storm B. Heg
3be4e685c0
Remove unused WorkflowStatus view, urlpattern, and workflow-status.js
2023-08-03 15:16:08 +01:00
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