unfoldingWord / gateway-edit

Book Package harmonized view.
https://gatewayedit.com
MIT License
1 stars 4 forks source link

Delete TWL that includes a Reference Range #593

Closed birchamp closed 5 months ago

birchamp commented 10 months ago

When deleting a row with a reference range the user should be able delete that row the same as a single verse row.

DoD

Deleting any TWL should remove the row from the TSV.

kintsoogi commented 10 months ago

Problem: TSV items with reference ranges are still being displayed in the current reference when we try to delete them.

Why: Our code in handling the deletion of our item in the TSV state for the current reference. However, on delete we are also updating our user branch with new TSV content. When this happens, we remove all reference range notes except one and upload the new TSVs content to DCS. Since we are not deleting the reference range notes at the other references in the TSVs state, this note with a refrence range is still added to DCS. So, wehen we reload our content (which happens on delete), the reference range item gets populated right back into our current reference!

Solution: We need to make sure to delete the TSV reference range note from all references in the TSV state! Then the ref range TSV item will also be deleted from DCS on delete and not repopulate!

kintsoogi commented 10 months ago

@elsylambert @danielklapp This issue is in Develop c6612ba

Describe what your issue addresses

Test Instructions

elsylambert commented 10 months ago

v2.3.0 build bd4a646 QA. Delete row that has a refernce range works fine, but I found that the Delete row dialog has this text:

Screenshot 2023-12-19 at 9.48.13 AM.png
elsylambert commented 10 months ago

Moving this issue to QA fail for your attention @kintsoogi The feature looks good but only needs fix for the text shown in the modal ^^.

kintsoogi commented 9 months ago

Moving this issue to QA fail for your attention @kintsoogi The feature looks good but only needs fix for the text shown in the modal ^^.

A fix should have just gone in to fix it! ef6f5fc

Test Instructions

elsylambert commented 9 months ago

Looks good in v2.3.0 build 06539c8 QA. Not seeing _refernceRange in delete dialog box.

danielklapp commented 9 months ago

Not seeing _referenceRange under the Note in Delete This TSV Item? window. Tested with v2.3.0 build 06539c8 QA.