-
-
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
fileSystem, read method upgrade #194
Comments
ask a more specific question, please. For sure it's hard from beginning to jump into a working project. don't worry - if something is not clear - we always open for discussion |
@svr8 @vadim9999 can you advice here? |
show me the code and if it will work - we'll debate about it. there some
reasons for doing it. if you find a better way - ok, but code - firstly ;)
… |
as we have a different timezones - it will be hard to schedule something.
let's do this way.
- review codebase
- create a separated issue with all of your questions(i think we need to
have around 10 of them or in other case - call was not very useful for
solving one question)
- and we'll answer all of your questions when we'll have time.
sounds good?
|
you can also create a separated task and explain in details why our
`promises` way is not good and what you propose to do instead,
take some time, imagine that someone else will work on that and put as much
details as you can
… |
tell me if you need help |
you assigned to this task. you can proceed with your pull request |
follow this link https://github.com/GroceriStar |
while you not asking specific question - i need to refuse. |
@sarthakvijayvergiya I made a video at #209 |
@saphal1998 check this task. i'm not sure if it was completed or not. |
I think this code is correct. Please let me know if you see any mistakes. I tried it on my local machine and it seems to work.
I'm not quite sure what this meant. Does this mean I change the resolve and reject parameters here? Please let me know. |
No, I think this part of was actually done. Code is not formatted, but correct. Maybe small perfectionistic improve - inside of what about other things? other sub-tasks is covered as well? you mentioned tests - do we have test for this method? I just not remember - can you take a look? |
quick notes:
|
I'm getting this error. Not sure how to solve this. Please advise.
Alright, I'll look into this, and get back to you if I have any queries.
No you haven't shared them with me. Please do. I think they will be very useful for me, my git skills need some improvement. |
The code for the read method was synchronous, I just made that Asynchronous using Promises. I wanted to push that, but I'm getting the error in the 'pretty-quick' stage while committing my changes. So I can't make the PR, please advise on that.
There's already a test written for the method in fileSystem.test.js |
@saphal1998 will take a look. can you share with me link to your forked repository? |
Yes, but, I'll need some time. Never created tests before. I want to learn, so give me 2 days or so. I need to look into it. If you could suggest some resources for that as well, I'd appreciate it. |
don't worry about time - take as much as you need
… |
please merge PR and re-install packages locally https://github.com/saphal1998/food-static-files-generator/pull/1 I tried to check your changes, but I can`t - because issue with prettier and lint-staged prevent you actually to commit to GitHub. maybe you can save your changes at some other place(anoter branch) and then remove your changes and try slowly, file by file add changes and then try to commit them in order to debug an issue. another way is:
|
Could you send me this? |
yes, linting can drive me crazy as well. especially for the beginning.
but it's a very great tool that keep our code in a good shape.
there can be a few quick ways to do that.
1) first of all you can just google error output and figure out how to fix
it.
2) bad approach but quick - apply rule that will skip linting for this file
so you will be albe to open a pull request with your changes
3) comment your code and open a pull request as well.
both 2-3 is not the best ways, but at least we will be able to talk about
it at pull request section and i'll be able to checkout it locally
|
@saphal1998 I think i can close this task, right? |
Yes |
Is your feature request related to a problem? Please describe.
We have one unfinished task
We using promises for returning true/false and that value can be received at our tests.
Later we'll change it for accepting data from the outside of this method and will use Promises for more advanced cases.
In order to get more information about this task, please compare how other
methods was upgraded with promises and make a similar one. same with tests
Method: https://github.com/GroceriStar/food-static-files-generator/blob/master/src/fileSystem.js#L11
Test: https://github.com/GroceriStar/food-static-files-generator/blob/master/tests/fileSystem.test.js#L5
Method: https://github.com/GroceriStar/food-static-files-generator/blob/master/src/fileSystem.js#L55
Test: https://github.com/GroceriStar/food-static-files-generator/blob/master/tests/fileSystem.test.js#L13
@sarthakvijayvergiya you can take this task
The text was updated successfully, but these errors were encountered: