install sd-wrapper, connect it to resolvers and see if everything will work or not
atherdon opened this issue · 19 comments
- setup project locally Done
- install sd-wrapper. our module https://github.com/GroceriStar/sd#quick-start Done
- comment previous versions and use a new version here: https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js
as we make it in smart way previously, all methods located in one file, instead of checking all files - run this server, run tests - does it work? nothing crashing? it's strange :)
you actually can start to setup this server locally. i think all will be pushed during that time
Our goal will be to make this part: Food-Static-Data/sd#294 (comment)
at issue#294 i already installed sd-wrapper locally and uncommented the moved functions in the https://github.com/GroceriStar/sd/tree/master/generator/projects/GraphQL/test.
step 2 in this issue# 145 isnt clear to me.i dont understand how it comes to picture
emm. confused.
sd-wrapper
is our small separated module, that store data.
inside sd-wrapper
we have a few functions, that change the structure of our data
inside sd-wrapper
we have some tests, because we want to check that data is solid.
this repository(graphql-server
) is a separated thing. it's an actual place and reason, why we're building sd-wrapper.
So, you need to fork this repository, install packages, install sd-wrapper and launch it locally.
tell me if this is not clear.
Example: sd-wrapper
is like HDD. graphql-server
is like a PC-box, that contain HDD
looks good and test working. open pull request so i can take a look and give you more detailed answer
saying no compare to make when trying to pull request
hmm. as from your screenshot i see at least one change :) i mean if you install sd-wrapper - package.json should be changed.
did you also start to make an adjustments at selectors.js? you can comment that 4th line - we wouldn't need it soon(at least by my knowledge
)
i think i see M near package.json - maybe you just didn't commit it :0
ok, tell me if next step of this task is not clear for you
yes not clear
- Comment this lines:
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L12
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L25
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L42
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L53
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L60
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L69
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L78
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L88
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L93
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L97
https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L101
and open a PR after that.
and i'll prepare details for a next move
2.5 connect files, that we have created from methods, that we copy, from fetch plugin: Food-Static-Data/sd#294
as i understand - we need to have 7 files(based on 294 list)
ok, right now you need to run this expressjs server and tell me if it works fine or crashes
worked fine
Ok, looks like we did it!
We have this part in "a gray area": https://github.com/GroceriStar/graphql-server/blob/master/src/data/selector.js#L88-L103 but i think we need to talk with Vadim about it, because i'm not sure if our sd-wrapper has that functions moved yet.
Le'ts close it and i'll check the next task for you
ok.have seen the functions.i will wait for the decision.yes boss,lets close it