Skip to content

fix(content-item): only assume links will be published, not references#150

Merged
rs-amp merged 2 commits into
amplience:masterfrom
rs-amp:fix/ref-publish
Oct 19, 2022
Merged

fix(content-item): only assume links will be published, not references#150
rs-amp merged 2 commits into
amplience:masterfrom
rs-amp:fix/ref-publish

Conversation

@rs-amp
Copy link
Copy Markdown
Contributor

@rs-amp rs-amp commented Sep 29, 2022

The code to skip publishing child items assumed that both content links and content references would be followed and published when their parent is, but that is only the case for links. This fixes the issue, and adds a test to verify that traversal only follows links when asked to.

@rs-amp rs-amp added the bug Something isn't working label Sep 29, 2022
@rs-amp rs-amp merged commit 56bc1b4 into amplience:master Oct 19, 2022
Pureball pushed a commit to cosnova/dc-cli that referenced this pull request Aug 22, 2023
amplience#150)

* fix(content-item): only assume links will be published, not references

* test(content-item): add tests for traversing only link dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants