-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change addPotentialLink to have ability: link in response. #2346
Conversation
Currently link is unpacked into the response, but in the operation_api_manager.py create_potential_link which handles this request it is expected that the data has an ability key. Since there is none, when it goes to build an ability it builds a default 'manual' one instead. This can be tested by making an operation, and then adding a potential link.
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.
Wohoo! Your first PR -- thanks for contributing!
Codecov Report
@@ Coverage Diff @@
## master #2346 +/- ##
=======================================
Coverage 72.60% 72.60%
=======================================
Files 110 110
Lines 7946 7946
=======================================
Hits 5769 5769
Misses 2177 2177 Continue to review full report at Codecov.
|
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.
LGTM
Kudos, SonarCloud Quality Gate passed!
|
Description
Currently
link
is unpacked into the response, but in theoperation_api_manager.py
create_potential_link
, which handles this request, it is expected that the data has an ability key. Since there is none, when it goes to build an ability it builds a default 'manual' one instead.This can be tested by making an operation, and then adding a potential link.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
create_potential_link
inoperation_api_manager.py
ability = self.build_ability(data=data.pop('ability', {}), executor=executor)
Checklist: