-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
We need to split our big object with grocery lists into separated files, each file = one grocery list object #424
Comments
@amogh-jrules as it's a big task - let's go from it. but it pretty simple |
@atherdon Do we have to write scripts which take in a large object and break it down and generate smaller files? |
if you want - yes. we actually have our generator script - that you can use for this kind of task. |
for generator explanation - check Readme file |
@amogh-jrules @uniyalprashant9 please connect together in order to deal with this task. because we need to solve it together - not twice, so it's about collaboration task, not about competition |
Will do
…On Fri 31 May, 2019, 8:26 PM Arthur Tkachenko, ***@***.***> wrote:
@amogh-jrules <https://github.com/amogh-jrules> @uniyalprashant9
<https://github.com/uniyalprashant9> please connect together in order to
deal with this task. because we need to solve it together - not twice, so
it's about collaboration task, not about competition
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#424>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHQ22QJFNDLW3IG6C3YGVHLPYE4BXANCNFSM4HRJGMIQ>
.
|
We have to write a script for splitting these files |
Yes that's the goal I guess
…On Fri 31 May, 2019, 8:41 PM Prashant Uniyal, ***@***.***> wrote:
We have to write a script for splitting these files
https://github.com/GroceriStar/sd/tree/master/src/data/Grocery (
grocery.json and grocery0.json ) into multiple JSON files each with one
element ??
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#424>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHQ22QOJPVEIWZXYDTM7HITPYE5ZPANCNFSM4HRJGMIQ>
.
|
what is the difference between |
I ran it through https://www.diffchecker.com, only one line is different rest all is the same |
got it |
1) can you replace JSON with json
2) did you made it inside of our module?
3) can you open a pull request and so I can publish it on our repository?
… |
other thing looks well(but we'll need to check it with our tests and
JSONLint script)
… |
Ok, I will change JSON to json . |
cool main reason - we need it to work as part of our module, because later
we'll be able to change the structure of our data and import it into
databases with different structure
… |
@atherdon I made few changes in the script, now it creates a seperate directory for each object of the same name and put respective elements inside the directory. If you need all the elements in one folder I will change it again. I opened a pull request for the same. |
please go from first point, doing them step-by-step and pushing pull requests separately. |
@atherdon I didn't understand what is to be done in point 1. I have to make |
i think yes, something similar to https://github.com/GroceriStar/sd/blob/master/src/index.js |
actutally both will be useful :)
Make 2 methods but for now we'll use the first one
|
OK i will make the first one as |
@atherdon I have one doubt, I have used mocha for the test , will it get errors when running it in Travis CI? |
@atherdon Please check my pull request, I have one more test module to upload. 😅 |
I am currently working on readme file. |
I am merging splitObject.js in the existing writeFile.js file in generators and then will do a readme.MD update. |
Ok, but please be careful with changes. Or create tests or ask for advice about tests as well. |
Btw, it's still not clear for me - are we merge your changes or not? @uniyalprashant9 - you made some moves and my head is going around |
Yes I will |
splitObject() is in writeFile.js to split json files |
Only test part is remaining. |
can you handle a testing part on your own or do you need help with it? we have a pretty cool test folder where you may find some similar tests that you can copy and connect to this task |
@atherdon Most of the tests are to match the schema of json files, my modules split large json files into single files, retrieve list of files in the directory, they don't need tests I guess splitObject will work on parameters passed. |
yes, that tests for schema. but not only for schemas only. take deeper look
… |
and no guessing - we have tests for that ;)
|
@uniyalprashant9 what is left for this task? |
@atherdon only tests are remaining |
can you do them?
… |
yes i will :) |
@vadim9999 garb it here too. looks like we almost finished it but i'm have doubts that all of my comments was actually done/implemented |
ok |
I think it's done |
i keep it without good task explanation for a reason. want to provoke a discussion here.
Please ask your questions. @uniyalprashant9
The text was updated successfully, but these errors were encountered: