Skip to content
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

OOP school library: preserve data #6

Merged
merged 14 commits into from
May 24, 2023
Merged

OOP school library: preserve data #6

merged 14 commits into from
May 24, 2023

Conversation

atok624
Copy link
Collaborator

@atok624 atok624 commented May 23, 2023

Hello Reviewer 👋

This is @shafiuyushawu and @atok624 This is a pull request on the OOP school library: preserve data

Changes implemented ♻️

  • We Checked the documentation for Ruby's JSON library.✔️
  • We ensured that on exit from our app, it saves all the data (books, people, and rentals) into JSON files. One per type of data you are storing.✔️
  • We ensured that on startup of our app, it loads all data from files.✔️

Copy link

@tresorsawasawa tresorsawasawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

STATUS: REQUIRED CHANGES ♻️♻️

Hi @atok624 and @shafiuyushawu
Good job so far! I know you worked hard to implement this project, I really appreciate the effort you put in! But there are some issues that you still need to work on to go to the next project but you are almost there!

almost-there

To highlight 🍾

  • All linters are passing ✔️
  • Good commit history ✔️
  • Good PR description ✔️
  • Follow Gitflow ✔️

Required changes ♻️ ♻️

  • Check the comments under the review.

Optional suggestions

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please ping me @tresorsawasawa when you comment so I can receive the notification or use slack with the same name.

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

app.rb Outdated
Comment on lines 10 to 11
require_relative 'modules/Rental_mod'

Copy link

@tresorsawasawa tresorsawasawa May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Good job as your application is working as expected. However it can run at the bigening and raises a LoadError because of the above typing error of your file name. You wrote Rental_mod instead of rental_mod. I suggest you fix it.

  • [ OPTIONAL ] RECOMMENDED: I think it would be better if you use require instead of require_relative to import all file in your app.rb file for the following reason and best practices: require is used to import file(s) of different folders or directories as it is case here and require_relative is used for files of the same folder or directory

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @atok624 and @shafiuyushawu

When I changed this require_relative 'modules/Rental_mod' to require_relative 'modules/rental_mod' you application works as expected. You can double check after correcting the error and see if you didn't include other errors by mistake

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tresorsawasawa,
We are so grateful for these suggestions. We will implement all of it.
Thank you.

Copy link

@Omar-Muhamad Omar-Muhamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes Required ♻️

Hi Team,

Nice job, you are almost there.

cat-driving-serious

(Highlights) Good Points: 👍

  • Your work is well documented. ✔
  • The correct workflow is used. ✔
  • All linters checks are ok. ✔

(Changes Required) Aspects to improve: ♻️

  • Please check the inline comments below ⬇️.

[Optional] suggestions:

  • Nothing to mention.

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear, and please remember to tag me in your question so I can receive the notification**

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Comment on lines 2 to 3
require 'pry'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • There is an error raised here when I try to run the app, Please fix that.

image

as suggested in the terminal log above using pty instead of pry fixes the problem.

Comment on lines 3 to 4
require 'pry'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Same problem raised here. Please fix that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Omar-Muhamad,
We've seen the error you are talking about and we are going to work on that
Thank you.

Copy link

@TedLivist TedLivist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

STATUS: APPROVED ✔️ ✔️

Hi @atok624 and @shafiuyushawu,

✔️ Implementation of data preservation

Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear. And please, remember to tag me in your question so I can receive the notification.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@atok624
Copy link
Collaborator Author

atok624 commented May 24, 2023

Thanks so much for this review @TedLivist

@atok624 atok624 merged commit 168cfcb into dev May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants