Skip to content

SUBMISSION-167: Cleanup (remove hack used while compilation was under development). Added code to allow PDF-only to get past conditional requiring a review.#71

Open
DavidLFielding wants to merge 2 commits into
developfrom
SUBMISSION-167
Open

Conversation

@DavidLFielding

@DavidLFielding DavidLFielding commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

We added a hack to allow us to continue working while the convert/compile service was not functional. This basically allow us to copy a PDF into the submission directory so we have a 'compiled' PDF available. Compilation service is working so we can delete this.

Also added code to update ConfirmPreview condition to allow non-processed formats like PDF and HTML. Existing tests that use ConfirmPreview were updated to include source format and additional tests were added to test new functionality.

…e ConfirmPreview.validate() to match the workflow's has_non_processing_content pattern. [SUBMISSION-167] David
…ode tests now set source_format=TEX explicitly (otherwise they'd hit the new lenient PDF/HTML path and stop raising). Adds PDF/HTML lenient-path tests and a PostScript test verifying it still requires preview. Covers all three reachable branches of the validator. [SUBMISSION-167] David
@DavidLFielding DavidLFielding marked this pull request as ready for review June 9, 2026 03:24
)

# Minimal "working" submission (unannounced)
def _working_submission(uid: str = "u1"):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Be aware that submit_ce/ui/conftest.py has fixtures which provide submissions in many stages of completion. This is likely to remain correct (having the correct state for a given stage) as we develop the software.

No need for change.

def test_confirm_preview_pdf_no_preview_passes():
"""
For PDF-only submissions, ConfirmPreview should pass even when
submission.preview is None -- the source PDF IS the preview, no

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In 1.5 we don't make the submitter preview the PDF file the uploaded to confirm that they didn't upload the wrong file? like their tax returns?

@DavidLFielding DavidLFielding changed the title Submission 167 SUBMISSION-167: Cleanup (remove hack used while compilation was under development). Added code to allow PDF-only to get past conditional requiring a review. Jun 11, 2026
Base automatically changed from SUBMISSION-150 to develop June 11, 2026 18:37
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