Issue Number | 5249 |
---|---|
Summary | [QC Report] Error when loading QC Report into Word |
Created | 2023-06-08 17:25:44 |
Issue Type | Bug |
Submitted By | Englisch, Volker (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2023-06-08 17:36:50 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.348412 |
For large documents, we have identified the best approach to copy a
QC report into Word is by pasting the URL for the QC report into Word in
the File -> Open -> Browse window in place of a "File
name".
If a user first clicks a link in the TOC of the HTML document in order to check the display of a bolded new section, for instance, that URL will include a fragment ID, like '#_123'. Our script to pull up the parameters for the QC report expects to see a parameter ID - an integer value - therefore the load fails because the ID is formatted incorrectly.
We want to fix this issue!
Fixing this issue, by the way takes less time than creating this ticket. 🙂
The following file has been updated to fix the error message:
QcForWord.py
https://github.com/NCIOCPL/cdr-admin/commit/6545905
This is ready for review on DEV.
Hi ~volker
Can you elaborate on this issue? Is the File >Open in Word or in the Browser?
You open Word and load the QC report by pasting the URL for the QC report in the
File -> Open -> Browse window where you would
typically enter a file name.
You would enter the URL here (red oval):
Thanks! The fragment IDs are gone but it doesn't look like the links are going to the right place. In fact, the links do not appear to go any where when I do ctrl + click
CTRL+click? What are you trying to test? This ticket doesn't require to test the links in the Word document, therefore you're tests are out-of-scope.
Here is what you will have to do for testing this software change:
Open the summary CDR62902 (or any other)
Run a QC report for that summary using all default options
When the QC report comes up click on the link in the browser to the "Changes to This Summary" section
Copy the URL
Open Word
Paste the URL (as described earlier)
Click the "Open" button
If you do this on PROD you'll see this error message:
Then repeat the same on DEV, this time clicking the link to the renamed Changes-section "Latest Updates to this Summary", of course.
You will see that the document loads correctly into Word instead of giving you the above error message.
By the way, the fragment IDs shouldn't be gone when you're loading the document. That is the change that the QC report is still loading regardless if the URL contains a fragment ID or not.
Yes, opening the document worked for me. However, it was strange that the jump links didn't work but as you said that was the issue you fixed here. I am marking this as DEV verified.
Verified on QA. Thanks!
Since ~oseipokuw is out this week I just went ahead and tested this ticket on PROD and it is working correctly now.
I'm closing the ticket.
This concludes our Quinn release. 👍
File Name | Posted | User |
---|---|---|
Screenshot 2023-10-06 at 4.06.54 PM.png | 2023-10-06 16:08:24 | Englisch, Volker (NIH/NCI) [C] |
Screenshot 2023-10-06 at 4.46.40 PM.png | 2023-10-06 16:55:28 | Englisch, Volker (NIH/NCI) [C] |
Elapsed: 0:00:00.001492