-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Chitter Challenge Most Recent #2195
Open
MattHammond94
wants to merge
47
commits into
makersacademy:main
Choose a base branch
from
MattHammond94:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…irst unit test added
…d - new peep route added to app.rb
…eep repo - tests passed
…e and homepage hyperlinks added
…luding seed files no longer valid as passwords now encrypted for newly created makers only
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Personal review:
I wanted to jump straight into the project after completing my design recipe for how the database would work/interact with the repo classes so I only gave a short overview to how the routes would work and this can be referenced in the “routes_recipe.md” file.
I quickly became intrigued by new ideas and new features as I was working through creating the routes which meant my test driven approach became somewhat sloppy and less structured.
Also because of this my commits also became relatively fast and loose and not as structured as they have been on previous projects.
I also encountered issues later on down the road where because my tests were written before having figured out a specific function I caused a mass of problems for myself when tests had to be re adjusted.
I reached out for help from the coaches after implementing the BCrypt gem as I was struggling to use dependency injection to test the encryption was working at the login stage.
Kays solution can be seen on line 52 of the maker_repository_spec.rb file.
After Kay helped to resolve this I realised my tests would need to be adjusted as the seed files were created pre the encryption change meaning their passwords were not encrpyted in the database.
Questions:
Do I still need to write fails within my repo classes? I have scenarios which I want to fail and these scenarios will return a 500 error anyway when the route is found/called. Where would I control these fails, within the route or the class method?
I’m starting to stack up a large amount of view/erb files - is this normal?
I have a method used to validate all the params for user signup. Is it better to refactor this into 4 different methods one for each param? I think this is a safer approach but would violate the DRY principle as I would be repeating a lot of variables.
What’s the best approach to get all my commits(green squares) to show on my commit history on my own GitHub? They don’t currently show as the repo worked on was forked from makers (I want my commits lmao)
Chitter to do’s: