-
Notifications
You must be signed in to change notification settings - Fork 3
Generics AppType refactoring #299
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #299 +/- ##
==========================================
+ Coverage 86.41% 87.03% +0.61%
==========================================
Files 76 79 +3
Lines 2952 3092 +140
==========================================
+ Hits 2551 2691 +140
Misses 401 401
Flags with carried forward coverage won't be shown. Click here to find out more.
|
a043c44
to
1b7a78e
Compare
@@ -6,19 +6,32 @@ | |||
from marketplace.core.types.channels.generic.views import GetIcons | |||
from marketplace.core.types.channels.generic.views import GenericAppTypes | |||
|
|||
from marketplace.core.types.externals.generic.views import ( |
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 main idea of this listing of urls is that it was generic, that way you are creating a dependency with a specific apptype, the generic-external.
The question is: if a new generic apptype comes up, will you need to implement new urls for it in this file? this deviates a little from the principles of Integrations!
I suggest that you create a way to create urls within the type itself, so that the types would be in fact generic.
else: | ||
raise serializers.ValidationError("external_code not be empty.") | ||
|
||
response = self.type_class.list(FlowsClient(), flows_type_code=external_code) |
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.
Nice implementation of dependency inversion! 👏
b0985f1
to
b9e2776
Compare
b9e2776
to
2f1fad9
Compare
No description provided.