-
Notifications
You must be signed in to change notification settings - Fork 119
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
refactor: Refactor data scratch-ipblocks #1811
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Timestamp: 2021-04-19 15:56:21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files:
- IpBlocksToTable.kt
ListIPBlocks.ktTestEnvironmentInfo.kt
are not a part of the adapters layer because they don't have any references to google API libs additionally they are widely used in the domain layer. According to the diagram below, the code from adapters cannot be used directly in the domain layer.
Please move back those two files to the ftl.environment
and leave them for further domain refactor.
test_runner/src/main/kotlin/ftl/adapter/environment/ListIPBlocks.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@piotradamczyk5 Sorry for the mistake, I have copy-pasted the wrong file name, should be TestEnvironmentInfo.kt
instead of ListIPBlocks.kt
For me data and adapter layers are badly named: |
@piotradamczyk5 I do not agree. The adapter is an implementation that is adapting the library code or client implementation to the data structures and interfaces declared in the data layer. |
Discussed on slack with @jan-gogo . where |
a0c4ac9
to
e7fd524
Compare
Use data abstraction in the domain functions.
Move deviceIPBlocks to google client adapters
e7fd524
to
b2c77af
Compare
Fixes #1746
Test Plan
flank ip-blocks list
runs without any problemsChecklist