-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Update lowcode docs #17752
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
Update lowcode docs #17752
Conversation
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.
Docs changes look good! Just a few small suggestions and edits. But my main concern about this is how we keep all the schema blocks up to date as the language changes. This should be okay since we won't modify it much for Hacktoberfest, but this might start to get unwieldly when we try to make future breaking changes.
@@ -0,0 +1,648 @@ | |||
--- |
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.
Out of curiosity was this YAML handwritten or generated from the code and if so how?
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.
handwritten
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.
it's not a perfect test, but I validated it against greenhouse, sentry, and sendgrid
docs/connector-development/config-based/low-code-cdk-overview.md
Outdated
Show resolved
Hide resolved
docs/connector-development/config-based/understanding-the-yaml-file/error-handling.md
Outdated
Show resolved
Hide resolved
docs/connector-development/config-based/understanding-the-yaml-file/request-options.md
Outdated
Show resolved
Hide resolved
docs/connector-development/config-based/understanding-the-yaml-file/requester.md
Outdated
Show resolved
Hide resolved
docs/connector-development/config-based/understanding-the-yaml-file/requester.md
Outdated
Show resolved
Hide resolved
docs/connector-development/config-based/understanding-the-yaml-file/stream-slicers.md
Outdated
Show resolved
Hide resolved
1. [Requester](./requester.md): Describes how to submit requests to the API source | ||
2. [Paginator](./pagination.md): Describes how to navigate through the API's pages | ||
3. [Record selector](./record-selector.md): Describes how to extract records from a HTTP response | ||
4. [Stream Slicer](./stream-slicers.md): Describes how to partition the stream, enabling incremental syncs and checkpointing |
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.
lowercase or the previous one uppercase? capitalization is a little inconsistent
Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
…-file/request-options.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
…-file/requester.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
…-file/stream-slicers.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
…-file/requester.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
…-file/error-handling.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
@@ -54,8 +54,9 @@ class DefaultErrorHandler(ErrorHandler, JsonSchemaMixin): | |||
4. ignore HTTP 404 | |||
` | |||
error_handler: | |||
- http_codes: [ 404 ] | |||
action: IGNORE | |||
response_filters: |
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.
this was a bug in the comment
@@ -11,29 +11,29 @@ The low-code framework is in [alpha](https://docs.airbyte.com/project-overview/p | |||
Refer to the REST API documentation for the source you want to build the connector for and answer the following questions: | |||
|
|||
- Does the REST API documentation show which HTTP method to use to retrieve data, and that the response is a JSON object? | |||
- Do the queries either return data synchronously or trigger a bulk workflow? | |||
- Do the queries either return data synchronously? |
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.
we don't support bulk workflows
| [Record transformation](understanding-the-yaml-file/record-selector.md) | [Field selection](understanding-the-yaml-file/record-selector.md#selecting-a-field)<br/>[Adding fields](understanding-the-yaml-file/record-selector.md#adding-fields)<br/>[Removing fields](understanding-the-yaml-file/record-selector.md#removing-fields)<br/>[Filtering records](understanding-the-yaml-file/record-selector.md#filtering-records) | | ||
| [Error detection](understanding-the-yaml-file/error-handling.md) | [From HTTP status code](understanding-the-yaml-file/error-handling.md#from-status-code)<br/>[From error message](understanding-the-yaml-file/error-handling.md#from-error-message) | | ||
| [Backoff strategies](understanding-the-yaml-file/error-handling.md#Backoff-Strategies) | [Exponential](understanding-the-yaml-file/error-handling.md#Exponential-backoff)<br/>[Constant](understanding-the-yaml-file/error-handling.md#Constant-Backoff)<br/>[Derived from headers](understanding-the-yaml-file/error-handling.md#Wait-time-defined-in-header) | | ||
| Feature | Support | |
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.
this is all just autoformating...
@@ -103,6 +103,18 @@ For each stream, configure the following components: | |||
|
|||
For a deep dive into each of the components, refer to Understanding the YAML file | |||
|
|||
## Tutorial |
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.
overall view and links to the tutorial
@@ -65,11 +65,21 @@ TopLevel(param=ParamType(k="v")) | |||
|
|||
More details on object instantiation can be found [here](https://airbyte-cdk.readthedocs.io/en/latest/api/airbyte_cdk.sources.declarative.parsers.html?highlight=factory#airbyte_cdk.sources.declarative.parsers.factory.DeclarativeComponentFactory). | |||
|
|||
### $options | |||
## $options |
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.
move to header2
field_pointer: | ||
- "data" | ||
- "records" | ||
field_pointer: [ "data", "records" ] |
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.
change to [] for consistency
@@ -118,26 +233,58 @@ the resulting stream slices are | |||
] | |||
``` | |||
|
|||
[^1] This is a slight oversimplification. See [update cursor section](#cursor-update) for more details on how the cursor is updated. |
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.
moved to the bottom of the file
``` | ||
|
||
## Nested streams |
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.
make this more explicit in the hope it helps discoverability
- path: [ "start_date" ] | ||
value: {{ stream_slice[ 'start_date' ] }} | ||
``` | ||
## Configuring the cursor field for incremental syncs |
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.
Explicitly call out incremental syncs
@@ -0,0 +1,648 @@ | |||
--- |
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.
handwritten
…vation * master: (22 commits) Update full-refresh-append.md (#17784) Update full-refresh-overwrite.md (#17783) Update incremental-append.md (#17785) Update incremental-deduped-history.md (#17786) Update cdc.md (#17787) 🪟 🔧 Ignore classnames during jest snapshot comparison (#17773) feat: replace openjdk with amazoncorretto:17.0.4 on connectors for seсurity compliance (#17511) Start testing buildpulse. (#17712) Add missing types to the registry (#17763) jobs db descriptions (#16543) config db data catalog (#16427) Update lowcode docs (#17752) db migrations to support new webhook operations (#17671) Bump Airbyte version from 0.40.13 to 0.40.14 (#17762) September Release Notes (#17754) Revert "Use java-datadog-tracer-base image (#17625)" (#17759) Add connection migrations for schema changes (#17651) Connection Form Refactor - Part Two (#16748) Improve E2E testing around the Connection Form (#17577) Bump strict encrypt version (#17747) ...
* Update lowcode docs * Update * fix links * more links * Schemas * indent * Update docs/connector-development/config-based/advanced-topics.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * Update docs/connector-development/config-based/advanced-topics.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * Update docs/connector-development/config-based/low-code-cdk-overview.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * Update docs/connector-development/config-based/understanding-the-yaml-file/request-options.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * Update docs/connector-development/config-based/understanding-the-yaml-file/requester.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * Update docs/connector-development/config-based/understanding-the-yaml-file/stream-slicers.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * Update docs/connector-development/config-based/understanding-the-yaml-file/requester.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * Update docs/connector-development/config-based/understanding-the-yaml-file/error-handling.md Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com> * capitalization * fix schema * fix schema * small changes so greenhouse validates * fix brackets * update code samples * Add missing types * fix * reset Co-authored-by: Brian Lai <51336873+brianjlai@users.noreply.github.com>
What
Update low-code documentation as per feedback
How
airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/error_handlers/default_error_handler.py
How the framework works
section with a flow diagram in advanced topicsRecommended reading order
All files are independent
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changesTests
Unit
Put your unit tests output here.
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.