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

Registration: Rename default block handlers as reflecting name #2627

Merged
merged 1 commit into from
Sep 1, 2017

Conversation

aduth
Copy link
Member

@aduth aduth commented Aug 31, 2017

This pull request seeks to rename default block handler functions to better reflect that they operate on a block name, not a block instance, type, or otherwise. This brings default block API handlers in line with unknown type handlers, which were similarly renamed in bc4d6cd. I originally planned to include these changes in a related set of changes, but since it touched a handful of files, I felt it better to create a smaller, separate pull request.

Testing instructions:

Verify there is no regressions in the behavior of the default block (paragraph).

@aduth aduth added the [Feature] Block API API that allows to express the block paradigm. label Aug 31, 2017
@codecov
Copy link

codecov bot commented Aug 31, 2017

Codecov Report

Merging #2627 into master will not change coverage.
The diff coverage is 33.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2627   +/-   ##
=======================================
  Coverage   31.42%   31.42%           
=======================================
  Files         177      177           
  Lines        5407     5407           
  Branches      946      946           
=======================================
  Hits         1699     1699           
  Misses       3135     3135           
  Partials      573      573
Impacted Files Coverage Δ
blocks/api/registration.js 100% <ø> (ø) ⬆️
editor/modes/visual-editor/block-list.js 0% <0%> (ø) ⬆️
blocks/library/paragraph/index.js 33.33% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02ab8ee...d618f4b. Read the comment docs.

@mtias
Copy link
Member

mtias commented Aug 31, 2017

Makes sense.

@aduth aduth force-pushed the update/default-block-name branch from 38f0647 to d618f4b Compare September 1, 2017 02:02
@aduth aduth merged commit 6e663a4 into master Sep 1, 2017
@aduth aduth deleted the update/default-block-name branch September 1, 2017 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block API API that allows to express the block paradigm.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants