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

Fix taxonomy term creation #260

Merged

Conversation

Kingdutch
Copy link
Contributor

parent may be empty if multiple taxonomies are created in a single Given block.

Additionally id is not the right base field for the query but it should be name.

Finally the entityQuery does not return loaded entities but returns IDs so calling ->id() on it will break as well.

Fixes #259

`parent` may be empty if multiple taxonomies are created in a single
`Given` block.

Additionally `id` is not the right base field for the query but it
should be `name`.

Finally the entityQuery does not return loaded entities but returns IDs
so calling `->id()` on it will break as well.
@Kingdutch Kingdutch mentioned this pull request Dec 2, 2022
Copy link
Contributor

@MPParsley MPParsley left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Kingdutch added a commit to goalgorilla/open_social_dev that referenced this pull request Dec 13, 2022
drupal-driver 2.2.1 introduced Drupal 10 compatibility but also broke
term creation.

A fix is proposed in jhedstrom/DrupalDriver#260

However, 2.2.1 of the extension also set a conflict with Drupal 8 based
code which means 2.2.1 can't work with Open Social 10.

Since we need our developer tools to be compatible with both our major
versions to test our upgrade path we downgrade our drupal-driver
version. Once we release Open Social 12 and stop testing 10 -> 11 but
test 11 -> 12 instead we can drop Drupal 8 support completely and remove
our drupal-driver constraint.

Given that the contents was broken in 2.2.1 we also can't apply our
patch from 260 to version 2.2.0 which is what breaks our install in Open
Social 10 in the first place.

This commit assumes we don't need Drupal 10 support before Open Social
12, otherwise we'll need to find a different solution.
@aaron-capellic
Copy link

Thank you, this is working for me.

@jhedstrom jhedstrom merged commit 44ca050 into jhedstrom:master Jan 6, 2023
@jhedstrom
Copy link
Owner

Thank you!

jhedstrom added a commit that referenced this pull request Jan 6, 2023
Fix taxonomy term creation

Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drupal 10 compatibility broke taxonomy term creation in patch version
4 participants