Skip to content

onionArchitecture() now keeps ignored dependencies when overriding description#623

Merged
codecholeric merged 1 commit into
TNG:mainfrom
thmuch:main
Jun 22, 2021
Merged

onionArchitecture() now keeps ignored dependencies when overriding description#623
codecholeric merged 1 commit into
TNG:mainfrom
thmuch:main

Conversation

@thmuch

@thmuch thmuch commented Jun 19, 2021

Copy link
Copy Markdown
Contributor

When adding a because() or as() to an onionArchitecture() rule, all specified ignored dependencies were lost – which caused the architecture check to fail.

This happened because the overridden OnionArchitecture.as() method did not copy the ignoredDependencies list.

Fixes #622

@hankem

hankem commented Jun 20, 2021

Copy link
Copy Markdown
Member

Thanks for fixing the bug (which I had introduced with #320... 🙈)!

The failing Checks however prevent your commit from being merged, as it has not been signed-off according to the DCO, cf. CONTRIBUTING.md. Could you please amend your commit and force push your branch as described?

…iption

Signed-off-by: Thomas Much <github@snailshell.de>
@codecholeric

Copy link
Copy Markdown
Collaborator

Awesome, that's my favorite issues that come with a fix, thanks a lot 😄 🙏 Looks very good to me! I hope it's okay, but I slimmed down the test a tiny bit, because I felt we don't need to combine 3 separate ignore's to reproduce the problem, a single ignore is already sufficient to cause the problem and then it's a little bit less to read the test (except if I missed something, but it failed without your change and passed with your change 🤷‍♂️)

@codecholeric codecholeric merged commit 482a408 into TNG:main Jun 22, 2021
@thmuch

thmuch commented Jun 22, 2021

Copy link
Copy Markdown
Contributor Author

Sure, that's absolutely ok – looks fine. I just copied the test case for ignored dependencies and forgot to minimize the test setup... 😉

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.

onionArchitecture loses ignored dependencies when overriding description

3 participants