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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create update_template_data util and formatting improvements #46408

Merged
merged 6 commits into from
Apr 24, 2024

Conversation

Aljullu
Copy link
Contributor

@Aljullu Aljullu commented Apr 10, 2024

Changes proposed in this Pull Request:

This PR includes some improvements from #44778. The reason is that #44778 is blocked by upstream work so it's unlikely to be merged soon, so with this PR we will bring to trunk what's currently "mergeable". 馃檪

Specifically, this PR includes these changes:

  • 2e33143 and 2c3a629 create a update_template_data util to avoid code duplication.
  • 36187c6 fixes a typo in a comment.
  • 0ec215a includes some formatting changes.
  • b216651 removes no longer needed usages of BlockTemplateUtils.

How to test the changes in this Pull Request:

This PR doesn't include any functionality changes, but some basic smoke testing of block templates is appreciated.

  1. Go to Appearance > Editor > Templates.

  2. Make some edits to some templates. Verify you can save them and they preserve the template name on save. Ie: the top bar should show Single Product instead of single-product:
    imatge

  3. Visit the templates in the frontend and verify the edits have been applied successfully.

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Comment

@Aljullu Aljullu added focus: template Issue related to WooCommerce templates. team: Kirigami & Origami WC Store Editing (FSE) labels Apr 10, 2024
@Aljullu Aljullu self-assigned this Apr 10, 2024
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Apr 10, 2024
@woocommercebot woocommercebot requested review from a team and nefeline and removed request for a team April 10, 2024 09:16
Copy link
Contributor

github-actions bot commented Apr 10, 2024

Hi @WunderBart, @nefeline,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

Copy link
Contributor

Hi @nefeline,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

@Aljullu Aljullu requested a review from WunderBart April 10, 2024 09:17
@Aljullu Aljullu force-pushed the add/update_template_data-util branch 10 times, most recently from 91d1c60 to b47c085 Compare April 12, 2024 08:10
@github-actions github-actions bot added the focus: monorepo infrastructure Issues and PRs related to monorepo tooling. label Apr 12, 2024
@Aljullu Aljullu force-pushed the add/update_template_data-util branch from 2121efc to b47c085 Compare April 12, 2024 09:29
@github-actions github-actions bot removed the focus: monorepo infrastructure Issues and PRs related to monorepo tooling. label Apr 12, 2024
@Aljullu Aljullu force-pushed the add/update_template_data-util branch from b47c085 to 31839e2 Compare April 12, 2024 13:36
@Aljullu Aljullu force-pushed the add/update_template_data-util branch 2 times, most recently from cfadf3c to 40911ba Compare April 22, 2024 14:13
@Aljullu Aljullu force-pushed the add/update_template_data-util branch from 40911ba to 2c3a629 Compare April 23, 2024 07:24
Copy link
Contributor

@WunderBart WunderBart left a comment

Choose a reason for hiding this comment

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

Changes test well locally, thanks! 馃殌

@Aljullu Aljullu merged commit c59dcbe into trunk Apr 24, 2024
45 checks passed
@Aljullu Aljullu deleted the add/update_template_data-util branch April 24, 2024 12:57
@github-actions github-actions bot added this to the 8.9.0 milestone Apr 24, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Apr 24, 2024
@alvarothomas alvarothomas added status: analysis complete Indicates if a PR has been analysed by Solaris needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Apr 24, 2024
samueljseay pushed a commit that referenced this pull request Apr 29, 2024
* Create update_template_data util

* Fix comment typo

* Formatting

* Remove unnecessary use of BlockTemplateUtils

* Add changelog file

* Create update_template_data util (II)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: template Issue related to WooCommerce templates. needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris team: Kirigami & Origami WC Store Editing (FSE)
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants