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

Solve H7 bug when importing NOFOs + extend timeout time #131

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

pcraig3
Copy link
Collaborator

@pcraig3 pcraig3 commented Dec 24, 2024

Summary

This PR does two things:

  1. Solves the import problem where NOFOs with h1s and h7s would fail to import
  2. Doubles the app timeout time

1. Solves the import bug with H1s and H7s

Sometimes, we demote heading levels vs other times we don't.

When someone submits documents that have H1s in it, then we demote them all because there is only 1 H1 allowed in the document, for accessibility reasons.

Historically, this has meant that we have been demoting H6 levels to H7s, which is why we shim H7s.

However, when people submit a document that has H1s and H7s, then it threw an exception and wouldn't import because there's no such thing as an H8.

This commit solves this by keeping the H7s as H7s, it doesn't demote them but it also doesn't cause an error when they show up.

2. Doubles the app timeout time

We have had trouble importing long NOFO documents in prod because the app times out.

This is a test to see whether or not we can import documents with a longer timeout time.

This is not the real fix, it is a temporary fix, but we want to benchmark the app.

Sometimes, we demote heading levels vs other times we don't.

When someone submits documents that have H1s in it, then we
demote them all because there is only 1 H1 allowed in the document,
for accesibility reasons.

Historically, this has meant that we have been demoting H6 levels to
H7s, which is why we shim H7s.

However, when people submit a document that has H1s _and_ H7s, then
it threw an exception and wouldn't import because there's no such
thing as an H8.

This commit solves this by keeping the H7s as H7s, it doesn't demote
them but it also doesn't cause an error when they show up.
We have had trouble importing long NOFO documents in prod because the
app times out.

This is a test to see whether or not we can import documents with
a longer timeout time.

This is not the real fix, it is a temporary fix, but we want to
benchmark the app.
@pcraig3 pcraig3 merged commit 30ed31e into main Dec 24, 2024
4 checks passed
@pcraig3 pcraig3 deleted the solve-h7-bug-for-kevin branch December 24, 2024 15:15
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.

1 participant