-
Notifications
You must be signed in to change notification settings - Fork 0
feat(api): enabled to fetch Resume data from external API #357
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
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. Files selected but had no reviewable changes (1)
You can disable this status message by setting the WalkthroughThe changes implement asynchronous data fetching from an external API in the Express.js backend for the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (4)
web-frontend/src/pages/Cv.vue (2)
Line range hint
5-10: Improve error handling for API requests.Using
console.logfor error handling is not ideal for production. Consider using a more robust error handling mechanism, such as displaying an error message to the user or logging the error to a monitoring service.- .catch((err) => { - console.log(err); + .catch((err) => { + // Display error message to the user or log to a monitoring service + console.error('Failed to fetch project data:', err);
Line range hint
11-16: Improve error handling for API requests.Using
console.logfor error handling is not ideal for production. Consider using a more robust error handling mechanism, such as displaying an error message to the user or logging the error to a monitoring service.- .catch((err) => { - console.log(err); + .catch((err) => { + // Display error message to the user or log to a monitoring service + console.error('Failed to fetch certification data:', err);api-server/routes/cv.js (2)
24-34: Improve error handling for the/certificationsroute.Using
console.logfor error handling is not ideal for production. Consider using a more robust error handling mechanism, such as returning an error response to the client or logging the error to a monitoring service.- .catch(error => { - console.log(error); + .catch(error => { + // Return an error response or log to a monitoring service + console.error('Failed to fetch certification data:', error);
58-68: Improve error handling for the/projectsroute.Using
console.logfor error handling is not ideal for production. Consider using a more robust error handling mechanism, such as returning an error response to the client or logging the error to a monitoring service.- .catch(error => { - console.log(error); + .catch(error => { + // Return an error response or log to a monitoring service + console.error('Failed to fetch project data:', error);
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- api-server/routes/cv.js (4 hunks)
- web-frontend/src/pages/Cv.vue (1 hunks)
Additional comments not posted (3)
web-frontend/src/pages/Cv.vue (1)
67-74: Streamlined presentation of certification data looks good.The changes simplify the presentation by focusing on essential information, which enhances clarity and usability.
api-server/routes/cv.js (2)
9-10: Verify secure management of the API key.Ensure that the
RAPID_API_KEYenvironment variable is securely managed and not exposed in the codebase or logs. Consider using a secrets management tool if necessary.
36-38: Setting response headers using an object looks good.The use of an object to set response headers improves readability and maintainability.
| <div v-for="(p, idx) in projectData.items" | ||
| :key="idx" | ||
| class="project-detail" > | ||
| <p> | ||
| <h5> {{ p.title }} </h5> | ||
| <li v-for="(d, idx) in p.descriptions"> | ||
| {{ d }} | ||
| </li> | ||
| <div> {{ p.description }} </div> | ||
| <br> | ||
| <div> Period: {{ p.start }} - {{ p.end }} </div> | ||
| <div> Period: {{ p.start.year }}/{{ p.start.month }} - {{ p.end.year }}/{{ p.end.month }} </div> | ||
| <!-- TODO: loop with v-for --> | ||
| Skills: {{ p.skills }} | ||
| <!-- Since we can not retrieve skills associated to projects from responses of RapidApi, need to consider design --> | ||
| <!-- Skills: {{ p.skills }} --> |
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 addressing the TODO comment for v-for loop.
The TODO comment suggests considering a v-for loop for a specific part of the project data. Ensure that the current implementation meets the requirements and consider optimizing if the data structure changes.
Do you need help with implementing the v-for loop or optimizing the rendering logic?
Issue/PR link
closes: #353
What does this PR do?
Describe what changes you make in your branch:
axiosfor fetching certificates/projects data from RapidAPI(Optional) Additional Contexts
Describe additional information for reviewers (i.e. What does not included)
mainto confirm changes would be appliedSummary by CodeRabbit
New Features
Bug Fixes
Styling Changes