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

Refactor/block builder #64

Merged
merged 13 commits into from
Nov 1, 2021
Merged

Conversation

nickmoreton
Copy link
Collaborator

@nickmoreton nickmoreton commented Nov 1, 2021

this is the PR for the other work done in #57

it needs to be reviewed before the import documents PR #57

codebase: https://projects.torchbox.com/projects/wordpress-to-wagtail-importer-package/tickets/75

@nickmoreton nickmoreton added the enhancement New feature or request label Nov 1, 2021
@nickmoreton nickmoreton requested a review from nimasmi November 1, 2021 11:04
@nickmoreton nickmoreton self-assigned this Nov 1, 2021
Copy link
Collaborator

@nimasmi nimasmi left a comment

Choose a reason for hiding this comment

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

I still can't claim I fully understand these changes, but I'm happy with what I have understood.

wagtail_wordpress_import/block_builder.py Outdated Show resolved Hide resolved
wagtail_wordpress_import/importers/wordpress.py Outdated Show resolved Hide resolved
wagtail_wordpress_import/block_builder_defaults.py Outdated Show resolved Hide resolved
wagtail_wordpress_import/block_builder_defaults.py Outdated Show resolved Hide resolved
docs/blockbuilder.md Outdated Show resolved Hide resolved
docs/blockbuilder.md Show resolved Hide resolved
```
Examples:

1. Include the `h1-h6` HTML tags in the fall back block and not have their own block types. Just remove the `h1-h6` filter configuration items in your own settings.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
1. Include the `h1-h6` HTML tags in the fall back block and not have their own block types. Just remove the `h1-h6` filter configuration items in your own settings.
1. Include the `h1``h6` HTML tags in the fallback block and not have their own block types. Just remove the `h1-h6` filter configuration items in your own settings.

docs/blockbuilder.md Outdated Show resolved Hide resolved
@nickmoreton
Copy link
Collaborator Author

Hey @nimasmi Thanks for doing this so quickly. I have resubmitted the PR with changes in place.

Copy link
Collaborator

@nimasmi nimasmi left a comment

Choose a reason for hiding this comment

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

Thanks, Nick. I approve.


Examples:

1. Include the `h1 - h6` HTML tags in the fallback block and not have their own block types. Just remove the `h1 - h6` filter configuration items in your own settings.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comment: h1 - h6 — well, that's not what I suggested, but it's not important.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah now I see what you mean. I've made a note. I'm bound to be back in there soon and will update it then. Thanks

@nickmoreton nickmoreton merged commit 3bb433f into integration/sprint-6 Nov 1, 2021
nickmoreton added a commit that referenced this pull request Nov 10, 2021
nickmoreton added a commit that referenced this pull request Nov 10, 2021
@nickmoreton nickmoreton deleted the refactor/block-builder branch November 19, 2021 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants