Trying to update app version to 1.5

After click start upgrading button, this process is running automatically. After this, need to deploy to production? Or what is remaining step now?
No description
49 Replies
Anatolii
AnatoliiOP2w ago
Can you help me? Hi @channel
Anatolii
AnatoliiOP2w ago
Just upgrade gadget app version to 1.5, we got this error
No description
Smelvin
Smelvin2w ago
Hi Anatolii, would you be able to provide the app URL so that we can investigate?
Anatolii
AnatoliiOP2w ago
Thanks @Smelvin streamline-connector-voiceflow Please review issue asap Our app is public app and we are getting issues from stores
Smelvin
Smelvin2w ago
Ok and the error you are seeing is that the billing page is not displaying prices?
Anatolii
AnatoliiOP2w ago
and also not fetching totalProducts in shopData one question, when upgrade version to 1.5, upgrade process has changed many model's schema this is normal process?
Chocci_Milk
Chocci_Milk2w ago
What framework did you move from?
Anatolii
AnatoliiOP2w ago
also got this issue too
No description
Anatolii
AnatoliiOP2w ago
you mean gadget version?
Chocci_Milk
Chocci_Milk2w ago
What Gadget app framework version did you upgrade from?
Anatolii
AnatoliiOP2w ago
768c2a6edf2c8acdd1e62af09c237325 This is log url May be 1,3 ReferralCode.jsx:6 GET https://streamline-connector-for-voiceflow--development.gadget.app/utils/getReferralCodes.js net::ERR_ABORTED 403 (Forbidden)
Chocci_Milk
Chocci_Milk2w ago
There were a lot of changes made between the framework versions 1.3 and 1.5. We warned about them on the upgrade screen. For example: - new filters for belongsTo fields. Instead of shop: { equals: "someId" } you now have to use shopId: { ... } (breaking change) - (relarted to the image you shared 4 messages prior) We dis-allowed importing from the root and backend folders in the frontend as it was a security risk. Fastest fix is to move the utils to the frontend folder. Alternatively, you can make a shared folder and add it to the Vite allow list (ChatGPT can tell you how to do that) (another breaking change) etc. If you're confident that the framework version was 1.3, please move your development environment back to that environment, test it, and deploy the revert
Anatolii
AnatoliiOP2w ago
Just start downgrade process
Anatolii
AnatoliiOP2w ago
No description
Anatolii
AnatoliiOP2w ago
Now, can i deploy this to production?
Chocci_Milk
Chocci_Milk2w ago
No, test that things are working again before deploying
Anatolii
AnatoliiOP2w ago
this is support?
Chocci_Milk
Chocci_Milk2w ago
Sorry, what do you mean?
Anatolii
AnatoliiOP2w ago
I will fix issue myself @Chocci_Milk thank you very much Hi @Smelvin @Chocci_Milk it seems billingplan data record was deleted. Can you recover this?
Chocci_Milk
Chocci_Milk2w ago
Could you please point out which billing plan data you suspect to be deleted? I see data in your billingPlans model
Anatolii
AnatoliiOP2w ago
that is just generated data not correct Please recover original data @Chocci_Milk @Smelvin this is possible to recover original db?
Chocci_Milk
Chocci_Milk2w ago
Can you please share exactly what table(s) and what environment you're seeing issues with. I don't see any emprty tables What makes you suspect that something was deleted?
Anatolii
AnatoliiOP2w ago
that is trying to create from me i am watching development environment now also in public app, not fetching billing plan data because they are empty now
Anatolii
AnatoliiOP2w ago
No description
Anatolii
AnatoliiOP2w ago
i want to get billing plan data before upgrade version
Chocci_Milk
Chocci_Milk2w ago
The first thing to note is that we don't recover data for development environments. Secondly, we only recover data if its an emergency or the deletion was caused by the Gadget platform. That's because the recovery process is extremely expensive and time consuming That being said, I can still help you figure out your issue if you tell me more precise information
Anatolii
AnatoliiOP2w ago
so you mean issue was generated from me? data was deleted while app version is upgrading
Chocci_Milk
Chocci_Milk2w ago
A framework version upgrade wouldn't have deleted data from your database What file is this UI in?
Smelvin
Smelvin2w ago
Hi Antolii, the console shows that data is being retreived for these models but it looks like how its being formatted after retreival is causing an issue.
Anatolii
AnatoliiOP2w ago
Hi @Smelvin that is generated by me but i dont know correct data format and correct data record too because previous developer made this
Smelvin
Smelvin2w ago
The browser console is showing that the records for Free 1, Lite 11, growth 13, are retrieved for the plan displays . The price displays look to be handled in web/components/BillingPlanCard.jsx Are you able to check previous revisions in your git repo to see what may have been changed?
Anatolii
AnatoliiOP2w ago
i already recovered that because i pushed original code to git repo before upgrade version code is version1.3's one not version1.5
Smelvin
Smelvin2w ago
Are we talking about the production app? The production app is in framework 1.5, this can be seen in Settings -> General
Anatolii
AnatoliiOP2w ago
i am talking just data record and working in development environment
Smelvin
Smelvin2w ago
Which records are you referring to? I see that the billingPlans is populated with several records
Anatolii
AnatoliiOP2w ago
sure that is just created by me i want to see original record before upgrade Please help me
Anatolii
AnatoliiOP2w ago
Can you check production environment billing plan original data?
No description
Anatolii
AnatoliiOP2w ago
it seems current installed store's data are lost now please check this seriously and carefully
Smelvin
Smelvin2w ago
Im having a bit of trouble following your issue at the moment. Do you have an external dataset that is your original data?
Anatolii
AnatoliiOP2w ago
@Chocci_Milk I am trying to run upgrade version 1.5 again
Anatolii
AnatoliiOP2w ago
One question. it seems gadget try to remove unused sort and filter indexes when upgrade version but actually some fields are used. How can I handle this?
No description
No description
Anatolii
AnatoliiOP2w ago
And at last process, I lost data from this process
Chocci_Milk
Chocci_Milk2w ago
This is a known bug that the team still needs to investigate. For the time being, I would recommend that you take note of those fields and once the upgrade is done, go to their respective models and readd the index Are you sure that you're filtering on those fields anywhere in your app? This is specifically using the filter option in a query For example:
await api.billingPlans.findMany({
filter: {
status: {
equals: "active"
}
}
})
await api.billingPlans.findMany({
filter: {
status: {
equals: "active"
}
}
})
Anatolii
AnatoliiOP2w ago
So upgrading gadget v1.5 is not safe now? const [{ data: activePlan }] = useFindMany(api.billingPlans, { filter: { planName: { equals: plan === 'Orders & Pages' ? 'Orders' : plan, }, }, }); Currently using this filter const [{ data: activePlan }] = useFindMany(api.billingPlans, { filter: { planName: { equals: plan, }, }, select: { productLimits: true, }, });
Chocci_Milk
Chocci_Milk2w ago
The upgrade to fwv1.5 is still safe. There's simply a bug in how we detect which indexes are in use by the app. With the new framework you can go and manage indexes on your own. That means that you can correct the issue manually. Btw, I would not recommend trying the framework version upgrade right now (at least not deploying it) with BFCM in 2 days
Anatolii
AnatoliiOP2w ago
No description
Anatolii
AnatoliiOP2w ago
okay @Chocci_Milk So you can investigate which date are lost while upgrade gadget process in our app?
Chocci_Milk
Chocci_Milk2w ago
No data will be lost An index isn't the data itself, its a tool to quickly filter through the database
Anatolii
AnatoliiOP2w ago
Already lost For example, billingPlan data

Did you find this page helpful?