Project

General

Profile

Task #2591

Enable correct document comparison when o-url and section hierarchy is the same for two different documents

Added by Ram Kordale over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
08/18/2022
Due date:
08/23/2022
% Done:

100%

Estimated time:
3.00 h

Description

When we overwrote Python Howtos DT book with the same zip file, we did not expect any tba or tbr files. However, we did.

The reason was because multiple documents had the same o-url and section hierarchy in this book.

One of the l-urls in the tbr file was 10114/prd/3/howto/clinic-Changing-and-redirecting-Clinics-output-335.html :
Rank of this l-url is 344. when comparing the new version and old version, we compare it by section hierarchy and url. There is also another document(with rank 333) having same o-url and section hierarchy as document 344.
i.e Python HOWTOs >> Argument Clinic How-To >> Advanced Topics >> Changing and redirecting Clinic’s output >> two-pass

document 344 - https://edutestqa.appspot.com/admin/document/10114/prd/3/howto/clinic-Changing-and-redirecting-Clinics-output-335.html
document 333 - https://edutestqa.appspot.com/admin/document/10114/prd/3/howto/clinic-Changing-and-redirecting-Clinics-output-324.html

As both documents have the same url and section hierarchy, code returns documentId of 333 when comparing the versions of 344. So it was trying to remove 333 instead of 344 in tbr. That's the reason why document 344(10114/prd/3/howto/clinic-Changing-and-redirecting-Clinics-output-335.html) is present in the tbr.

This needs a solution.

Also available in: Atom PDF