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(next): next_entity_type_config dependencies #620

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mglaman
Copy link
Contributor

@mglaman mglaman commented Dec 7, 2023

Fixes #599 #282, dependencies in next_entity_type_config for the entity type and bundle being targeted.

This pull request is for: (mark with an "x")

  • examples/*
  • modules/next
  • packages/next-drupal
  • starters/basic-starter
  • starters/graphql-starter
  • Other

GitHub Issue: #599

  • I need help adding tests. (mark with an "x")
    Code changes need test coverage. If you don't know
    how to make tests, check this box to ask for help.

Describe your changes

Adds configuration dependency to target entity type and bundle

Fixes dependencies in next_entity_type_config for the entity type and bundle being targeted.
Copy link

vercel bot commented Dec 7, 2023

@mglaman is attempting to deploy a commit to the Chapter Three Team on Vercel.

A member of the Team first needs to authorize it.

],
],
]);
self::assertEquals([], $entity_type_config->getDependencies());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Am I misreading this assertion?

If the purpose of calculateDependencies() is to add the proper dependencies to the config, why is the test asserting that getDependencies() is an empty array? How does this test that dependencies are added properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. I can't remember if I left this here to show the test was still failing or what... Or if I wrote the test first and then the fix?

I'll follow back up on this today

@mglaman
Copy link
Contributor Author

mglaman commented Feb 27, 2024

@JohnAlbin I tried running locally, but for some reason all tests fail now. So I wanted to use the CI... but it looks like next.yml workflow may need approval.

EDIT: needed to update drupal/next in the drupal/composer.lock

@mglaman
Copy link
Contributor Author

mglaman commented Feb 27, 2024

Okay, it should be all set, now

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.

NextEntityTypeConfig does not calculate dependencies
2 participants