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

Display "Origin" column in Orders table in Orders Analytics #46424

Merged
merged 34 commits into from
Apr 18, 2024

Commits on Apr 10, 2024

  1. Configuration menu
    Copy the full SHA
    a9d90f3 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Set $data to false to not use cache.

    For development purpose.
    ecgan committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    1a48761 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70a490b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d54ba36 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Configuration menu
    Copy the full SHA
    ffdef81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e26c5f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    494e684 View commit details
    Browse the repository at this point in the history
  4. Fix lint errors.

    ecgan committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    46c52cd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aaca142 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    286f3bd View commit details
    Browse the repository at this point in the history
  7. Add changelog.

    ecgan committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    0ee9a7a View commit details
    Browse the repository at this point in the history
  8. Fix code comment.

    ecgan committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    494b36c View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    f5a1557 View commit details
    Browse the repository at this point in the history
  2. Guard against null values.

    `_wc_order_attribution_utm_source` can be null when the order is created via web admin.
    ecgan committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    ddda7cd View commit details
    Browse the repository at this point in the history
  3. Set default origin label to "Unknown".

    This default is the same as found in `output_origin_column` function in plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php.
    ecgan committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    ff5f4c7 View commit details
    Browse the repository at this point in the history
  4. Support server side report download.

    This is needed when there are more than 25 records in the Orders Analytics report.
    ecgan committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2ab21c6 View commit details
    Browse the repository at this point in the history
  5. Fix failed test.

    ecgan committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    930c23b View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Fix lint error.

    ecgan committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    b98ddd1 View commit details
    Browse the repository at this point in the history
  2. Simplify code.

    We loop through $orders_data instead of $order_attributions data. This is because $order_attributions may not have attributions data for some orders.
    
    By looping through $orders_data, it would automatically cater for "Unknown" data from get_origin_label function call, and we don't need to specify "Unknown" as default value for origin.
    ecgan committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    d0911a0 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Change "channel" to "attribution" object in controller.

    This is because we need more than one piece of information, so we need it to be an object with properties like `origin`, `device` etc.
    
    Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>
    ecgan and ibndawood committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    9851886 View commit details
    Browse the repository at this point in the history
  2. Change origin string to attribution array in Orders DataStore.

    Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>
    ecgan and ibndawood committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    f3099a7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e1589b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e496387 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d03e47f View commit details
    Browse the repository at this point in the history
  6. Simplify code.

    To make code shorter and easier to read, instead of long horizontal code.
    ecgan committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    9c82c3f View commit details
    Browse the repository at this point in the history
  7. Fix lint errors.

    ecgan committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    a84b2fe View commit details
    Browse the repository at this point in the history
  8. Fix failed test.

    ecgan committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    73361f4 View commit details
    Browse the repository at this point in the history
  9. Fix lint error.

    ecgan committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    58ad4b2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    713b653 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Use $wpdb->postmeta; cosmetic change.

    Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>
    ecgan and ibndawood committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    cc3d0e0 View commit details
    Browse the repository at this point in the history
  2. Cosmetic change.

    Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>
    ecgan and ibndawood committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    ad770ca View commit details
    Browse the repository at this point in the history
  3. Sanitize order IDs by using absint.

    Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>
    ecgan and ibndawood committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    c787b0c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    63eeaa6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    79eda32 View commit details
    Browse the repository at this point in the history