Wykres commitów

17842 Commity (a5ff33ebe20611a7953e7aa5c8df50451636ee89)

Autor SHA1 Wiadomość Data
Sage Abdullah a5ff33ebe2 Add missing index_url_name and edit_url_name in documents UsageView 2024-09-16 09:24:09 +01:00
Sage Abdullah ca4a1575ad Remove unused window.fileupload_opts.simple_upload_url
The usage was removed in fd8277bcf7, so
these are just unused leftovers.
2024-09-16 09:24:09 +01:00
Daniel Black 93b9c04ce7
Update MySQL and MariaDB healthcheck commands for GitHub Actions
mysqladmin ping and mariadb-admin ping can return healthy during their
initialization stage as by default these connect over unix socket.

Add --protocol=tcp to mysqladmin to report healthy when a TCP
connection occurs. The initial startup uses --skip-networking.

MariaDB has a built-in healthcheck.sh in its container:
https://mariadb.com/kb/en/using-healthcheck-sh-script/
2024-09-13 11:22:47 +01:00
Matt Westcott bd90802877 Release note for #12261 2024-09-13 09:23:59 +01:00
Sage Abdullah ed430b40df Fix ordering of workflow history detail view's tasks tab 2024-09-13 09:20:36 +01:00
Sage Abdullah 4097f54824 Reduce queries in workflow history detail view 2024-09-13 09:20:36 +01:00
Sage Abdullah 85bd9212be Add tests for rendering workflow history detail view
and update the docstring of the revision query to reflect the actual
behaviour. The query does:

- a filter on TaskState to get the ones that are associated with the
  current workflow state, then gets the IDs of the revisions associated
  with those task states, and
- use it as a subquery to get the revisions with those IDs

TaskState objects are only created when a task's state changes – this
means we don't create new TaskState objects when you save the
page/snippet without performing a workflow action.

This means the query will only result in revisions that were made as
part of a workflow action, not just any edits.
2024-09-13 09:20:36 +01:00
Sage Abdullah 1b691a905f Fix RevisionQuerySet.for_instance() when used with a non-specific instance
If the method was used with a base Page instance, it wouldn't return any
revisions because we would be filtering on the content_type FK using the
current model (the base Page model) instead of the specific model.

Filter on base_content_type and make use of
RevisionMixin.get_base_content_type() instead, which will
resolve to the base Page model (and the correct the most basic
non-abstract model for non-Page models with MTI).

Use the old logic if the instance's model does not use RevisionMixin for
some reason.

This logic is similar to WorkflowStateQuerySet.for_instance() and
TaskQuerySet.for_instance().
2024-09-13 09:20:36 +01:00
Sage Abdullah d79a2e7012 Use breadcrumbs and header buttons for workflow history detail 2024-09-13 09:20:36 +01:00
Sage Abdullah 05230388d8 Fix GenericPageBreadcrumbsMixin to correctly take the specified number of items
The old code was taking the N-th item from the view's generic breadcrumbs instead of taking the last N items as the comment suggests
2024-09-13 09:20:36 +01:00
Sage Abdullah 98bbded2a8 Use BaseListingView with breadcrumbs and header buttons for workflow history view 2024-09-13 09:20:36 +01:00
dependabot[bot] 816ec2e6c5 Bump serve-static and express
Bumps [serve-static](https://github.com/expressjs/serve-static) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-12 19:21:35 +01:00
Matt Westcott 4e0236d5c2 Release note for #12298 in 6.3 2024-09-12 19:18:12 +01:00
Matt Westcott 31a3a47263 Release note for #12298 in 6.2.2 2024-09-12 19:17:49 +01:00
smark-1 acb1208abb Fix link to Users search in the "Other searches" bar
Regression in b6fdd8c408
2024-09-12 19:17:49 +01:00
Matt Westcott 4e4fac003b Release note for #12310 / document support for MariaDB 2024-09-12 19:11:22 +01:00
Sage Abdullah 2eb976a96b Do not disable timezone when testing against MySQL
MySQL cannot load timezone-aware fixtures when USE_TZ = False.
2024-09-12 19:05:24 +01:00
Sage Abdullah 38b624d301 Disable parallel mode when testing against MariaDB
Not supported yet due to https://code.djangoproject.com/ticket/33537
2024-09-12 19:05:24 +01:00
Sage Abdullah 9914349a43 Add MariaDB to test matrix
Use the 10.11 LTS (2028-02-16) and 11.4 LTS (2029-05-29).

Also use the email user model and disable timezone for the 11.4
strategy.
2024-09-12 19:05:24 +01:00
Sage Abdullah 170487e0c5 Update MySQL test matrix
MySQL 8.1 has been EOL since 2023-10-25. Use the next LTS 8.4
(2032-04-30). Add MYSQL_ROOT_PASSWORD to ensure the root password
is set.

Also use email user model and disable timezone on the 8.4 strategy to
ensure we test these configurations with MySQL as well.
2024-09-12 19:05:24 +01:00
Matt Westcott de2be5270e Roll back codecov CI task to v3
As per #12303
2024-09-12 14:32:07 +01:00
smark-1 14c2150f29
Add generated `test-media` to .gitignore 2024-09-12 14:18:34 +01:00
Matt Westcott 0183876669 Force refresh of CircleCI pipenv cache
Attempt to resolve semgrep not found errors
2024-09-11 20:32:47 +01:00
Matt Westcott 48b3a52c92 Release note for #12268 in 6.2.2 2024-09-11 19:48:35 +01:00
Matt Westcott 2b481e677c Release note for #12268 in 6.3 2024-09-11 19:47:02 +01:00
Sage Abdullah 50a1aba134 Clarify UserViewSet customization to avoid confusion with the custom user model's app config 2024-09-11 19:44:36 +01:00
Thibaud Colas 84b3bf7034
Add new Puppeteer cache location to fix CircleCI ui_tests (#12293) 2024-09-09 10:20:26 +01:00
Matt Westcott 7cad7c4f0e Reinstate support for generic IndexView without model attribute
000d417ec9 (in #12236) skips the check that `self.model` is non-null in `is_searchable`. This means that it is no longer possible to define IndexView subclasses without a model property, which was previously valid - for example this one from wagtail-review:

ce2f6d814b/wagtail_review/views/admin.py (L98-L104)
2024-09-09 09:42:52 +01:00
smark-1 467cced098 Fix typo advantage in docs/deploy/under_the_hood.md 2024-09-08 19:08:29 +01:00
Matt Westcott cf07674b92 Release note for #12276 2024-09-06 12:13:29 +01:00
Sage Abdullah 50b99c7643 Update GitHub Actions workflow configuration 2024-09-06 11:55:46 +01:00
Sage Abdullah d6d0d4df5a Use ModelIterable as the base class for SpecificIterable
We don't really need its __iter__ implementation, but Django added a
check in
e4a2e22ddb
that requires ModelIterable to be used when using in_bulk() with
values() or values_list().
2024-09-06 11:55:46 +01:00
Thibaud Colas 74681487e0 Release notes for #12203 2024-09-06 11:46:43 +01:00
Matt Westcott b3e68b69fc Upgrade puppeteer to 22.x 2024-09-06 11:46:43 +01:00
Matt Westcott 3567c15e72 Upgrade puppeteer to 21.x 2024-09-06 11:46:43 +01:00
Matt Westcott 726d4c05e1 Upgrade puppeteer to 19.x 2024-09-06 11:46:43 +01:00
Matt Westcott 83562ab03c Upgrade puppeteer to 16.x 2024-09-06 11:46:43 +01:00
Matt Westcott 0c411651b8 Address test failures on empty table headings 2024-09-06 11:46:43 +01:00
Matt Westcott 41f768b2ab Bump patch versions in wagtail/client/tests/integration/package-lock.json 2024-09-06 11:46:43 +01:00
Matt Westcott 6593615a60 Run integration tests in debug mode so that static files are served 2024-09-06 11:46:43 +01:00
Matt Westcott d87d34b7d1 update caniuse-lite to prevent warning about outdated browser list 2024-09-06 11:46:43 +01:00
Matt Westcott 482f5a0ec7 Set timeouts of 30 seconds for axe tests 2024-09-06 11:46:43 +01:00
Sage Abdullah 5038418b1e
Release note for #12236 2024-09-06 11:41:00 +01:00
Sage Abdullah 9d8507bc37
Move no_results_message to a cached_property in BaseListingView 2024-09-05 18:31:44 +01:00
Sage Abdullah d8f2eb3d75
Use the same pages/listing.html template for both base page IndexView and the SearchView 2024-09-05 18:31:12 +01:00
Sage Abdullah 587ddbae54
Rename wagtailadmin/pages/index.html to wagtailadmin/pages/listing.html
This template is useful for other page listings where we may also want
to enable bulk actions, e.g. the search view – and later, the workflows
usage view, as well as the page type usage view.

This is a separate commit just so git knows we're just renaming. We'll
reinstate the pages/index.html as a no-op extension of this
pages/listing.html template.
2024-09-05 18:31:12 +01:00
Sage Abdullah 51b5075090
Remove unnecessary overrides in page listing IndexView 2024-09-05 18:31:12 +01:00
Sage Abdullah ff0cd42a6c
Include ordering in BaseListingView context 2024-09-05 18:31:11 +01:00
Sage Abdullah f155546f65
Ensure non-IndexView BaseListingView subclasses use the correct base templates
Now that the listing_results.html template supports rendering the "There
are x matches" message, we can enforce the consistency between the view
class and the template. Previously there were BaseListingView subclasses
(that are not IndexView subclasses) that used the index_results.html
template just to get that message when filtering.
2024-09-05 18:31:11 +01:00
Sage Abdullah e302c62ef2
Refactor page search view to be closer to universal listings implementation
- Use a single class with index_url_name, index_results_url_name,
  template_name, and results_template_name
- Extend generic/listing.html and generic/listing_results.html templates
- Set page_title and header_icon to show breadcrumbs properly
- Set is_searchable = True and keep using the custom search and
  filtering logic with the full get_queryset override to prevent scope
  creep for now
2024-09-05 18:31:11 +01:00