Make WordPress Core

Opened 4 weeks ago

Closed 4 weeks ago

#65552 closed enhancement (fixed)

Update view config for DataViews/DataForm in the server

Reported by: ntsekouras Owned by: ntsekouras
Priority: normal Milestone: 7.1
Component: General Version: trunk
Severity: normal Keywords: has-patch gutenberg-merge
Cc: Focuses:

Description (last modified by ntsekouras)

This is a continuation of https://core.trac.wordpress.org/ticket/65516 and will port the changes in view config from:

Change History (10)

#1 @ntsekouras
4 weeks ago

  • Description modified (diff)
  • Summary Add a better default for post types `form` in view config for DataViews/DataForm in the serverUpdate view config for DataViews/DataForm in the server

This ticket was mentioned in PR #12288 on WordPress/wordpress-develop by @jorgefilipecosta.


4 weeks ago
#2

  • Keywords has-patch has-unit-tests added

## What?
This is a follow-up to WordPress/wordpress-develop#11272 and will port the changes in view config from:

## Testing
Verify unit tests are passing.

#3 @ntsekouras
4 weeks ago

  • Description modified (diff)
  • Keywords has-patch has-unit-tests removed

@ntsekouras commented on PR #12288:


4 weeks ago
#4

I suggest opening a new ticket linking back to the original one.

I opened a new trac ticket for this PR which will include two PRs from GB (see description)

#5 @ntsekouras
4 weeks ago

  • Milestone Awaiting Review7.1

#6 @ntsekouras
4 weeks ago

  • Owner set to ntsekouras
  • Status newassigned

#7 @ntsekouras
4 weeks ago

  • Keywords has-patch added
  • Versiontrunk

#8 @ntsekouras
4 weeks ago

  • Type defect (bug)enhancement

#9 @ntsekouras
4 weeks ago

  • Keywords gutenberg-merge added

#10 @ntsekouras
4 weeks ago

  • Resolutionfixed
  • Status assignedclosed

In 62588:

Add default post type and pattern forms to view config.

Apply a single default form to every post type in wp_get_entity_view_config() instead of registering an identical form per type, so post, page, and custom post types all receive a sensible default. Post types that need a different shape can still replace it entirely through their own get_entity_view_config_postType_{$post_type} filter callback. The default is intentionally not gated by supports: the registered fields are the single source of truth, and the editor drops any field whose definition is absent or whose isVisible returns false.

Add a dedicated form for the wp_block (pattern) post type, covering excerpt, content info, sync status, and revisions.

This ports the changes from the Gutenberg plugin. See https://github.com/WordPress/gutenberg/pull/79625 and https://github.com/WordPress/gutenberg/pull/79452.

Follow-up to [62547].

Props jorgefilipecosta, ntsekouras, mcsf.
Fixes #65552.

Note: See TracTickets for help on using tickets.