[ENG-8975] Feature/redirect service support#335
Conversation
Update redirect service feature branch with latest from develop
Update DummyRedirectImp
implement redirect service
Redirect service updates
sh-andriy
left a comment
There was a problem hiding this comment.
Looks good overall, this follows the existing patterns well and the implementation is clean.
One small cleanup needed in addon_service/admin/__init__.py:110-112:
enum_multiple_choice_fields = {
"int_supported_features": StorageSupportedFeatures,
}
ExternalRedirectService doesn't have an int_supported_features field, so this config does nothing. Should just remove these lines.
Optionally, for consistency with other service types, you could add a validate_redirect_imp_number validator in validators.py and call it in a clean() method on the model - but not blocking since the current setup still works fine.
Otherwise LGTM
I've opted for just removing those lines. My thinking is, it may be best to keep it as lightweight as possible, and if the need arises, we can add the validator later? |
* [ENG-8975] Feature/redirect service support (#335) * initial implementation of redirect service * fix some issues so that API returns external redirect service * register redirect service as an AddonImp * Appease pre-commit linters * Update DummyRedirectImp * Allow selection of Addon Implementation in admin app * Add Datapipe logo * CR feedback --------- Co-authored-by: jade <101148768+jadeddelta@users.noreply.github.com> Co-authored-by: Yuhuai Liu <yuhuai@cos.io> * [ENG-9733] bump django version to 4.2.26 (#337) --------- Co-authored-by: futa-ikeda <51409893+futa-ikeda@users.noreply.github.com> Co-authored-by: jade <101148768+jadeddelta@users.noreply.github.com> Co-authored-by: antkryt <ant.krytskyi@gmail.com>
Ticket
Purpose
Changes
Side Effects
API Documentation
QE Notes
CE Notes