-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Refactor data fetching and filtering logic in get.ts #229
Refactor data fetching and filtering logic in get.ts #229
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @lucavallin on Vercel. @lucavallin first needs to authorize it. |
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.
Great work - thanks for the refactoring!
Thanks for the comments, I'll update the filename and the other comments
tomorrow and then merge it.
…On Mon, Oct 9, 2023, 8:23 PM Luca Cavallin ***@***.***> wrote:
***@***.**** approved this pull request.
Great work - thanks for the refactoring!
—
Reply to this email directly, view it on GitHub
<#229 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQWAE77XOIZNZKFJQNT7LLX6O7CRAVCNFSM6AAAAAA5XMWDDGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTMNRUGA2DCMRTGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@lucavallin Reviews comments have been addressed and the code is ready for merging. Please let me know if there are any additional concerns. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@dnafication Sorry for the delay! Approved, but there is a conflict. |
Resolved conflicts and merged the latest main. Feel free to merge it @lucavallin |
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.
🥳
Thanks!
Refactor data fetching and filtering logic in get.ts
This pull request refactors the
data/get.ts
file to make it more readable and modular. The data fetching logic is now separated from the filtering logic, and reusable utility functions have been extracted into a separateutils.ts
file.The changes include:
data/get.ts
todata/index.ts
and converted it to use async/await syntaxshared.ts
fileData
interface to define the shape of the data file to be writtenutils.ts
fileThese changes should make the code easier to read, maintain, and extend in the future.
Please review and let me know if there are any issues or concerns with these changes. Happy to discuss and make any necessary changes.
related to #206 and its discussions