Repository navigation
Conversation
HasRoles on Pollora\Models\User (roles, hasRole, assignRole, removeRole), the role: middleware, @ROLE accepting #[Role] classes in place of Sage's, and the Can permission for #[WpRestRoute], which now accepts Permission instances.
feat(roles): check roles in Laravel and capabilities in REST routes
# Conflicts: # CHANGELOG.md # src/Role/Infrastructure/Providers/RoleServiceProvider.php
…and taxonomies #[PostMeta], #[TermMeta], #[UserMeta] and #[CommentMeta] attach a #[Meta] schema to objects the project does not declare. A schema now holds a list of subtypes, empty for every object of its type.
feat(roles): translate role labels with the declaring text domain
HasTypedMeta on Post, Page, Term, User and Comment: typed reads, checked writes stored on save, whereMeta() and one meta cache query per collection. Post models are bound to their $postType at discovery.
…erriding newCollection() Overriding newCollection() could not keep Eloquent's generic return type (PHPStan in CI). Models loaded together now join a batch on 'retrieved', primed in one update_meta_cache() call on the first typed read.
feat(meta): typed meta for users, comments and undeclared post types and taxonomies
feat(meta): typed meta as attributes of the Pollora models
feat(meta): add custom-fields to a declared post type exposing meta in REST
Arrays of typed items, stored one row per item (single: false) or as one serialized array; classes with public typed properties, stored as arrays. REST schemas with items and properties; whereMeta() on rows.
# Conflicts: # CHANGELOG.md
Neutral control, group and hints on #[Meta]; Meta::extend(), meta.ui, the schemas handed to the driver on init with the meta it supports; Meta::schemas(), schemaFor(), MetaSchemasRegistered and a conformance check for driver authors.
feat(meta): validation rules on typed meta, for PHP and REST writes
feat(meta): arrays and data objects as typed meta
…iddenAssignBeforeIfElse)
feat(meta): a driver contract for the input fields of typed meta
release: v13.34.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v13.34.5 — see #405 and the CHANGELOG.