[65] Fix issue of new solver integration#66
Conversation
- Fix Plan_generator to retrieve plan from the new solver Resolves planimation#65
There was a problem hiding this comment.
Reviewer: Zhicheng Lin
Author: Jian Zhang
Review Date: 15/04/2024
Commit Summary: Refactor get_plan function for improved error handling and retry
Understanding the Code
Purpose: Refactor the retry and error handling in get_plan method.
Implementation: Raise specific error and message.
Code Quality
Clarity: The code is understandable.
Reliability: This solution solves the compatible problem of request library in Python 3.6.
Approval Status
Status: Approved
nirlipo
left a comment
There was a problem hiding this comment.
Great! Thanks for pushing the code.
nirlipo
left a comment
There was a problem hiding this comment.
Let's see if it builds now :)
|
@chillray, there's another issue with the build failing on 2 tests: |
@chillray It seems like We cannot extract ['result']['plan'] to outside ,because the test case will call the function directly. |
|
What was there a reason to extract ['result']['plan'] ? If it wasn't adding any functionality, can you update it and test that the code passes the tests in your local machine? you can do so following this documentation: https://github.com/planimation/backend/tree/develop/server/unit_test Thanks! |
|
@nirlipo Just updated the unit test for new solver, all tests should pass now :), sorry for the overlook before pull request |
|
Great! working fine now. Thanks |
Resolves #65