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

query Dimensions with ORCID, closes #5 #23

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

jacobthill
Copy link
Collaborator

No description provided.

dimcli.login(
os.environ.get("DIMENSIONS_API_USER"),
os.environ.get("DIMENSIONS_API_PASS"),
"https://app.dimensions.ai",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be helpful if we refactored this code so that the username/password are passed in from rialto_airflow.dag.update_data which gets them from airflow variables similar to how sul_pub is being handled. I can push some changes to this PR if you would like help with that.

no_auth = not (dimensions_user and dimensions_password)


@pytest.mark.skipif(no_auth, reason="no dimensions key")
Copy link
Contributor

Choose a reason for hiding this comment

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

I have set AIRFLOW_VAR_DIMENSIONS_API_USER and AIRFLOW_VAR_DIMENSIONS_API_PASS as GitHub secrets, so they should be available to our CI test environment. They should be pulled in here and then passed into the dimensions code I think?

@edsu
Copy link
Contributor

edsu commented Jun 19, 2024

If you prefer @jacobthill we can merge this as is, and add to it going forward. I'm switching the review to Approve and leave it up to you.

@jacobthill jacobthill merged commit 9d79824 into main Jun 19, 2024
0 of 2 checks passed
@jacobthill jacobthill deleted the dimensions-harvest branch June 19, 2024 16:32
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