Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4773

Prevent certain export files from being huge

    XporterXMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Must have
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.21
    • Labels:
      None
    • Environment:

      pandora

    • Story Points:
      3
    • Sprint:
      Sprint #122
    • Section:
      Campaigns
    • P4 site:
      All sites
    • Track:
      Development
    • Repositories:
      planet4-master-theme

      Description

      Certain campaigns, when exported, produce a xml file that is really large (some are up to 70MB), even if the campaign doesn't have that much content or attachments. The reason is the current export logic, instead of using the wordpress function to get the metadata, uses a select on the metadata table that gets all the records for a certain post/attachment. However, due to some other bug, there may be many duplicate records in that table, up to thousands for certain attachments. All these duplicate records are currently exported and also created on import.

      TASK: in exporter.php, replace the database query with a call to the wordpress function "get_post_meta", which only returns distinct records.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pvincent Pieter Vincent
                Reporter:
                pvincent Pieter Vincent
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: