Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repro for issue 8658

Versions

firebase-tools: v14.4.0
node: v20.19.1
Data Connect VS Code extension: v1.4.0

Steps to reproduce

  1. Run Start emulators using the Data Connect VS Code extension
  2. Goto dataconnect/connector/queries.gql, and run ListEverything query locally verify that no data is present. Clear data if ever.
    • Results
{
  "productCategories": [],
  "productTags": [],
  "products": []
}
  1. Goto dataconnect/ProductTag_insert.gql, and run the mutation locally to insert a product tag
    • Results
{
  "productTag_insert": {
    "id": "ptid-00000"
  }
}
  1. (optional) Goto dataconnect/connector/queries.gql, and run ListEverything query locally verify that a product tag was created
    • Results
{
  "productCategories": [],
  "productTags": [
    {
      "id": "ptid-00000",
      "productId": "pid-00000"
    }
  ],
  "products": []
}
  1. Goto dataconnect/connector/mutations.gql, and run Example mutation with vaiables below
    • Variables
{
  "id": "pid-00000"
}

Expected

Results should show

{
  "productCategory_insertMany": [
    {
      "id": "c27690a7a8964b68a9e455970b56e8b8"
    }
  ],
  "productTag_deleteMany": 1,
  "product_upsert": {
    "id": "pid-00000"
  }
}

Running the ListEverything query in dataconnect/connector/queries.gql shows

{
  "productCategories": [
    {
      "categoryCode": "ABC123",
      "id": "c27690a7a8964b68a9e455970b56e8b8",
      "productId": "pid-00000"
    }
  ],
  "productTags": [],
  "products": [
    {
      "active": true,
      "createdAt": "2025-05-27T10:00:00.000000Z",
      "id": "pid-00000",
      "metadataStatus": "Draft",
      "name": "Dummy Product",
      "type": "DIGITAL",
      "updatedAt": "2025-05-27T10:00:00.000000Z"
    }
  ]
}

Actual

Error is raised cannot commit transaction: pq: unexpected transaction status idle although results show that the operations were successful

Notes: this is pretty much the same as the expected behavior just with errors.

{
  "productCategory_insertMany": [
    {
      "id": "0e31a079c3b346e8ae361d50e1df28d8"
    }
  ],
  "productTag_deleteMany": 1,
  "product_upsert": {
    "id": "pid-00000"
  }
}

Running the ListEverything query in dataconnect/connector/queries.gql shows

{
  "productCategories": [
    {
      "categoryCode": "ABC123",
      "id": "c27690a7a8964b68a9e455970b56e8b8",
      "productId": "pid-00000"
    }
  ],
  "productTags": [],
  "products": [
    {
      "active": true,
      "createdAt": "2025-05-27T10:00:00.000000Z",
      "id": "pid-00000",
      "metadataStatus": "Draft",
      "name": "Dummy Product",
      "type": "DIGITAL",
      "updatedAt": "2025-05-27T10:00:00.000000Z"
    }
  ]
}

Notes

Running the same mutation on production works without any issues

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors