Open atherdon opened 5 years ago
Our goal will be to generate an object, with structure like this: https://github.com/GroceriStar/sd/blob/master/src/data/Grocery/example/grocery-with-user-relations.json
it's long and complex task, so please ask your questions. I have a lot of things to share, but want to have a discussion about how we'll do it. @azaidi4
we'll store methods here: https://github.com/GroceriStar/groceristar-fetch/blob/master/src/projects/GS-Loopback/loopback.js
And yeah - we can upgrade get
there too.
here some examples, of methods that were created by Vadim
I have a few questions.
Are the ids mock data in https://github.com/GroceriStar/sd/blob/master/src/data/Grocery/example/grocery-with-user-relations.json. Where do I get the ids from?
Do I just create one method getUserObject()
?
we'll generate an id by using uuid library yes, please create one method that will return this complex object. Is everything else is clear for you?
And yeah - we can upgrade
get
there too.
Regarding this, the tests in loopback.test.js
use the get
methods, should I comment all the tests out or delete them entirely
if you create a separated github issue, where you explain what you did and why - yes, you can comment it. Just want to keep track on our changes
Ok, merged. Just curious why you didn't ask me about what exactly difference between arrays of ids is. I mean they are just id - i.e. numbers, but the origin is different of them is different
Since this was a mockup I thought it would not matter. However you are right. Thank you for the information!
it 100% doesn't matter for our current state - but for future we need to know that hide
is related to ids from departments and purchased is ids of ingredients/items. For the current version, it's ingredients, after upgrade, it will be items. And items is a table between grocery lists and ingredients.
I think for now this task is, done. But maybe we should extend it and make more real
. Not sure
60
for the first time - we can create it just for GS-loopback case only. main reason to have this method related to creation a fake user that have some relations with our data. it's using in GS-Loopback, CK, gs-graphql, etc. I don't want to assign this task to Vadim, because he is overwhelmed with other projects