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

Block Directory: Replace store name string with exposed store definition #27178

Conversation

rafaelgallani
Copy link
Contributor

Description

Addresses #27088. Replaces the store names (hardcoded strings) with the exposed store definitions.

How has this been tested?

npm run test, no additional test was done.

Screenshots

image

Types of changes

Code refactoring, non-breaking change.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Nov 22, 2020
@gziolo gziolo added [Type] Code Quality Issues or PRs that relate to code quality [Feature] Block Directory Related to the Block Directory, a repository of block plugins labels Nov 22, 2020
@gziolo gziolo self-requested a review November 22, 2020 08:05
@rafaelgallani
Copy link
Contributor Author

rafaelgallani commented Nov 23, 2020

The build was failing before this last commit. I tried analyzing the YAML for the E2E tests; apparently, the runs are split between 4 runners... Right? And, for some reason (which I am not sure why), the build failed in the second one... I just made an empty commit, and it passed now...

Edit: after some quick searching, I think that the issue could be something similar to this.

Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you for proposing this refactoring 👍

@gziolo gziolo merged commit 3067e91 into WordPress:master Nov 24, 2020
@github-actions
Copy link

Congratulations on your first merged pull request, @rafaelgalani! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts:

https://profiles.wordpress.org/me/profile/edit/

And if you don't have a WordPress.org account, you can create one on this page:

https://login.wordpress.org/register

Kudos!

@github-actions github-actions bot added this to the Gutenberg 9.5 milestone Nov 24, 2020
@gziolo
Copy link
Member

gziolo commented Nov 24, 2020

The build was failing before this last commit. I tried analyzing the YAML for the E2E tests; apparently, the runs are split between 4 runners... Right? And, for some reason (which I am not sure why), the build failed in the second one... I just made an empty commit, and it passed now...

Edit: after some quick searching, I think that the issue could be something similar to this.

That's quite useful. I will file an issue for that 🙇‍♂️

@gziolo gziolo changed the title Replace "core/block-directory" store name string with exposed store definition Block Directory: Replace store name string with exposed store definition Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block Directory Related to the Block Directory, a repository of block plugins First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants