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

Generate Multiple OCLC Numbers Report with Link in Email #1409

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

jermnelson
Copy link
Collaborator

Fixes #1194

@jermnelson jermnelson requested review from shelleydoljack and jgreben and removed request for shelleydoljack November 6, 2024 00:36
Copy link
Contributor

@jgreben jgreben left a comment

Choose a reason for hiding this comment

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

@jermnelson can you take a look at #1407 before we merge this?

Copy link
Contributor

@jgreben jgreben left a comment

Choose a reason for hiding this comment

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

Question about task group calling task that calls a single function. Also, it may be easier for you to rebase this off of #1407 if we can sort out the test on that?

@jermnelson jermnelson marked this pull request as draft November 6, 2024 16:22
@jermnelson
Copy link
Collaborator Author

@jermnelson can you take a look at #1407 before we merge this?

I made this PR a draft until #1407 is approved and merged and then I'll rebase off of main then.

@jgreben jgreben marked this pull request as ready for review November 6, 2024 19:21
@jermnelson jermnelson marked this pull request as draft November 6, 2024 20:01
@jermnelson jermnelson force-pushed the t1194-multiple-oclc-report branch from f9686d2 to 03145c8 Compare November 6, 2024 22:45
@jermnelson jermnelson requested a review from jgreben November 6, 2024 22:46
@jermnelson jermnelson marked this pull request as ready for review November 6, 2024 22:48
Copy link
Contributor

@shelleydoljack shelleydoljack left a comment

Choose a reason for hiding this comment

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

I checked the email that was sent and the report looks good except the link to the DAG Run doesn't work. The error is DAG "13306" seems to be missing from DagBag.. Is 13306 the dag_id? Maybe the link should be https://sul-libsys-airflow-dev.stanford.edu/dags/select_oclc_records/grid?dag_run_id=manual__2024-11-07T00%3A42%3A19.037638%2B00%3A00 instead?

@jermnelson
Copy link
Collaborator Author

jermnelson commented Nov 7, 2024

I checked the email that was sent and the report looks good except the link to the DAG Run doesn't work. The error is DAG "13306" seems to be missing from DagBag.. Is 13306 the dag_id? Maybe the link should be https://sul-libsys-airflow-dev.stanford.edu/dags/select_oclc_records/grid?dag_run_id=manual__2024-11-07T00%3A42%3A19.037638%2B00%3A00 instead?

This PR just uses the existing function dag_run_url that sets the DAG run URL here:

return f"{airflow_url}dags/{dag_run.id}/grid?{params}"
.

Emails and the OCLC reports use this function so it is strange this bug hasn't been noted before. I can create a bug ticket but it more general than this PR.

@shelleydoljack
Copy link
Contributor

I checked the email that was sent and the report looks good except the link to the DAG Run doesn't work. The error is DAG "13306" seems to be missing from DagBag.. Is 13306 the dag_id? Maybe the link should be https://sul-libsys-airflow-dev.stanford.edu/dags/select_oclc_records/grid?dag_run_id=manual__2024-11-07T00%3A42%3A19.037638%2B00%3A00 instead?

This PR just uses the existing function dag_run_url that sets the DAG run URL here:

return f"{airflow_url}dags/{dag_run.id}/grid?{params}"

.
Emails and the OCLC reports use this function so it is strange this bug hasn't been noted before. I can create a bug ticket but it more general than this PR.

I am now just realizing that it was noticed before when the POD transmission failed (which it did last night again). The link https://sul-libsys-airflow-prod.stanford.edu/dags/86302/grid?dag_run_id=scheduled__2024-11-06T08%3A00%3A00%2B00%3A00 goes to the missing dagbag error message. Yes, maybe a follow-on PR. I think maybe dag_run.id != dag_run.dag_id 🤷

@jermnelson jermnelson merged commit 89e5dc4 into main Nov 7, 2024
4 checks passed
@jermnelson jermnelson deleted the t1194-multiple-oclc-report branch November 7, 2024 17:29
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.

OCLC export - not receiving multiple oclc number email
3 participants