jingleberry
jingleberry
TTCTheo's Typesafe Cult
Created by jingleberry on 4/23/2023 in #questions
How do you do safe rollouts of new features?
And ability to toggle without redeploys
10 replies
TTCTheo's Typesafe Cult
Created by jingleberry on 4/23/2023 in #questions
How do you do safe rollouts of new features?
I’ve mostly used LaunchDarkly for things such as percentage rollouts
10 replies
TTCTheo's Typesafe Cult
Created by jingleberry on 4/23/2023 in #questions
How do you do safe rollouts of new features?
Oh interesting I hadn’t considered using the database for storing feature flag values
10 replies
TTCTheo's Typesafe Cult
Created by Aviv on 4/16/2023 in #questions
[next 12] Stripe webhook doesn't work
Api secret key and webhook secret are not the same thing
8 replies
TTCTheo's Typesafe Cult
Created by Aviv on 4/16/2023 in #questions
[next 12] Stripe webhook doesn't work
Are you providing the correct webhook secret as an environment variable
8 replies
TTCTheo's Typesafe Cult
Created by fjzon on 4/14/2023 in #questions
Create a User model in Prisma with Clerk on Signup
Possibly related, for super simple use cases is clerk user metadata sufficient? For example I want to keep track of a stripe customer Id mapped to its clerk user id. Originally I thought of saving the mapping in db. But then I realised it’s much simpler to just have the stripe customer Id saved as clerk user metadata (and you can do the same in stripe) Will I face any pitfalls with this approach? (i.e is it risky to store important info using the clerk user metadata api?)
57 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 4/15/2023 in #questions
Want all records to be deleted given a specified datetime
Yeah I never tried that before but it looks like it’d do the job!
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 4/15/2023 in #questions
Want all records to be deleted given a specified datetime
If you restrict yourself to using Prisma only then yeah I guess you’re in a rut. Native support is possible in all these dbs. It’s use the Prisma schema which doesn’t have a way to define it
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 4/15/2023 in #questions
Want all records to be deleted given a specified datetime
But the suggested workarounds are just fine too
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 4/15/2023 in #questions
Want all records to be deleted given a specified datetime
What you’re after is called TTL. Ideally you’d have the database to automatically delete based on a TTL column (other databases like dynamo automatically support this)
12 replies
TTCTheo's Typesafe Cult
Created by shikishikichangchang on 4/15/2023 in #questions
Ideal UI behaviour for tables on mobile
Look at some examples. Perhaps see how Facebook ads or google ads manager do their tables on mobile
10 replies
TTCTheo's Typesafe Cult
Created by shikishikichangchang on 4/15/2023 in #questions
Ideal UI behaviour for tables on mobile
Use media queries to render different table layouts in different sizes. Alternatively keep it the same size and let it overflow so the user scrolls sideways
10 replies
TTCTheo's Typesafe Cult
Created by Fuzbo on 4/14/2023 in #questions
tRPC but just the React Query abstraction?
Honestly just skip the trpc part. Generate a frontend openAPI client for your python endpoint. Then pass in the generate functions into react query directly. Should automatically have type safety assuming your backend strictly adhered to the defined spec
7 replies
TTCTheo's Typesafe Cult
Created by l on 4/13/2023 in #questions
S3 with TRPC
Plus other security headers/policies
15 replies
TTCTheo's Typesafe Cult
Created by l on 4/13/2023 in #questions
S3 with TRPC
You set the expiration to by small enough so that there’s just enough time to initiate the upload on the client
15 replies
TTCTheo's Typesafe Cult
Created by Fuzbo on 4/14/2023 in #questions
tRPC but just the React Query abstraction?
Unsure if that’s what you’re looking for exactly tho
7 replies
TTCTheo's Typesafe Cult
Created by Fuzbo on 4/14/2023 in #questions
tRPC but just the React Query abstraction?
Generate an OpenApi client for your python backend. Then have trpc create some procedures that use the generated client to call your python backend (in your typescript code)
7 replies
TTCTheo's Typesafe Cult
Created by Luc Ledo on 4/12/2023 in #questions
With tRPC, is it safe to validate only on the client?
So it always runs on the server
17 replies
TTCTheo's Typesafe Cult
Created by Luc Ledo on 4/12/2023 in #questions
With tRPC, is it safe to validate only on the client?
I thought you were referring to validating the user mb. Your zod validation will always run for your trpc procedures
17 replies
TTCTheo's Typesafe Cult
Created by Luc Ledo on 4/12/2023 in #questions
With tRPC, is it safe to validate only on the client?
Yes it’s possible. Use trpc middleware to protect any routes that require auth
17 replies