Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: logic func which will throw exception if core WP tables are empty. #330

Open
wants to merge 11 commits into
base: trunk
Choose a base branch
from

Commits on Aug 17, 2023

  1. feat: logic func which will throw exception if core WP tables are empty.

    During a recent content diff, somehow the live wp_terms table (the table with new content that we're trying to merge into the current database) was empty. This caused the function recreate_categories to not function as expected. This is because when it tries to gather all the categories which must be brought over, it does a JOIN with this wp_terms table. But if that table is empty, the query will return no results, even though the wp_terms_taxonomy table has valid categories to be imported.
    
    This function attempts to prevent that from happening in the first place, by checking if any core WP tables are empty before proceeding in earnest with the content diff.
    eddiesshop committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    b039208 View commit details
    Browse the repository at this point in the history
  2. feat: created CoreWPTableEmptyException class to allow for better con…

    …ditional handling of which Core WP tables can be safely ignored.
    eddiesshop committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    bb99a37 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Configuration menu
    Copy the full SHA
    ac14ded View commit details
    Browse the repository at this point in the history
  2. feat: ignoring a few more tables by default for content diff.

    Adding wp_termmeta, wp_comments, and wp_commentmeta to list of default ignored tables.
    eddiesshop committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    c180170 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Configuration menu
    Copy the full SHA
    312b3f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f4c7d32 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    73e56bd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9c883de View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    abe6ac4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    91d8abc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8eed2e9 View commit details
    Browse the repository at this point in the history