Describe the bug
Instead of just adding the _deleted flag on the original report json, deleting a report from webapp will result in adding the _deleted flag to the fully hydrated report (patient and contact).
To Reproduce
Steps to reproduce the behavior:
rev and request with /medic/<report_uuid>?rev=<deleted_rev>./_all_docs?keys=["<report_uuid>"] - the value will be result.rows[0].value.rev/_changes?filter=_doc_ids&doc_ids=["<report_uuid>"] - the value will be result.results[0].changes[0].revExpected behavior
The JSON of the deleted report should not be hydrated.
Environment
Not yet started - delaying to 3.9.0
Moved to 3.12.0 to free up engineers to work on 3.11.0.
Ready for AT on 6130-minify-deleted-records.
The original Json and the JSON of the deleted doc seem almost the same with a few lines of difference (but this seems to be the case with master as well). Am I missing something @dianabarsan ?

The $$hashKey is a property that Angular adds (as a means to uniquely identify scope objects).
I've never seen it (and I just tried deleting a doc on gamma.dev), but I'm probably not reproducing it correctly.
@njogz would you mind looking into this?
Yes. Looking into it.
I am also unable to reproduce the $$hashKey. @ngaruko could you please provide the steps to reproduce the diff you show above?
@njogz I was using standard configuration - deleted report loaded from test data
@ngaruko the $$hashkey key issue will possibly be resolved with the angular update coming up. Gareth mentions that here
@dianabarsan I am trying to understand what this ticket was supposed to do and make sure we did the right thing. As I see, there seems to be no much difference between the Json of the original report and the Json of the deleted report.
Tested withundo death report and did a file comparison between the two json. Differences as follow (ignoring the _rev of course) -
on master (undo death report)

_on branch_ : (patient field removed)

As I see, there seems to be no much difference between the Json of the original report and the Json of the deleted report.
This is what the ticket was supposed to do :)
I guess we can merge and close this off @njogz .