-
Notifications
You must be signed in to change notification settings - Fork 1
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(noise-api): Update noise api component #5
refactor(noise-api): Update noise api component #5
Conversation
- Added vitest for testing functions - Added zod for schema validation
- Added tests for /locations/:locations-id - Added Location & LocationsData types
Thank you @Zen-cronic! I really like how you are thinking about how to make the API more well-tested and robust. A few comments:
Thanks again! |
no worries at all! Re:
Appreciate your pointers. |
That all makes sense! I don't think we necessarily need to mirror the Dash repo, though, as we're redoing the whole thing to improve it; we should do whatever (i) works well for our purposes, (ii) makes it easier for people to contribute.
Thanks! |
Noted. Is there any guideline to what's considered improvement from v1? E.g., fewer dependencies? more http methods (like you mentioned)? |
- Removed redundant `getTracketApi` function - Added more tests for both the base request and the noise api request
Todo:
|
Thank you @Zen-cronic! Looks great to me. I'll merge this, and perhaps make some changes myself:
|
Feel free to implement those. Appreciate it |
Fixes #1 and #2 (part of the same component)
Changes:
Types and comment descriptions referred from the original Plotly repo.