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

[Bug]: Inconsistent config naming in cookiecutter #1452

Closed
1 task
radbrt opened this issue Feb 23, 2023 · 2 comments · Fixed by #1454
Closed
1 task

[Bug]: Inconsistent config naming in cookiecutter #1452

radbrt opened this issue Feb 23, 2023 · 2 comments · Fixed by #1454

Comments

@radbrt
Copy link
Contributor

radbrt commented Feb 23, 2023

Singer SDK Version

0.21.0

Is this a regression?

  • Yes

Python Version

NA

Bug scope

Taps (catalog, state, stream maps, etc.)

Operating System

Mac

Description

In the cookiecutter tap template, one of the configs in tap.py is auth_token:

In the client.py file for REST targets however, the code references a config named api_key:

My hunch is that client.py for REST taps should reference auth_token as that is what the graphQL template does.

If anyone agrees, I'll make a PR. As it is today, this config name has to be changed for the tap to run.

Code

No response

@radbrt radbrt added kind/Bug Something isn't working valuestream/SDK labels Feb 23, 2023
@tayloramurphy
Copy link
Collaborator

@aaronsteers @edgarrmondragon can you add your thoughts on this?

@edgarrmondragon
Copy link
Collaborator

edgarrmondragon commented Feb 23, 2023

@tayloramurphy Yeah, we should change the client.py template to use auth_token instead, for consistency.

I'd say a PR is welcome @radbrt 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants