feat(next): dynamic consumer paths
Provides dynamic consumer paths from generated URL using Consumer collection route.
fixes #615
This pull request is for: (mark with an "x")
- [ ]
examples/* - [x]
modules/next - [ ]
packages/next-drupal - [ ]
starters/basic-starter - [ ]
starters/graphql-starter - [ ] Other
GitHub Issue: #615 Please add a link to the GitHub issue where this problem is discussed.
- [ ] 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
Uses the collection route name and generates the relative URL.
@mglaman is attempting to deploy a commit to the Chapter Three Team on Vercel.
A member of the Team first needs to authorize it.
I just noticed the failures, will fix
Merged in main, seems like unrelated errors
Test needs consumers added to dependencies
From the error log:
1) Drupal\Tests\next\Kernel\Renderer\MainContent\NextSiteEntityControllerTest::testEnvironmentVariables
PHPUnit\Framework\Exception: Unavailable module: 'consumers'. If this module needs to be downloaded separately, annotate the test class with '@requires module consumers'.
Ah, need to add to require-dev, which the current workflow may not do. I'll update to ensure the dependency is available during tests