Skip to content

models: Validate Bibliographic::HostBibTask.email#11

Open
awilfox wants to merge 1 commit intomainfrom
awilfox/AP-577-validate-biblio-email
Open

models: Validate Bibliographic::HostBibTask.email#11
awilfox wants to merge 1 commit intomainfrom
awilfox/AP-577-validate-biblio-email

Conversation

@awilfox
Copy link
Member

@awilfox awilfox commented Feb 4, 2026

This ensures we do not create jobs without email addresses.

Closes: AP-577


@yzhoubk since you were the one who was running into jobs without email addresses while testing #10, would you be able to try this branch out and see if this helps?

I'm wondering if one of the test jobs was firing off, since they didn't specify an email. At any rate, having this validation should help us catch out any places we're missing the email in the future.

@awilfox awilfox self-assigned this Feb 4, 2026
@awilfox
Copy link
Member Author

awilfox commented Feb 4, 2026

fascinating, neither of those tests fail on my local computer.

This ensures we do not create jobs without email addresses.

Additionally, add email address attributes to the test user data.

Closes: AP-577
@awilfox awilfox force-pushed the awilfox/AP-577-validate-biblio-email branch from 8d7527e to 2478d58 Compare February 4, 2026 04:26
@yzhoubk
Copy link
Contributor

yzhoubk commented Feb 4, 2026

@awilfox I pulled the branch and tested it locally, when uploaded a bib batch, it gave a 500 error. Could you try it locally with these steps?

  1. Go to http://localhost:3000/bibliographics
  2. Select the text file: /spec/data/upload_file.txt
  3. Submit

For the previous error 'ArgumentError: SMTP to address may not be blank: [].', I login in Calnet, how can my email is blank? All calnet user should have an email. We need some investigation on it.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is using an email of a former employee in LIT. I think they probably put it in there but not sure if we should still be using it. Looks like it's used in several places

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.

3 participants