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

Final #17

Open
wants to merge 84 commits into
base: master
Choose a base branch
from
Open

Final #17

wants to merge 84 commits into from

Conversation

vic778
Copy link
Owner

@vic778 vic778 commented Jun 3, 2022

This API contains :

  • create the user controller that contains the action for creating a user and updating the user profile
  • create the user model and make validations
  • create the RSpec folder and config factory
  • fix cross error by added cors access
  • add rubocop to fix all linter error
  • Add login method
  • Add route to login
  • Change the route for login
  • Remove the question mark i=for the authorize action
  • Add the validations
  • Create the route for scooters
  • Add year color and model to scooter tables
  • Add the association
  • Create the test for scooters
  • Create the migration
  • Create controllers for reservations
  • Update scooters with availability and finish controller methods
  • Add routes for reservation
  • Add serializer
  • Create a controller for reservations
  • Describe the project

Note: Click here for the frontend PR

cwaku and others added 26 commits May 18, 2022 12:18
*Total -- 2,192.68kb -> 1,885.65kb (14%)

/public/uploads/motorcycle/image/3/Screenshot_from_2022-05-16_20-24-02.png -- 251.87kb -> 205.93kb (18.24%)
/public/uploads/motorcycle/image/1/Screenshot_from_2022-05-16_20-24-02.png -- 251.87kb -> 205.93kb (18.24%)
/public/uploads/motorcycle/image/2/Screenshot_from_2022-05-16_20-24-02.png -- 251.87kb -> 205.93kb (18.24%)
/public/uploads/motorcycle/image/2/Screenshot_from_2022-05-15_18-02-26.png -- 500.88kb -> 439.65kb (12.22%)
/public/uploads/tmp/1652706439-434801145931843-0006-4248/Screenshot_from_2022-05-15_18-02-26.png -- 500.88kb -> 439.65kb (12.22%)
/public/uploads/motorcycle/image/2/default_Screenshot_from_2022-05-15_18-02-26.png -- 90.78kb -> 79.81kb (12.08%)
/public/uploads/tmp/1652706439-434801145931843-0006-4248/default_Screenshot_from_2022-05-15_18-02-26.png -- 90.78kb -> 79.81kb (12.08%)
/public/uploads/motorcycle/image/2/default_Screenshot_from_2022-05-16_20-24-02.png -- 62.85kb -> 55.44kb (11.8%)
/public/uploads/motorcycle/image/3/default_Screenshot_from_2022-05-16_20-24-02.png -- 62.85kb -> 55.44kb (11.8%)
/public/uploads/motorcycle/image/1/default_Screenshot_from_2022-05-16_20-24-02.png -- 62.85kb -> 55.44kb (11.8%)
/public/uploads/tmp/1652706439-434801145931843-0006-4248/thumb_Screenshot_from_2022-05-15_18-02-26.png -- 2.21kb -> 2.00kb (9.54%)
/public/uploads/motorcycle/image/2/thumb_Screenshot_from_2022-05-15_18-02-26.png -- 2.21kb -> 2.00kb (9.54%)
/public/uploads/motorcycle/image/2/thumb_Screenshot_from_2022-05-16_20-24-02.png -- 1.77kb -> 1.62kb (8.53%)
/public/uploads/motorcycle/image/1/thumb_Screenshot_from_2022-05-16_20-24-02.png -- 1.77kb -> 1.62kb (8.53%)
/public/uploads/motorcycle/image/3/thumb_Screenshot_from_2022-05-16_20-24-02.png -- 1.77kb -> 1.62kb (8.53%)
/public/uploads/motorcycle/image/1/default_3.jpg -- 12.04kb -> 11.49kb (4.61%)
/public/uploads/motorcycle/image/1/default_1.jpg -- 21.72kb -> 21.13kb (2.72%)
/public/uploads/tmp/1652784708-545125553834720-0001-7998/default_1.jpg -- 21.72kb -> 21.13kb (2.72%)

Signed-off-by: ImgBotApp <[email protected]>
[ImgBot] Optimize images
Copy link

@mosesogwo mosesogwo left a comment

Choose a reason for hiding this comment

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

Hi team,

Good job so far!
There are some issues to be handled that will make your project superb.

Highlights

Good job with restful controller actions and keeping best practices.

Suggested Changes ♻️

  • Revert changes made to the linter config.
  • Make sure that tests are passing.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
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.

README.md Outdated

## Acknowledgments

- Hat tip to anyone whose code was used !

Choose a reason for hiding this comment

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

It's better to acknowledge a particular person or material that was helpful in building the project

end

def update
# @motorcycle = Motorcycle.find(params[:id])

Choose a reason for hiding this comment

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

It's better to remove unused code.

end

def destroy
# @motorcycle = Motorcycle.find(params[:id])

Choose a reason for hiding this comment

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

It's better to remove unused code.

end

def show
# show particular motorcycle for reservation

Choose a reason for hiding this comment

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

It's better to remove unused code.

Copy link

@mosesogwo mosesogwo left a comment

Choose a reason for hiding this comment

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

Hi team,

Good job so far!
There are some issues to be handled that will make your project superb.

Highlights

Good job with restful controller actions and keeping best practices.

Suggested Changes ♻️

  • Revert changes made to the linter config.
  • Make sure that tests are passing.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
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.

vic778 added 2 commits June 7, 2022 15:41
* Validate the presence of a scooter before reservation or delete and throw the right error

* fix linters erors

* change motocyrcle tp scooter

* Add user id to a scooter

* Fix linter errors
* Validate the presence of a scooter before reservation or delete and throw the right error

* fix linters erors

* change motocyrcle tp scooter

* Add user id to a scooter

* Fix linter errors

* Fix scooter bugg
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.

4 participants