Testing historical orders

Claire222
Shopify Partner
98 2 11

We are building a Rails app and have successfully written tests using GraphQL. However, some tests are failing because the test orders were created over 60 days in Shopify. We tried requesting the `read_all_orders` Shopify API scope but Shopify support denied our request. Any ideas? We don't want to create new Shopify orders every 60 days just to make sure the tests pass.

Replies 3 (3)
vix
Shopify Staff
534 104 110

Hi @Claire222 

Are historical orders over 60 days old required for the app to function? If not, can you adjust the test with stubbed/fake data instead?

Vix | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Claire222
Shopify Partner
98 2 11

Unfortunately the test is to ensure the data syncing with Shopify is working, so using stub data wouldn't work.

abdul98rehman
New Member
3 0 0

Whats the procedure for generating fake data in development stores? does shopify allow us to populate development stores with dummy data for different dates and times?