Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment w/ Annotation Reducers, Selectors, Components #4068

Closed
wants to merge 12 commits into from
Closed

Experiment w/ Annotation Reducers, Selectors, Components #4068

wants to merge 12 commits into from

Conversation

jaswrks
Copy link
Contributor

@jaswrks jaswrks commented Dec 18, 2017

Adding annotations to Gutenberg

Please note:

Types of changes

  • New reducers.
  • New optimistic effects.
  • New annotation-related components.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

@jaswrks
Copy link
Contributor Author

jaswrks commented Dec 18, 2017

@ someone with tag access, please tag as 'in progress' for me. Thanks! :-)

@gziolo gziolo added the [Status] In Progress Tracking issues with work in progress label Dec 18, 2017
@jaswrks jaswrks mentioned this pull request Dec 20, 2017
3 tasks
Jason Caldwell added 12 commits December 20, 2017 09:00
- Register new post type: wp_annotation
- Add REST API controller: WP_REST_Annotations_Controller
- Add annotation utilties: WP_Annotation_Utils
- Add unit tests: REST_Annotations_Controller_Test

referencing: #3026
- `hierarchical=flat`
- `hierarchical=threaded`
- Enhance existing unit tests.
- Add unit tests for hierarchical responses.
- fix: Allow `parent=0` when checking permissions.
- Delete a post's annotations whenever the
  post itself is permanently deleted from the database.
  Attached to `delete_post`.

- `WP_Annotation_Utils::$post_type`
  property for faster interal reads.
- Add `class-annotations-test.php` to cover `WP_Annotation_Utils`
- Generate additional fake test data for all annotation unit tests.
- Enhance unit tests that cover `WP_REST_Annotations_Controller`.
- fix: In call to `register_post_type()`, the `read` cap should map to
`edit_posts` for annotations.
Allows annotation substatus history length to
be increased or decreased using a filter:
`gutenberg_rest_annotation_substatus_history_length`
- If a user is the author of a post, and the only
  reason they can't edit the post is because they can't
  edit_published_posts, and the parent post's current status is
  `publish` or `future`, then allow the user to annotate.

- Update unit tests to reflect revised permission strategy.
- Rename and repurpose `md5_email`. Now `image_url` with avatar URL.
- Add readonly `author_meta` property with display name and avatar URL.
- Allow `additionalProperties` in `annotator_meta` schema definition.
@jaswrks jaswrks changed the title Add Gutenberg Annotations Add Gutenberg Annotation Reducers, Selectors, Components Jan 16, 2018
@jaswrks jaswrks changed the title Add Gutenberg Annotation Reducers, Selectors, Components Experiment w/ Annotation Reducers, Selectors, Components Jan 19, 2018
@aduth
Copy link
Member

aduth commented Sep 13, 2018

Is the work here still relevant, and can it be reasonably be brought up to date with current master? Or can we close it?

@aduth aduth added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Sep 13, 2018
@aduth
Copy link
Member

aduth commented Oct 15, 2018

Closing as stale without response. It can be reopened if development is expected to continue, or a new pull request can be submitted.

@aduth aduth closed this Oct 15, 2018
@omarreiss omarreiss added the [Feature] Annotations Adding annotation functionality label Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Annotations Adding annotation functionality [Status] In Progress Tracking issues with work in progress [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants