Skip to content

Commit

Permalink
[MDS-5456] submission documents not filtering out deleted_ind == true…
Browse files Browse the repository at this point in the history
… records (#2715)

* adding soft deletion of now_application_document_identity_xref

* adding soft delete in now_submissions document table

* adding document.deleted_ind check for false in now_app

* filtering out now_submission docs with deleted_ind equal true

* adding deleted_ind check to submission_documents secondary join

* removing space change

* removing space change

* removing space change
  • Loading branch information
asinn134 authored Oct 12, 2023
1 parent 7ed0776 commit 2377e8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class NOWApplication(Base, AuditMixin):
'join(NOWApplicationIdentity, Document, foreign(NOWApplicationIdentity.messageid)==remote(Document.messageid))',
primaryjoin=
'and_(NOWApplication.now_application_id==NOWApplicationIdentity.now_application_id, foreign(NOWApplicationIdentity.messageid)==remote(Document.messageid), remote(Document.deleted_ind)==False)',
secondaryjoin='foreign(NOWApplicationIdentity.messageid)==remote(Document.messageid)',
secondaryjoin='and_(foreign(NOWApplicationIdentity.messageid)==remote(Document.messageid),remote(Document.deleted_ind)==False)',
viewonly=True,
order_by='asc(Document.id)')

Expand Down

0 comments on commit 2377e8e

Please sign in to comment.