-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Support file objects in the legacy bucket: files.parse.com #2001
Conversation
Current coverage is 91.91%@@ master #2001 diff @@
==========================================
Files 91 91
Lines 6418 6421 +3
Methods 1096 1096
Messages 0 0
Branches 1346 1347 +1
==========================================
+ Hits 5899 5902 +3
Misses 519 519
Partials 0 0
|
Awesome, LGTM! We have a |
Oh good tip, I didn't know that, thanks! |
I know this question isn't directly related but I have been waiting for this fix for a while and am excited to try it out... how can I update my dependency to pull in this change to my parse-server-example running locally? I have tried updating package.json to get the "latest" code a few ways:
But when I start up I get:
Actually, I always have run into this problem anytime I have tried to point a dependency directly at a repository, such as my own fork of parse-server. Am I missing some basic knowledge of nodejs, package.json, git, or some combination? Any help would be awesome, thanks for your work. |
Did you run |
@drew-gross Correct, I edit package.json then run |
@barnaclejive so what we upload to npm is actually the built version that contains this lib/ I don't know how we can instruct npm to run the build steps when installing a package from source. |
Thanks @skinp - that makes sense. I tried this but
|
"We should make sure never to change the way Parse Server name files or at least never make it a "-" seperated UUID like files.parse.com has." actually this is a problem for legacy apps (including the dashboard!) relying on the dashes in the fileformat (or the length) in order to extract the filename. whether or not apps should ever have done this is moot. the change in file format breaks things in existing apps, and in the dashboard. |
At some point in the past, parse.com switched buckets/domain for files from files.parse.com to files.parsetfss.com. We need to support the older version too because Parse Server currently has no way of reaching those older files.
Files in files.parsetfss.com all have filenames starting with the prefix "tfss-"
Files in files.parse.com all have filenames starting with a UUID: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee-"
Files in Parse Server are all other files and should have filenames starting with a 32 bit hex followed by an underscore: "aaaaaaaabbbbccccddddeeeeeeeeeeee_"
We should make sure never to change the way Parse Server name files or at least never make it a "-" seperated UUID like files.parse.com has.
This should fix #1521.