Issue Number | 4621 |
---|---|
Summary | [Media] Modify Media doc publishing report language option |
Created | 2019-05-17 13:21:24 |
Issue Type | Improvement |
Submitted By | Osei-Poku, William (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2020-05-14 13:17:16 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.244290 |
Please modify the media doc publishing report and interface to include a language option.
How do you distinguish a media document between both available languages? The Media schema doesn't specify a language element, right?
There is a new TranslationOf element in the Spanish media document that points to the English doc.
This ticket is release dependent. Moving to kepler.
~oseipokuw , a couple of questions regarding the requested language option:
Do you only want to see English or Spanish documents or do you still want the option to see both?
If the answer to the first option is "both" what should be the default? Both, English, Spanish, none of the above?
Would you like the language option positioned below the date range or below the audience?
Please display the Language option above the Date Range so that it is
the first option.
The default should be English
This is how we would want the selection to work:
When English is selected, display only English media docs.
When Spanish is selected, display only Spanish media docs.
When both is selected, display both English and Spanish media docs.
The following script has been modified:
PublishedMediaDocuments.py
https://github.com/NCIOCPL/cdr-admin/commit/f26fc19a
This is ready for review on DEV.
Please note, if none of the language checkboxes are selected the report will display both languages because it's unlikely the user doesn't want to see any output.
The language options appear to be working correctly but the date range appears not to. For example, when you select a date range from 2019-10-01 and 2020-05-01, English, Patients, Health Professionals, you get version dates including ones from 2012.
Is this problem with the records outside of the date range pulled in the same regardless of what language(s) you specify?
Yes, it looks like the date range is not applied when you select a language.
I thought you were saying the date range is not applied when you select a language. I figured this means although the date range is not applied when a language has been selected, it is applied when no language is selected. However, it appears to me that the output of the report is identical regardless if a language has been selected or not.
Secondly, you are mentioning that you see documents with versioning dates as far back as 2012 when specifying a 2020 date range. This is not necessarily wrong because the report is only showing you the date a document was last versioned but not when it was last published. I may be wrong but for the few documents I have looked at and ran the Doc History Report those had all been published within the specified time range. I know this is difficult to test with the data on DEV but it seems to me the report is working correctly.
You may need to hot-fix a few media documents and then run the report to confirm the date range is applied correctly.
Thanks! We are retesting this. I will let you know if we have any questions.
There seems to be no correlation between the dates displayed in the results and the date range specified in the user interface. Could you please let me know which of the dates I am specifying in the user interface? At least on PROD, with more recent data, I am able to tell that the results correspond to the date range and the version date. Not so on DEV. Is the date range, referring to a different date, other than the version date?
Is the date range, referring to a different date, other than the version date?
Yes, that's correct. The date range is referring to the last published date of the document (which is not displayed but you can see it on the Version History Report). That's why I said you may need to run a couple publishing events because it seems that all documents on DEV had been pushed on Feb-06 and that's why every media document is listed.
For instance, I've published the document
adrenal gland anatomy |
When you're running the report for any recent date range including today you will see this document as the only document listed although its version date is in 2013 but it has been published this week.
Yes, I see the document. I am marking this as Verified on DEV. We will test more on QA where we would have more recent data. Thanks!
Verified on DEV. Thanks!
Verified on QA. Thanks!
Elapsed: 0:00:00.001527