Gadget Developers

GD

Gadget Developers

Build SAAS apps alongside thousands of other Gadget developers. Get help, and offer help to others in the community.

Join

Calling http routes inside model actions

Is there a way to call an http route inside the model actions for example, in the create.js onSuccess? Thanks!

Does anyone know if its possible to apply "pickup" to a draft order via api?

I'm trying to add the pikcup to a draft order via api. I am wondering if anyone has ever done this?
No description

Help with computed field syntax

Hi guys. I'm trying to create a computed field on the shopifyProduct model that checks if the product images have alt texts defined. That field would check all shopifyFile records associated with the product (through the shopifyMedia model) and return 'all' if all files have alt texts defined, 'some' if only some or 'none' if none of them have alt texts....

Use BackgroundActionTrigger instead of APIActionTrigger

Hi all, We have some Background actions in our project where we send out Slack messages in case a Background action fails in their final attempt. We used the trigger element of the ActionContext element to do this....

Full resync of shopifyFulfillmentOrder model

I've only recently passed Shopify's Level 2 review for accessing protected customer data, and I am trying to backfill my shopifyFulfillmentOrder model, but it doesn't seem to be working as I would expect. The process completes almost instantly and no records are updated. I'm running this action: ```...

How to investigate usage spike

Hi all, we experienced an odd usage spike on Jan 12. We usually sit around 0.35 hrs daily, fairly consistently. However, we noticed that on Jan 12, we had 4.6 hrs request time. We can see in the "Request time by source - Triggers" view, that this trigger has used 4.36 hours: GET /api/collections - Routes - 4.36 hours However, we are trying to track down if this is coming from one specific merchant, or what has caused this spike. In the "Request time by source - Shopify Domains" view, the store with the highest usage says it's only used 0.13 hours (2%)....

Feedback on best practises to create a contact page

Hey guys! I am just looking for some tips, one of the requierments to get approved for shopify listing is to have easy access for merchants to contact you for support. I was thinking of creating a contact form in the app. I am wondering if anyone here built a contact form with node mailer or anything similar? I have seen a lot of apps use live chat, is that better than a contact form?...

Shopify fileCreateMutation with Blob url as source

Hi all, I have a Polaris drag and drop / add image element on my jsx page. I am saving the bloburl and filename as params. When a customer clicks the button to add, it passes the information and triggers a create.js function in where I want to create the image in Shopify via a fileCreateMutation. However when using the bloburl as the source, shopify sees it (off course) as an html element, while the filename for the image will be in a png format. ...

Issue with taskId Missing from params in Custom Action

I created a custom action called updateRank in shopifyCustomer. The params received by this action are specified as follows: export const params = { taskId: { type: "string" }, };...

How to optimize request time?

I touched 75% request time today with 8 days left in my billing cycle. Is there a way to optimize request time because I am pretty sure the $40/100 hour additional would render my app not profitable enough.

GGT_APP_CRASH: GGT_UNKNOWN: connect ECONNREFUSED 10.128.0.49:443

Why our app is getting such error? Users cannot do any updates in our app

Sentry in background actions

I've got some errors that have been thrown in background actions, which I am catching with Sentry — do background actions have awareness of what DSN they are sending to? We only seem to have captured exceptions that have occurred in CRUD actions

Is there a way to validate environment variables?

So in my org we have like 7 different environments in the same project. Each team member has their own environment so we don't step on each others toes. The problem is... we want to be able to keep each of our ENVs in sync with production. Is there a way to do some sort of env lint?
Also is there a way to move an env var from one environment to the others?...

Understanding daily data storage

Why is my daily data storage fluctuating so much? Doesn't it reflect the data stored at that day and shouldn't it therefor be pretty stable, slowly creeping up over time (like the last days of December?) E.g. I'm curious to understand what happened e.g. on Dec 2 or Dec 3? Or caused fluctuations throughout November? ...
No description

Error calling Shopify API within global actions

I am calling global actions to use the Shopify API and it doesnt work, I followed everything as it is from the guide: https://docs.gadget.dev/guides/plugins/shopify/frontends#calling-shopify-within-actions but yet it wont work, someone please help mej diagnose the problem....

API routes stoppped working

I had some API routes I'd setup that were working on Friday. Then I started working on some web components today and the API routes that were previously working are now responding as if they are web routes: https://flow-extensions--development.gadget.app/api/send-abandoned-email I stashed the changes I was workign on in a branch and reverted back to the code that was working on Friday but the url is still responding this way. I also did an app restart....
No description

Building a custom configuration page for a Flow Action

Any guidance on wiring this up to Gadget's app bridge? It's been a little while since I was last messing around with the app bridge, but last I recall it was a bit of a nightmare. Is this version of the app bridge referenced in Flow's docs compatible with the gadget app bridge? https://shopify.dev/docs/apps/build/flow/actions/build-config-ui...

How to use graphql on the front end

I have currently set up a route as follows: ``` import { RouteHandler } from "gadget-server"; const route: RouteHandler = async ({ request, reply, connections, logger }) => {...

How can you make a gadget app forkable?

I've seen some apps that support sent me where it can be forked. I'm thinking of creating a demo app to give others access to and wondering if I can do that?