thunkable / thunkable-issues

24 stars 9 forks source link

Custom data viewer bug #824

Open Irwin2004 opened 3 years ago

Irwin2004 commented 3 years ago

Platform

Thunkable Live v258, Android

Issue/Request Origin

I open my application, then I change the data in my Airtable. Then I refresh my custom data viewer, I click my custom data viewer, so it will navigate to another screen. When I open it, the data don't change.

Steps to Reproduce

  1. Open Thunkable Live
  2. Change the data in Airtable
  3. Refresh the custom data viewer
  4. Click custom data viewer

Expected Behavior

The data should change, when I refresh my custom data viewer

Actual Behavior

The data don't change, when I refresh my custom data viewer

josmas commented 3 years ago

hey @Irwin2004 is this still happening?

Irwin2004 commented 3 years ago

Hi @josmas, yes it's still happening. In this case I use more than 1 screen and every screen have custom data viewer.

  1. I'm on screen 1, then I change the the data in Airtable of screen 2. Then I press screen 2 and wait until loading is done, I see the data change.
  2. I'm on screen 1 then I go to screen 2, wait until screen 2 loading is done. Then I change the data in Airtable of screen 2 data, then I refresh screen 2. But the data don't change

Before v260, I have an issue on number 1 & 2. But now only issue number 2.

josmas commented 3 years ago

Thanks for letting us know. @StevenPurn any idea what might be happening here?

Rojroj101 commented 3 years ago

Please resolve this issue. I've been asking everyone in thunkable for help on this issue. Its stymied the production of my app :(

On Thu, Mar 4, 2021, 8:41 PM Jos notifications@github.com wrote:

Thanks for letting us know. @StevenPurn https://github.com/StevenPurn any idea what might be happening here?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thunkable/thunkable-issues/issues/824#issuecomment-791080143, or unsubscribe https://github.com/notifications/unsubscribe-auth/APXOCLMIC3JXFCZGGEQZWXTTCAZGHANCNFSM4XMSM5AQ .

StevenPurn commented 3 years ago

Is this an issue when you pull to refresh, use the blocks to refresh, or both?

StevenPurn commented 3 years ago

Actually if you can give a better description of what exactly isn't working that would be great. I'm trying to reproduce it by adding a Data Viewer linked to an Airtable that I have. I set the Data Viewer to refresh data on item click, change the data in Airtable, and click on an item. I'm seeing the changes as expected. I also tested by changing the data at the source and pulling to refresh and I see the new data.

I'm not sure what you mean by then I go to screen 2, wait until screen 2 loading id done. Then I change the data in Airtable of screen 2 data, then I refresh screen 2. But the data don't change. Are you saying you have two separate screens showing the same data and if you change the data on one screen it isn't changed on the other? How are you changing the data? How are you refreshing? Do you see the same issues if you use a local data source or Google Sheets?

Rojroj101 commented 3 years ago

Not sure if you saw this thread but I belive it will give you more information about this glitch.

https://community.thunkable.com/t/data-viewer-list-incomplete-list-shown/985897

Also, I've noticed.. I may have isolated the problem more. If I make a new project and connect the same data source it works. So when I go to the main menu. or (thunkable home screen) then click on the data sources tab to view my data source its shows a project count of 2. Which makes sense because its connected to my main project and my test project. BUT, when I click the number 2 it only shows that its connected to the test project. Shouldn’t it be showing both apps. When i delete it from the test app. The project count goes down to 1. and when I click the number 1, no projects are shown to be connected it just says no data…

please help 🙏

On Fri, Mar 5, 2021, 3:10 PM Steven Purn notifications@github.com wrote:

Actually if you can give a better description of what exactly isn't working that would be great. I'm trying to reproduce it by adding a Data Viewer linked to an Airtable that I have. I set the Data Viewer to refresh data on item click, change the data in Airtable, and click on an item. I'm seeing the changes as expected. I also tested by changing the data at the source and pulling to refresh and I see the new data.

I'm not sure what you mean by then I go to screen 2, wait until screen 2 loading id done. Then I change the data in Airtable of screen 2 data, then I refresh screen 2. But the data don't change. Are you saying you have two separate screens showing the same data and if you change the data on one screen it isn't changed on the other? How are you changing the data? How are you refreshing? Do you see the same issues if you use a local data source or Google Sheets?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/thunkable/thunkable-issues/issues/824#issuecomment-791654204, or unsubscribe https://github.com/notifications/unsubscribe-auth/APXOCLMAR2UPYXJ7Y6IC4HLTCE3EFANCNFSM4XMSM5AQ .

Irwin2004 commented 3 years ago

Hi @StevenPurn, I made a small application to show the bug what I mean

Screen 1 Screenshot_20210306-145312

Screen 2 Screenshot_20210306-145317

Airtable before update Screenshot (64)

Custom data viewer in "test 4" Screenshot_20210306-145326

Airtable after update (I delete the image) Screenshot (65)

I refresh my custom data viewer Screenshot_20210306-145347

The data don't change Screenshot_20210306-145353

StevenPurn commented 3 years ago

Thanks for the example, this going to be very helpful. I'll take a closer look at it and hopefully we can find the issue. I'll update you here once I have a better idea of what is going on and how long it might take to get fixed.

StevenPurn commented 3 years ago

@Irwin2004 Ok so I tried to recreate your set up exactly and I think I might be a little confused still. So I'll list out the steps I took to attempt to reproduce and then follow up with a question on your example. Can you please let me know which part isn't matching up?

My recreation attempt:

  1. Create a new project.
  2. Add a bottom tab navigator to the project.
  3. Add a Data Viewer List component to each screen.
  4. Add an Airtable data source to the project.
  5. Link both Data Viewer List components to the same Airtable data source.
  6. Use a custom layout with text and an image on both as well.
  7. Allow data to load.
  8. Change data on my Airtable base via the Airtable web app. (In this example, I also deleted an existing image)
  9. Refresh my Data Viewer List.
  10. I should expect the deleted image to still show which is the issue you're reporting here. (Unfortunately, for me the image was not showing after being deleted and also was showing again after I deleted and then added it back which would be the expected behavior)

So I think there is something I'm missing that is stopping me from being able to recreate your issue. With that being said, I think I might not fully understand your example so I have a question for you on that:

I'm mostly confused by your photo under the title custom data viewer in "test 4" which just shows a single image. Is this inside of a data viewer list? If so, why is it only showing a single image when there are three rows? I would actually expect to see three of the same images in a column before you delete the image and then two images in a column afterwards. So can you help to clarify why only one image is visible? Are the others visible if you scroll down? If so, when you scroll after deleting the image are there three total or two?

Irwin2004 commented 3 years ago

Hi @StevenPurn, I use Android to test my application. To see the issue, you should wait until screen 1 & 2 load completely. Then you change to data in Airtable and see what happen. The "test 5 & 6" have the same issue with "test 4", so I only pick "test 4". Yes, the image is inside of custom data viewer. Test 1 - 6 have the same image, but I only take example of "test 4". In 1 colomn of custom data viewer, I only use 1 image. Example in test 4, I only use 1 image (I don't use 2 or 3 image).

StevenPurn commented 3 years ago

@Irwin2004 are you able to send me a link to your project so I can take a closer look?

StevenPurn commented 3 years ago

Hi @Irwin2004 just wanted to follow up on this and see if you're able to share a project with me. It would be helpful for me to find the root cause and get things fixed.

Irwin2004 commented 3 years ago

Hi @StevenPurn, sorry for my late respons. Here is the link. https://x.thunkable.com/copy/e8bf145bdd7dab1189a614222076c7d2

After you remix my project, you could make 2 new base in Airtable and use "single line text" and "attachment/long text". Then input the database in screen 1 & 2. Then follow below steps to see the bug.

Hi @StevenPurn, I made a small application to show the bug what I mean

Screen 1 Screenshot_20210306-145312

Screen 2 Screenshot_20210306-145317

Airtable before update Screenshot (64)

Custom data viewer in "test 4" Screenshot_20210306-145326

Airtable after update (I delete the image) Screenshot (65)

I refresh my custom data viewer Screenshot_20210306-145347

The data don't change Screenshot_20210306-145353

StevenPurn commented 3 years ago

Thanks for following up. I took another look and I'm still unable to reproduce this issue. Please let me know where I'm going wrong:

  1. Create a new project.
  2. Add a bottom tab navigator with two screens.
  3. On each screen, add a Data Viewer List with different Airtables hooked up to each.
  4. From the first screen, navigate to the second.
  5. On Airtable, manually edit the data in my base.
  6. While still on the second screen in Thunkable Live, pull to refresh the data.
  7. New data is displayed as expected.
Irwin2004 commented 3 years ago

Hi @StevenPurn, I fix your steps:

  1. Create a new project.
  2. Add a bottom tab navigator with two screens.
  3. On each screen, add a Data Viewer List with different Airtables hooked up to each.
  4. For the first screen, navigate to the third screen (third screen don't include in buttom tab navigator).
  5. For the second screen, navigate to fourth screen (fourth screen don't include in buttom tab navigator).
  6. Still on the second screen in Thunkable Live.
  7. On Airtable, manually edit the data in my base of second screen.
  8. Pull to refresh the data in second screen.
  9. New data is displayed as expected in second screen.