Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-2900

CoursePartPurgeSchedulable must test before purge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.13, 4.4.0
    • 4.3.12, 4.4.0
    • None
    • None
    • 4.4 RC3

      org.ametys.odf.schedulable.CoursePartPurgeSchedulable calls solr to find all coursepart not linked to a course.

      If there was an indexation problem, some coursepart can be deleted just because solr does not know their real state.

      There are 2 ways of fixing this :

      1. Instead of solr, query the repository (take care, it is possible to have an empty array or no value at all, both cases must be checked)
      2. Continue to use solr, but check in the repository if the result is correct before deletion.

      And some logs could be added.

            bmaurel Bérénice Maurel
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: