Skip to content

Conversation

@tjcouch-sil
Copy link
Collaborator

@tjcouch-sil tjcouch-sil commented Dec 18, 2025

Fixed these problems because I needed to use the Auto Drafts view for testing https://paratextstudio.atlassian.net/browse/PT-3699

This change is Reviewable

@tjcouch-sil tjcouch-sil enabled auto-merge (squash) December 18, 2025 19:21
@tjcouch-sil tjcouch-sil changed the title Fixed failure with no generated draft, recognize faulted and canceled draft statuses PT-3583: Fixed failure with no generated draft, recognize faulted and canceled draft statuses Dec 18, 2025
Copy link
Contributor

@irahopkinson irahopkinson left a comment

Choose a reason for hiding this comment

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

Thanks for this fix. I noticed it wasn't showing the drafts but was trying to stay in scope of fixing deps. Very happy to see it working again. Feel free to ignore my non-blocking comment.

@irahopkinson reviewed 3 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @lyonsil and @tjcouch-sil).


src/scripture-forge/src/projects/slingshot-project-data-provider-engine.model.ts line 141 at r1 (raw file):

    if (
      lastCompletedDraftStatus === StatusCodes.NO_CONTENT ||
      lastCompletedDraftStatus === StatusCodes.NOT_FOUND

BTW did you consider using a util function for these repeated checks?

Code quote:

      lastCompletedDraftStatus === StatusCodes.NO_CONTENT ||
      lastCompletedDraftStatus === StatusCodes.NOT_FOUND

@tjcouch-sil tjcouch-sil merged commit aa0d99f into main Dec 18, 2025
4 of 5 checks passed
@tjcouch-sil tjcouch-sil deleted the pt-3583-fix-no-draft branch December 18, 2025 20:18
Copy link
Collaborator Author

@tjcouch-sil tjcouch-sil left a comment

Choose a reason for hiding this comment

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

@tjcouch-sil made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion.


src/scripture-forge/src/projects/slingshot-project-data-provider-engine.model.ts line 141 at r1 (raw file):

Previously, irahopkinson (Ira Hopkinson) wrote…

BTW did you consider using a util function for these repeated checks?

I did, but I decided not to for now. Some stuff below used this to narrow the type, and I was too lazy to worry about making a utility function that did all the narrowing just right. Maybe next time we touch it ;) thanks for the review!

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