-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot save changes to imported creations #574
Comments
@nhogle Will have a look at this. Though one question - The web app currently has a bug (#563) where it doesn't work in offline state. How are you able to use the web app without Internet? |
@chinchang : You're right, I just went back to check, and it looks like I can't run the creations while offline. I was, however, able to import my previously-exported creations (while logged out), and make changes to the code. That was when I discovered that I couldn't save changes. My internet later came back online, so I was able to run the creation again (but still unable to save) so I didn't realize that the offline state was preventing running the creation. As for saving while offline (and logged in): I see that this works if you do the following:
However, if you make multiple sets of changes while offline, and you try saving between those changes, then we run into problems:
I didn't test this while logged out. |
Update: I created issue #575 to document the crash issue that I'm noticing when I tried loading the publicly-shared creation in a fresh browser. |
These steps you are noticing on your end seem different from the expected behaviour. In offline state, if you press save button, the creation should still save with a message - "Item saved locally. Will save to account when you are online". Don't you see this message on saving in offline state? |
@chinchang : I finally have had a chance to dig into this further, and I see how the app is supposed to show the "saved locally" message if the browser is offline. In my case, the browser's From the MDN docs:
So in this case, in So if navigator.onLine isn't reliable, then it looks like we would need an entirely different approach to saving while offline... Here is a StackOverflow issue with someone else complaining about this very issue with Firestore. |
Had been quite occupied since last few days. Will take a look at this again. |
Meta info
While I am logged out, if I import a creation that I had previously exported while logged in, then I cannot save changes to that creation (Save button is not visible).
Use case: I wanted to keep working and save changes to creations while logged out (e.g. I want to work offline because my Internet connection is spotty). So I exported my creations to JSON, then logged out. Now I can work offline and save creations to local storage instead of the cloud. The problem is, if I want to work on my previously-exported creation, then I can import that creation, but I cannot save changes to it. This is due to the
isNotMine
boolean which is declared here.It seems the purpose of the
isNotMine
flag is to prevent users from trying to save or share other users' public creations? I can think of a couple ways to fix this issue:createdBy
property when importing it, (or delete the property if not logged in?)isNotMine
and public sharing logic. If you open a public creation from a URL, shouldn't you be able to fork that creation and work on it within your own workspace? Actually now that I'm looking at this deeper, it appears the app completely breaks when opening a publicly-shared creation (e.g. in a different browser, or in incognito mode). Perhaps I should file that as a separate issue?The text was updated successfully, but these errors were encountered: