Skip to content

Conversation

@kanterov
Copy link
Collaborator

Changes

Update generated code with the latest schema

tasks: VariableOrList[TaskParam]
"""
A list of task specifications to be executed by this job.
If more than 100 tasks are available, you can paginate through them using :method:jobs/get. Use the `next_page_token` field at the object root to determine if more results are available.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a problem with bundle schema, we should annotate API-only descriptions and strip them.

class DbtTask:
""""""

commands: VariableOrList[str]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Field order has changed because "commands" is not required anymore

@kanterov kanterov marked this pull request as ready for review March 17, 2025 14:55
@kanterov kanterov mentioned this pull request Mar 17, 2025
@kanterov kanterov requested a review from anton-107 as a code owner March 20, 2025 14:07
@github-actions
Copy link

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 2508
  • Commit SHA: da640e689b3eb8037901a973f0026809d3f37d9f

Checks will be approved automatically on success.

@kanterov kanterov enabled auto-merge March 20, 2025 14:39
@kanterov kanterov added this pull request to the merge queue Mar 20, 2025
Merged via the queue into databricks:main with commit 3d17ab7 Mar 20, 2025
15 checks passed
@kanterov kanterov deleted the kanterov/update-python-models branch March 20, 2025 15:11
github-merge-queue bot pushed a commit that referenced this pull request Apr 15, 2025
## Changes
Add the code generator from the bundle schema to the Python code.
Currently, it's only enabled for the "jobs" package.

There is a new GitHub action to verify that codegen is always up-to-date
whenever we update bundle schema.

Depends on #2508

## Tests
- A few unit tests
- Primarily tested by diffing output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants