openedx / openedx-learning

GNU Affero General Public License v3.0
5 stars 11 forks source link

fix: prevent soft-deletes from being re-published every time #211

Closed ormsbee closed 3 months ago

ormsbee commented 3 months ago

Details are in a comment from this change:

        # Account for soft-deletes:
        # NULL != NULL in SQL, so simply excluding entities where the Draft
        # and Published versions match will not catch the case where a
        # soft-delete has been published (i.e. both the Draft and Published
        # versions are NULL). We need to explicitly check for that case
        # instead, or else we will re-publish the same soft-deletes over
        # and over again.
ormsbee commented 3 months ago

@pomegranited or @navinkarkera: Review if one of you has time, please?