Skip to content
This repository was archived by the owner on Apr 27, 2023. It is now read-only.
This repository was archived by the owner on Apr 27, 2023. It is now read-only.

Need to catch empty inventory numbers in Product export #139

@SecondeJK

Description

@SecondeJK

Problem:

It's possible to retrieve products from the SOAP call that do no have inventory levels set, so line method inventory_quantity_for in product_exporter.rb will throw an exception on line 117 where [:result] is not set.

Steps to Reproduce:

List the steps we can take to reproduce the problem:

  1. Run shopify_transporter on a Magento db where a product does not have have a SOAP response from the inventory endpoint
  2. [] is called on null object - process terminates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions