Closed tcboles closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
pyairbyte-api-docs | ❌ Failed (Inspect) | Nov 5, 2024 5:56pm |
[!WARNING]
Rate limit exceeded
@tcboles has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 15 minutes and 58 seconds before requesting another review.
⌛ How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.🚦 How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.📥 Commits
Reviewing files that changed from the base of the PR and between 957f7eb41598ba8dca6c8f95dc1729a30d907e13 and 5567cd2208f59ebf73200301565ee54a82faabed.
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?
/fix-pr
Auto-Fix Job Info
This job attempts to auto-fix any linting or formating issues. If any fixes are made, those changes will be automatically committed and pushed back to the PR. (This job requires that the PR author has "Allow edits from maintainers" enabled.)
PR auto-fix job started... Check job output.
✅ Changes applied successfully.
@tcboles - This looks great! I like the approach you took here - it seems nicely extensible and also simple enough to easily understand and explain to new developers.
I'm running a quick auto-fix here in CI for any simple linting or formatting issues. The slash command will only work for maintainers but you can run something similar using Ruff or Poe commands locally.
For both "get_source()" and "get_destination()", the linter will require adding a docstring entry for the new arg. These descriptions will then feed into our auto-generated API documentation.
I'll try to provide more detailed feedback inline but for now just wanted to drop in and say "thanks!" while giving my first observations/thoughts on this implementation. Feel free to ping me here if you have other questions/blockers.
@tcboles - This looks great! I like the approach you took here - it seems nicely extensible and also simple enough to easily understand and explain to new developers.
I'm running a quick auto-fix here in CI for any simple linting or formatting issues. The slash command will only work for maintainers but you can run something similar using Ruff or Poe commands locally.
For both "get_source()" and "get_destination()", the linter will require adding a docstring entry for the new arg. These descriptions will then feed into our auto-generated API documentation.
I'll try to provide more detailed feedback inline but for now just wanted to drop in and say "thanks!" while giving my first observations/thoughts on this implementation. Feel free to ping me here if you have other questions/blockers.
Thanks @aaronsteers. I went ahead and removed the emitted time time from the callback. I also added basic tests. Let me know if you need anything updated.
@tcboles - Looking good! Can you remind me which source you are wanting to use this feature with, and have you had any luck testing manually with that source?
@tcboles - Looking good! Can you remind me which source you are wanting to use this feature with, and have you had any luck testing manually with that source?
I am going to be testing it with Quickbooks. I haven't had time to complete the testing yet. I will let you know when that is finished. It will hopefully be today or tomorrow.
@aaronsteers Update on the testing. Everything is working for my use case with quickbooks.
@tcboles - That's great! I'll do a final review and then merge if nothing else outstanding.
@tcboles - Actually one more question so I can put this in the docs:
What is the shape of the config dict you received in the control message from QuickBooks? Can you tell me the keys/structure, obviously with anything sensitive removed?
@tcboles - Actually one more question so I can put this in the docs:
What is the shape of the config dict you received in the control message from QuickBooks? Can you tell me the keys/structure, obviously with anything sensitive removed?
Here is the full control message that was sent from source-quickbooks. The callback receives everything inside control.connectorConfig.config
.
{
"type": "CONTROL",
"control": {
"type": "CONNECTOR_CONFIG",
"emitted_at": 1731090040516.7517,
"connectorConfig": {
"config": {
"auth_type": "oauth2",
"sandbox": false,
"start_date": "2000-01-01T00:00:00Z",
"credentials": {
"client_id": "************",
"client_secret": "************",
"refresh_token": "************",
"access_token": "************",
"realm_id": "************",
"token_expiry_date": "2024-11-08T19:20:40.516582+00:00"
}
}
}
}
}
Summary by CodeRabbit
New Features
config_change_callback
parameter in theConnectorBase
,Destination
, andSource
classes, enabling dynamic handling of configuration changes.get_destination
andget_source
functions with theconfig_change_callback
parameter to support configuration changes during setup.get_connector
function, encouraging users to transition toget_source
.Bug Fixes