Skip to content
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

[Feature] Add linked_id and key on import #116

Open
tim-steinkuhler opened this issue Dec 11, 2024 · 2 comments
Open

[Feature] Add linked_id and key on import #116

tim-steinkuhler opened this issue Dec 11, 2024 · 2 comments
Assignees
Labels
triage Issue needs to be triaged by the maintainer team.

Comments

@tim-steinkuhler
Copy link

Describe the feature
If you import jobs, and then want to link them, I interpret these are the steps:

  1. dbt-jobs-as-code import-jobs --account-id 1111 --project-id 2222 --environment-id 3333 >> jobs_2222_3333.yml
  2. Add linked_id to each job with the correct id
  3. Set a meaningful key to each job:
jobs:
  import_1:
  ...
>>

jobs:
  build:
  ...
  1. dbt-jobs-as-code link jobs_2222_3333.yml

Where I think step 2 and 3 could be done automatically.

  1. we know the id of the job we're importing
  2. we could generate a key better than import_1

Describe alternatives you've considered
Doing this manually

Who will this benefit?
People with existing dbt Cloud jobs they want to start managing through dbt-jobs-as-code

Are you interested in contributing this feature?
Can do if that helps

@tim-steinkuhler tim-steinkuhler added the triage Issue needs to be triaged by the maintainer team. label Dec 11, 2024
@b-per
Copy link
Collaborator

b-per commented Dec 11, 2024

For 2. , you can use the parameter --include-linked-id to add the linked_id.

For 3. , what other options would you like?

  • based on the job name?
  • based on the steps?
  • providing your own prefix instead of import_?

@tim-steinkuhler
Copy link
Author

Ah nice, I missed that, thanks a lot for the explanation!
I think based on the job name would make sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue needs to be triaged by the maintainer team.
Projects
None yet
Development

No branches or pull requests

2 participants