-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Endpoint for importing json data in class #2350
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
Conversation
|
Thanks @davimacedo for the PR. What format of data do you intend to let people import from? Should it be backwards compatible with the JSON export format that parse.com provided? |
Current coverage is 91.93% (diff: 100%)@@ master #2350 diff @@
==========================================
Files 95 96 +1
Lines 10708 10761 +53
Methods 1309 1317 +8
Messages 0 0
Branches 1741 1752 +11
==========================================
+ Hits 9835 9893 +58
+ Misses 873 868 -5
Partials 0 0
|
|
Yes... that's the idea... |
|
That won't be backwards compatible with the export as the export has objectId set, and we currently don't support creating object (with Also, what about consecutive imports with the same data? Imagine the process fail in the middle, the promise will reject. How would you handle preventing de-duplicating the inserted objects? Also, you should properly handle relation objects, and I don't believe rest.create let you pass the |
|
@davimacedo updated the pull request. |
|
@davimacedo updated the pull request. |
1 similar comment
|
@davimacedo updated the pull request. |
|
@flovilmart solved and tested issues related to ObjectId. About relation I verified and parse.com exports as a separated file. I suggest address it as a separated issue because it will require additional endpoint. What do you think? |
|
@davimacedo updated the pull request. |
2 similar comments
|
@davimacedo updated the pull request. |
|
@davimacedo updated the pull request. |
|
Where can I get info on what this API will do. How long till it is ready. We need an easier way to set-up a users install data when they sign-up. Right now we need to add 20-30 objects into one class alone on sign-up and using save-all etc just seems slow and clumsy to code. Would be awesome if this api made that simpler. Can someone advise. |
|
@tillifywebb that won't help with that, as it is as performant as a saveAll call. I suggest you use a beforeSave or afterSave. This endpoint is targeted for the dashboard tu upload large amounts of data |
|
@davimacedo need a rebase before we can move forward with that one in that state. @drew-gross what do you think of that feature? It seems to me that is should support file uploads instead of request body. |
|
It's been a while since the last commit was reviewed and the labels show this pull request needs review. Based on the blame information for the files in this pull request we identified @flovilmart as a potential reviewer. Could you take a look please or cc someone with more context? |
|
@flovilmart It was pretty rush for me in the last days but I will rebase it this week. I also have already done the code for uploading the files from dashboard. So I think it won't be necessary file upload here. I will send PR in dashboard project as well. |
|
This endpoint, as is, is just a glorified batch call with all the objects (and the objectId override). If it doesn't support uploading a file, that's pretty useless. |
a526ad8 to
d485930
Compare
|
@davimacedo updated the pull request - view changes |
d485930 to
5ed6435
Compare
|
@davimacedo updated the pull request - view changes |
5ed6435 to
c3a2c6c
Compare
|
@davimacedo updated the pull request - view changes |
|
Moved to: |
No description provided.