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?

49 Replies
Can you help me?
Hi
@channel
Just upgrade gadget app version to 1.5, we got this error

Hi Anatolii, would you be able to provide the app URL so that we can investigate?
Thanks @Smelvin
streamline-connector-voiceflow
Please review issue asap
Our app is public app and we are getting issues from stores
Ok and the error you are seeing is that the billing page is not displaying prices?
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?
What framework did you move from?
also got this issue too

you mean gadget version?
What Gadget app framework version did you upgrade from?
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)
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
Just start downgrade process

Now, can i deploy this to production?
No, test that things are working again before deploying
this is support?
Sorry, what do you mean?
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?
Could you please point out which billing plan data you suspect to be deleted? I see data in your
billingPlans modelthat is just generated data
not correct
Please recover original data
@Chocci_Milk @Smelvin this is possible to recover original db?
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?
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

i want to get billing plan data before upgrade version
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
so you mean issue was generated from me?
data was deleted while app version is upgrading
A framework version upgrade wouldn't have deleted data from your database
What file is this UI in?
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.
Hi @Smelvin that is generated by me
but i dont know correct data format
and correct data record too
because previous developer made this
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?i already recovered that
because i pushed original code to git repo before upgrade version
code is version1.3's one
not version1.5
Are we talking about the
production app? The production app is in framework 1.5, this can be seen in Settings -> Generali am talking just data record
and working in development environment
Which records are you referring to? I see that the
billingPlans is populated with several recordssure
that is just created by me
i want to see original record before upgrade
Please help me
Can you check production environment billing plan original data?

it seems current installed store's data are lost now
please check this seriously and carefully
Im having a bit of trouble following your issue at the moment. Do you have an external dataset that is your original data?
@Chocci_Milk I am trying to run upgrade version 1.5 again
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?


And at last process, I lost data from this process
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:
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,
},
});
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

okay
@Chocci_Milk So you can investigate which date are lost while upgrade gadget process in our app?
No data will be lost
An index isn't the data itself, its a tool to quickly filter through the database
Already lost
For example, billingPlan data