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

Suggestion support broken after array element in expression editor #893

Open
RDPerera opened this issue Feb 18, 2025 · 0 comments
Open

Suggestion support broken after array element in expression editor #893

RDPerera opened this issue Feb 18, 2025 · 0 comments
Labels

Comments

@RDPerera
Copy link

Description

Suggestion support is broken after we add an array element in the expression editor.

Image

Steps to Reproduce

{
  "orderId": "ORD-20250218-12345",
  "customer": {
    "customerId": "CUST-78901",
    "name": "John Doe",
    "email": "[email protected]",
    "phone": "+1-234-567-8901",
    "address": {
      "street": "123 Main St",
      "city": "New York",
      "state": "NY",
      "zip": "10001",
      "country": "USA"
    },
    "preferences": {
      "language": "en-US",
      "currency": "USD",
      "newsletterSubscribed": true
    }
  },
  "items": [
    {
      "productId": "PROD-101",
      "name": "Wireless Headphones",
      "category": "Electronics",
      "price": 99.99,
      "quantity": 2,
      "discount": {
        "type": "percentage",
        "value": 10
      },
      "attributes": {
        "color": "Black",
        "batteryLife": "20 hours",
        "connectivity": "Bluetooth 5.0"
      }
    },
    {
      "productId": "PROD-205",
      "name": "Smartphone",
      "category": "Electronics",
      "price": 799.99,
      "quantity": 1,
      "discount": {
        "type": "fixed",
        "value": 50
      },
      "attributes": {
        "brand": "TechBrand",
        "storage": "128GB",
        "ram": "8GB",
        "color": "Blue"
      }
    }
  ],
  "payment": {
    "method": "Credit Card",
    "transactionId": "TXN-56789",
    "amount": 899.98,
    "currency": "USD",
    "status": "Completed",
    "billingAddress": {
      "street": "123 Main St",
      "city": "New York",
      "state": "NY",
      "zip": "10001",
      "country": "USA"
    }
  },
  "shipping": {
    "method": "Express",
    "trackingId": "TRK-34567",
    "estimatedDelivery": "2025-02-22",
    "carrier": "FastShip",
    "status": "Shipped"
  },
  "metadata": {
    "createdAt": "2025-02-18T14:30:00Z",
    "updatedAt": "2025-02-18T15:00:00Z",
    "notes": [
      "Customer requested gift wrap",
      "Delivery address confirmed"
    ],
    "tags": ["electronics", "vip-customer", "discount-applied"]
  }
}

Try to access productId in items

Version

1.9.25021613

Environment Details (with versions)

MI 4.4.0 RC 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant