-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug: can't download PDF of demo ATBD on live APT #545
Comments
@bwbaker1 Here is the ticket Deborah created about the PDF generation bug we discussed today. If you are able to add an abstract and even create a new demo ATBD and still are not able to generate a PDF, that would be a great troubleshoot just to help narrow down what could be causing this. |
Ok. Thanks and I will keep you updated.
|
@aboydnw I tried adding missing content, updating to new minor version, and updating to new major version and received the same error from the screen shot. Looks like it will need to be a completely new document. |
New document was created and all original content was migrated over and inline equations, references, etc. were updated. The published document is now downloadable. |
Thanks @bwbaker1 I am sure that was a ton of work! There might have been some error when we migrated data (cc @leothomas @naomatheus to check my diagnosis there) However, when I try to download this document (which I assume is the one you just made) I wonder if there is an issue with downloading documents as an unauthorized user? Here is a screenshot of the error I receive. If it is unrelated to the original issue, we can always create a new ticket. |
@aboydnw Yeah, that is a completely new document that I created. I was able to download it yesterday, but I got the same error as you today when I tried to download it. Also, attached is the PDF I downloaded yesterday. I just tested to see if it would download and did not look at the PDF. There are some strange things about it. First, only a few pages were in the PDF (intro, historical perspective, and algorithm description). Second, in-text references show up as "(?, ?)." Third, there are extra spaces around variables (e.g., E d). |
@naomatheus @oliverroick the demo ATBD we've been looking at above has been accidentally deleted. If I remember correctly, this action in APT is a soft delete, right? Is there any way for you to recover this deleted ATBD? It would have "[Demo]" in the title and probably be the most recently created document. |
@bwbaker1 Unfortunately, this action is a hard delete. So, there is no way of recovering the deleted ATBD. Which is a bummer, knowing how much work you put into it. The tiniest silver lining might be that it gives us a chance to confirm if the download functionality is broken. Also, there is an update that the team is working on the fix document search that we should probably wait to be completed before publishing a new ATBD. Would it be possible to wait until publishing a new demo ATBD until after that update has gone through? |
@aboydnw I will confirm with Deborah but I don't see a problem with waiting to publish the demo (as long as it is soon). I will go ahead and recreate it and have it ready to publish when the document search is fixed. Thanks for checking on recovering the ATBD. |
@bwbaker1 sounds good. We expect this fix to be rolled out by end of week. |
No description provided. |
@bwbaker1 please update your status on the demo ATBD |
demo ATBD is ready to publish @aboydnw @wrynearson can we do so? per messages above, we were waiting for the fix to document search. Please let Brad know as soon as we can. ALSO - both Brad and I get the error at the top of this ticket when trying to print either the journal PDF or the document PDF. This must be fixed by 9/16. Work with Brad next week please to get the problem resolved. |
Hi @deborahUAH, correct, please wait until we fix the document search before publishing. We'll let you know as soon as that's done. I assume that the PDF export error is on https://www.earthdata.nasa.gov/apt/? @naomatheus could you please look into the backend logs for this? |
@deborahUAH, just out of curiosity, why is 9/16 the deadline? |
It is the end of Q4 and the last sprint. otherwise can keep going. I just
would like to have as much done by then as possible for review.
Deborah K Smith
|
Hi @leothomas, has @naomatheus been in touch with you about this issue? If not, would you be able to help us look into this bug? I wasn't sure if @naomatheus had access to the logs in the prod environment. For context for reproducing, this was in reference to the demo ATBD on production. This was later accidentally deleted, and we've having APT colleagues wait to recreate a demo ATBD until we get OpenSearch changes to prod (#500), but they are still having PDF download issues on other reports. I am unable to recreate because my account (will@developmentseed.org) hasn't been approved yet (does someone, maybe @bwbaker1 or @kaulfusa have permissions to approve my account?). cc: @TimMcCauley |
@wrynearson Your account is now approved. When I try to download while logged in as a curator, I get this error: It doesn't seem to matter what the current status of the ATBD is in (draft, review, etc.). |
Hey there! I'm currently unable to access MCP (likely due to an update to Kion that was run last night), but happy to check out the logs once my access is restored. If seen the first error ( |
@leothomas This is the ATBD I'm trying to download: "[DEMO Only] MOD20: Instantaneous Photosynthetically Available Radiation and Absorbed Radiation by Phytoplankton." The best I can tell, it seems all of the required sections are completed. Some are just placeholders, but there is still content. But I still get ('NoneType object has no attribute 'get') error. |
@leothomas @naomatheus I thought we had removed the requirement for sections to be completed to generate a PDF? Did those changes get reverted or not pushed to production? Or am I losing my mind with those changes. |
@aboydnw that sounds familiar Anthony. Do you happen to know which issue that was covered under? |
I see in this release it has a note that Abstract should be optional. Maybe that is not the bug here, but could just be more info: |
Hi @bwbaker1 , could you approve my account also? My username/email are RobinsMK12/matthew@developmentseed.org |
@naomatheus Your account is approved. |
I logged in as a curator and tried downloading the
Which is due to a space in this url: (between As a curator, I don't have the ability to edit that document, and I'd rather not do it through the database. Can someone try removing the space and seeing if it resolves the error? @bwbaker1 I wasn't able to replicate the |
What's going on here is that when an ATBD does not have content, the backend receives some null values in the This can be resolved by a backend restructuring (similar to what was just done for SNWG PDF generation). However I wanted to ask @danielfdsilva is there something that could be implemented on the front end that places some placeholder values into an empty ATBD when we call the PDF download and generation endpoint? |
@naomatheus As far as I know, the server sends the values to the pdf generator. The frontend only requests a pdf. There should be placeholders for almost all fields, but that should be a server thing |
@naomatheus That makes sense, but the ATBDs we have tested have all of the content there (sometimes it is just "TBD"). That is my confusion on this ticket because this has been mentioned before. |
@danielfdsilva thanks Daniel. Yea you're right on that. After looking into this, the error was raising not because of "missing" values, but because of how some typings have changed since the PDF generation logic was originally written. Pending review of PR 592 this will push up to staging for testing @bwbaker1 @wrynearson |
Thanks @naomatheus. #592 will probably only be reviewed early next week. Once it is, we will let @bwbaker1 know so that he is able to test it on staging. |
Hi @bwbaker1 #592 is merged into staging. cc @wrynearson |
Hi @bwbaker1, @naomatheus found a bug related to images not displaying in downloaded PDFs. When you test this ticket in staging, could you test for images as well? @naomatheus made a new issue: #593 |
I just got an email from a user regarding PDF error. She needs to be able to download the PDF. This is her error, just putting it here if this helps shed any more light on the various PDF issues. @naomatheus
|
@wrynearson @naomatheus @bwbaker1 I just tested the PDF download on staging. I added to the DeborahATBD draft some images with captions and some references to test the function of both. Here is what I found:
So ....the PDF is still not working correctly. Please prioritize this repair. PDF function is a P1 bug. Thanks! |
@wrynearson |
PDF behavior question:
|
|
@naomatheus 1) after thinking about this a bit, I think having "no caption provided" would be best as it would indicate to the user that they forgot to enter one. They could just enter a space if they choose to have no caption, but I figure nearly all scientists will have a caption. |
@naomatheus here is a recent skeletal PDF I provide both so you can see differences. Ask when you have any questions as both have issues and neither are perfect. |
@deborahUAH @wrynearson cc: @bwbaker1 |
@naomatheus thanks for the update. Can we identify a pattern of which PDFs are not downloading? @bwbaker1 said the main demo ATBD can't be downloaded. Do you have any idea why this is occurring on prod when it wasn't on staging? |
@wrynearson The same errors did not present in staging due differences in content between the PDFs in the prod site and those in the staging site. |
@naomatheus please provide current status of this ticket.... we still can not download a PDF of the Demo ATBD in production. I would like to close this ticket, but need to get PDF download working.. I see other tickets mentioned herein. Please summarize status of effort here. |
@deborahUAH Please discuss with @wrynearson regarding what to do with the status of this ticket. This particular ticket has been open for a long time, and the state of PDF has improved significantly. To summarize, I'll have at least two additional team members assisting me with APT starting in one and two weeks respectively. Our pace will accelerate as we'll be able to focus on PDF download availability and PDF formatting requirements. State of PDF download:I am able to download most (not all) PDFs in both production, with my own user role, and staging environment, with the contributor role,. Regarding the PDFs that do not download successfully in production. I believe an additional deployment of staging code base to production will resolve download errors more completely. The remaining reason for some PDFs not downloading successfully has to do with the images - I won't go into detail here as we're still discussing. We identified the issue today and this will be assigned by @wrynearson . I am able to successfully download the following PDFs in production.
I am able to download all PDFs that I have access to in staging. Recent effortsRecently my efforts have been in the area of PDF generation, specifically the formatting of PDFs. These are issues like those described in the most recent 3-4 issues created by @bwbaker1 in the main issues page. It is appropriate to separate formatting issues even though there is overlap with PDF generation in general. A formatting quirk can block the download of a particular PDF and this would be the overlap. |
This ticket is for the PDF generation succeeding or not. Other PDF issues are tagged with the
PDF
|
Closing this as Document PDFs are now downloadable |
Image above shows the error obtained when I try to download the PDF of the demo ATBD located on earthdata.nasa.gov/apt.
Please identify error and fix.
Success Criteria:
user can download the public Demo ATBD as a PDF
The text was updated successfully, but these errors were encountered: