Wykres commitów

14577 Commity (796b3fe12008afb5a7735c62cc995774144bc769)

Autor SHA1 Wiadomość Data
Sage Abdullah 796b3fe120
Document potential data loss for BaseLogEntry migration in 3.0 2023-02-02 12:22:52 +00:00
Sage Abdullah 0eb3e17f58
Release notes for in 4.2 2023-02-02 11:08:19 +00:00
Sage Abdullah 6de2a3906b
Release notes for in 4.1.2 2023-02-02 11:08:19 +00:00
4the4ryushin e10dc142de
Prevent account name from overflowing the sidebar 2023-02-02 11:08:01 +00:00
Matt Westcott 22f6b32634 Release note for in 4.2 2023-02-02 10:49:00 +00:00
Matt Westcott caf54c005a Release note for in 4.1.2 2023-02-02 10:49:00 +00:00
Sage Abdullah 44dd13289a Do not show bulk actions checkbox in page type usage view 2023-02-02 10:49:00 +00:00
yass19 0221457a67 Remove Page.get_static_site_paths ()
Fixes 
2023-02-01 19:46:54 +00:00
LB (Ben Johnston) 0b822f2ccf
Update 4.2 release notes for `class_name` warning () 2023-02-01 11:01:24 +00:00
Matt Westcott 992d4c4ecb Add Ananjan-R to contributors 2023-01-30 14:47:16 +00:00
4the4ryushin 32822a90ee Fix: restrict globaly documents and images to certain types ()
Fixes 
2023-01-30 14:44:07 +00:00
Matt Westcott de1af00ba8 Use temporary wagtail-factory fork with wagtail upper bound removed 2023-01-30 14:39:48 +00:00
Matt Westcott 6a4e944b26 Start release notes for Wagtail 5.0 2023-01-30 14:39:48 +00:00
Matt Westcott 36143a8e59 Version bump to start work on Wagtail 5.0 2023-01-30 14:39:48 +00:00
LB Johnston c3159e0bd1 Add changelog for 2023-01-28 07:04:26 +10:00
LB Johnston 9e016c17b8 Documentation - whitespace formatting fixes
- Includes small fix for  missing space
2023-01-28 06:59:01 +10:00
Albina Starykova 2afeca2875
Refactor accessibility checker userbar item
- Move dialog template code from the userbar base template to the
  accessibility item template
- Use fragment for the total results count in the header
- Wrap dialog header in a div to allow styling it separately from the
  rest of the dialog content
- Get selector from the first element of axe violation's node.target
2023-01-27 12:31:31 +00:00
GeekGawd 23f661a48a
Fix: Add code block to improve contribution docs () 2023-01-27 17:44:28 +10:00
Thibaud Colas d4544ec9ee Re-enable `strictPropertyInitialization` in tsconfig
- Use declare for existing Stimulus controllers
- First enabled in  & then disabled in 
2023-01-27 11:33:49 +10:00
Lovelyfin00 5db3cda90b Update djhtml (html formatting) library to v 1.5.2
- Fixes formatting of `->` in Stimulus controlled element usage
- Fixes 
- See https://github.com/rtts/djhtml/issues/57
2023-01-27 07:58:37 +10:00
Matt Westcott 4f36562de7 Update Github actions to test against Django stable/4.2.x 2023-01-25 16:24:23 +00:00
Matt Westcott 076f79cbb7 Prevent spurious rendition migrations against Django 4.2
Fixes . Django 4.2 fixes https://code.djangoproject.com/ticket/34192 which causes a callable `storage` argument to be omitted from FileField's deconstructed representation when it returns `default_storage`. Our existing migrations therefore need to be tweaked to match either the broken or fixed representation according to the active Django version, so that makemigrations doesn't see a difference and generate a new migration in the opposite direction.
2023-01-25 16:24:23 +00:00
Thibaud Colas 0ae04eb72a Move accessibility checker to its own section of release notes, with upgrade considerations 2023-01-25 16:03:25 +00:00
4the4ryushin 48d3b2938c fix typo 2023-01-25 13:28:07 +00:00
Matt Westcott bd3b2b5421 Upgrade consideration note for SearchForm validation 2023-01-25 11:57:20 +00:00
Matt Westcott 3c540aa227 Make empty search field on image / document index return all results
Fixes 
2023-01-25 11:57:20 +00:00
dependabot[bot] 35f022c7f6 Bump ua-parser-js from 0.7.31 to 0.7.33
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.31 to 0.7.33.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md)
- [Commits](https://github.com/faisalman/ua-parser-js/compare/0.7.31...0.7.33)

---
updated-dependencies:
- dependency-name: ua-parser-js
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-25 18:34:56 +10:00
Sage Abdullah 9a40cebbc9 Pin semgrep version to 1.3.0
Latest version (1.5.1 at time of writing) is incompatible with curlylint
due to conflicting versions of parsy required by both packages.
2023-01-24 23:05:21 +00:00
Matt Westcott 04df875d17 Fix assertCanCreate to publish by default
Fixes 

Also remove the mentions of redirects from the documentation - the fact that the method has to check for a different redirect URL is an internal implementation detail, and not relevant to what the assertion is intending to test (namely that a page is successfully created).
2023-01-25 08:14:15 +10:00
Alex Tomkins 8801a49da8
Add missing wagtailadmin_tags in workflow_state_approved.html template 2023-01-23 10:40:17 +00:00
LB Johnston 999f9ef579 4.2 release - Move docs item to correct docs section for 2023-01-21 07:50:27 +10:00
Matt Westcott 8555d0c84d Generate new strings for translation 2023-01-20 13:11:19 +00:00
Matt Westcott 8e938ea115 Update rebuild-translation-sources to run from project root 2023-01-20 13:09:41 +00:00
Matt Westcott cbbf4668de Update contributors list 2023-01-20 13:04:48 +00:00
Matt Westcott 741c6185e9 Update get-translator-credits script to run from project root 2023-01-20 12:59:36 +00:00
Matt Westcott 224870aa38 Fetch new translations from transifex 2023-01-20 12:41:29 +00:00
Matt Westcott c54ae11fd1 Update fetch-translations script to run from project root 2023-01-20 12:35:45 +00:00
Matt Westcott 204ae40209 Fix test failures on indexing document tags
Fix regression caused by faf3e190f6. The save() must happen before reindexing, so that the indexer sees the updated state of the tags.
2023-01-20 09:39:28 +00:00
Matt Westcott 08d05c6392 Release note for 2023-01-19 23:42:53 +00:00
Matt Westcott 43c0399d1d Remove cache-control header from document serve view
We should not assume out of the box that one hour (or any duration) is a valid duration for caches to hold on to stale responses without revalidation, and storing documents in a shared public cache is not appropriate because they may have authentication checks.
2023-01-19 23:28:24 +00:00
Suyash Singh faf3e190f6 Fix: Revert the behaviour in deletion will happen before save 2023-01-19 23:26:34 +00:00
Sage Abdullah c8edfd13b2 Add required=False to SearchForm.q 2023-01-19 22:07:50 +00:00
Sage Abdullah d4b69cbfc1 Fix header search when q URL param is not present 2023-01-19 22:07:50 +00:00
Matt Westcott f35d4a966e Release note for 2023-01-19 21:09:33 +00:00
Matt Westcott 89205730de Make autocomplete() fail with a NotImplementedError on sqlite and mysql FTS backends 2023-01-19 21:09:33 +00:00
Matt Westcott f5633dbfb6 Restore autocomplete behaviour of search in chooser modals
Fixes . Unfortunately the different search backends have diverged massively in the autocomplete APIs they support:

* Postgres FTS (and probably the other database FTS backends) ignores the `partial_match` kwarg on `.search()` and `SearchField`, and only supports the `.autocomplete()` / `AutocompleteField` API
* The database fallback backend (and probably Elasticsearch) accepts `partial_match` on `.search()` (in fact I think it always does partial matches regardless of that setting - untested), but raises `NotImplementedError` on `.autocomplete()`

As a result, to perform autocompletion across all backends, we need to try both methods, with a try/except. (Also, user-defined models such as snippets will need either or both of `AutocompleteField` or `SearchField(partial_match=True)` in `search_fields` depending on the backend in use.)

Additionally, while tests have been added to cover the autocomplete behaviour, the test suite only ever runs under the fallback backend (with the exception of the backend-specific tests in wagtail.search), and so these would have succeeded anyhow. Much more cleanup work is needed here, but this will serve as a stopgap solution to get the choosers working as intended again.
2023-01-19 21:09:33 +00:00
Sage Abdullah 1594e58359 Adjust workflow tests setup to only save initial revision when necessary 2023-01-19 21:00:39 +00:00
Sage Abdullah e0c77448bb Fix is_latest_revision() to compare by ID after comparing by creation date 2023-01-19 21:00:39 +00:00
Sage Abdullah c50982f062 Fix warning message in icon template tag and update obsolete class_name usages 2023-01-19 18:53:15 +00:00
Thibaud Colas 357edf2914 Release notes for 2023-01-19 16:57:24 +00:00