- Notifications
You must be signed in to change notification settings - Fork211
PM- 1760#7109
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
PM- 1760#7109
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsxShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsxShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsxShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
returnfetch(url.toString(),{ | ||
method:'GET', | ||
}).then(res=>res.json()); |
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.
Consider adding error handling for the fetch request to manage potential network errors or unsuccessful responses. This will improve the robustness of the function.
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.
@himaniraghav3 - Thoughts on this one?
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.
Yes, I left it unresolved so reviewers could cross check. I'll add error handling
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
remove unnecessary paramFixes#1760
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.
Looks good - just wondering if we need the error handling mentioned by the AI reviewer on the API call.
returnfetch(url.toString(),{ | ||
method:'GET', | ||
}).then(res=>res.json()); |
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.
@himaniraghav3 - Thoughts on this one?
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.
Looks good
Adds error handling to the API call for fetching review opportunitiesFixes#1760
*@param {number} pageSize - Number of items per page. | ||
*@returns {Promise<Object>} The fetched data. | ||
*/ | ||
exportdefaultasyncfunctiongetReviewOpportunities(page,pageSize){ |
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.
Consider adding error handling for network errors that might occur during the fetch operation. Currently, only HTTP errors are handled.
b5ce064
intov6Uh oh!
There was an error while loading.Please reload this page.
Updates the review opportunity list to use the review API endpoint.
Also moves the necessary code from
topcoder-react-lib
toCommunity App