Skip to content

Conversation

lmossman
Copy link
Contributor

@lmossman lmossman commented Aug 7, 2025

Currently in the Builder UI, there is no tooltip explaining what the difference between Request Option and Request Path is for page token injection.

This PR fixes this by adjusting the descriptions of these definitions. This is what the changes look like in the UI:
Screenshot 2025-08-06 at 5 10 06 PM

Summary by CodeRabbit

  • Documentation
    • Improved descriptions for configuration options related to page token injection and request paths in the schema, providing clearer guidance for users configuring HTTP requests.

@Copilot Copilot AI review requested due to automatic review settings August 7, 2025 00:10
@github-actions github-actions bot added the docs label Aug 7, 2025
Copy link

github-actions bot commented Aug 7, 2025

👋 Greetings, Airbyte Team Member!

Here are some helpful tips and reminders for your convenience.

Testing This CDK Version

You can test this version of the CDK using the following:

# Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/airbyte-python-cdk.git@lmossman/page-token-option-descriptions#egg=airbyte-python-cdk[dev]' --help

# Update a connector to use the CDK from this branch ref:
cd airbyte-integrations/connectors/source-example
poe use-cdk-branch lmossman/page-token-option-descriptions

Helpful Resources

PR Slash Commands

Airbyte Maintainers can execute the following slash commands on your PR:

  • /autofix - Fixes most formatting and linting issues
  • /poetry-lock - Updates poetry.lock file
  • /test - Runs connector tests with the updated CDK
  • /poe build - Regenerate git-committed build artifacts, such as the pydantic models which are generated from the manifest JSON schema in YAML.
  • /poe <command> - Runs any poe command in the CDK environment

📝 Edit this welcome message.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the documentation for page token injection options in the Builder UI by adding clearer descriptions for the tooltip functionality. The changes help users understand the difference between Request Option and Request Path when configuring page token injection.

  • Added description for the page_token_option field explaining how page tokens can be injected into HTTP requests
  • Updated the RequestPath description to be more concise and user-friendly

@lmossman lmossman requested a review from ChristoGrab August 7, 2025 00:12
Copy link
Contributor

coderabbitai bot commented Aug 7, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

📝 Walkthrough

Walkthrough

This change updates the description fields for the page_token_option property in both the YAML schema and the corresponding Python model. The new descriptions clarify that the page token is injected into outgoing HTTP requests, either in the request URL path or as a field. No structural or behavioral changes were made.

Changes

Cohort / File(s) Change Summary
Schema Description Updates
airbyte_cdk/sources/declarative/declarative_component_schema.yaml
Updated description for page_token_option in DefaultPaginator and revised the description for RequestPath to clarify their roles in HTTP requests. No changes to types or required fields.
Python Model Description Update
airbyte_cdk/sources/declarative/models/declarative_component_schema.py
Added a detailed description to the page_token_option field in the DefaultPaginator class, aligning with the schema clarification. No functional or structural changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Would you like to review if the new descriptions are clear and consistent across both the YAML schema and the Python model, or consider adding an example for even more clarity? Wdyt?

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch lmossman/page-token-option-descriptions

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (1)
airbyte_cdk/sources/declarative/declarative_component_schema.yaml (1)

1840-1841: Clarify what “a field on the request” means

The phrase could still leave users wondering whether “field” refers to query parameters, headers, or request body attributes. Would spelling that out (e.g., “query parameter, header, or body field”) make the tooltip clearer, wdyt?

🧹 Nitpick comments (1)
airbyte_cdk/sources/declarative/models/declarative_component_schema.py (1)

2004-2007: Docs-only change looks good, but maybe regenerate instead of hand-editing?

The new wording clearly explains that the page token may be injected either in the URL path or in another request field — nice!
Since this file is auto-generated from the YAML schema, manually touching it can be lost on the next codegen run. Would it make sense to keep the source-of-truth change only in the YAML and let code-generation refresh this file, just to avoid drift, wdyt?

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e1664ec and 51bac01.

📒 Files selected for processing (2)
  • airbyte_cdk/sources/declarative/declarative_component_schema.yaml (2 hunks)
  • airbyte_cdk/sources/declarative/models/declarative_component_schema.py (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: in the airbytehq/airbyte-python-cdk repository, the `declarative_component_schema.py` file is auto-g...
Learnt from: pnilan
PR: airbytehq/airbyte-python-cdk#0
File: :0-0
Timestamp: 2024-12-11T16:34:46.319Z
Learning: In the airbytehq/airbyte-python-cdk repository, the `declarative_component_schema.py` file is auto-generated from `declarative_component_schema.yaml` and should be ignored in the recommended reviewing order.

Applied to files:

  • airbyte_cdk/sources/declarative/declarative_component_schema.yaml
  • airbyte_cdk/sources/declarative/models/declarative_component_schema.py
📚 Learning: when modifying the `yamldeclarativesource` class in `airbyte_cdk/sources/declarative/yaml_declarativ...
Learnt from: ChristoGrab
PR: airbytehq/airbyte-python-cdk#58
File: airbyte_cdk/sources/declarative/yaml_declarative_source.py:0-0
Timestamp: 2024-11-18T23:40:06.391Z
Learning: When modifying the `YamlDeclarativeSource` class in `airbyte_cdk/sources/declarative/yaml_declarative_source.py`, avoid introducing breaking changes like altering method signatures within the scope of unrelated PRs. Such changes should be addressed separately to minimize impact on existing implementations.

Applied to files:

  • airbyte_cdk/sources/declarative/declarative_component_schema.yaml
  • airbyte_cdk/sources/declarative/models/declarative_component_schema.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Check: source-shopify
  • GitHub Check: Pytest (All, Python 3.11, Ubuntu)
  • GitHub Check: Pytest (All, Python 3.10, Ubuntu)
  • GitHub Check: Pytest (Fast)
🔇 Additional comments (1)
airbyte_cdk/sources/declarative/declarative_component_schema.yaml (1)

3489-3491: LGTM – concise and accurate

The updated description is simple and unambiguous.

Copy link

github-actions bot commented Aug 7, 2025

PyTest Results (Fast)

3 696 tests  ±0   3 685 ✅ ±0   6m 26s ⏱️ -1s
    1 suites ±0      11 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 51bac01. ± Comparison against base commit e1664ec.

Copy link

github-actions bot commented Aug 7, 2025

PyTest Results (Full)

3 699 tests  ±0   3 688 ✅ ±0   11m 38s ⏱️ +8s
    1 suites ±0      11 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 51bac01. ± Comparison against base commit e1664ec.

@lmossman lmossman merged commit f0a8f30 into main Aug 7, 2025
26 checks passed
@lmossman lmossman deleted the lmossman/page-token-option-descriptions branch August 7, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant