Skip to content

Add static about page#4

Open
aligiselle wants to merge 1 commit intodevfrom
alisha/add-static-about-page
Open

Add static about page#4
aligiselle wants to merge 1 commit intodevfrom
alisha/add-static-about-page

Conversation

@aligiselle
Copy link
Collaborator

Description

(What does the PR do? What's problem? What's the solution?)

(If this is a bugfix, what is the issue? How/why are things breaking currently?)

Background Information

(Any background information/context for the changes in the PR?)

(Is there a deeper root cause not addressed by this PR?)

Changelog

Internal changes

  • (add your own items to this checklist to show what changes were added to this PR)
  • (example: remove old tests)
  • (example: refactor search method)

External changes

  • (example: add "save" button)
  • (example: fix bug on front page)

Implications for dev branch

(Is there anything the rest of the team should be aware of after merging this branch? (ie. migrations/scripts to run, libraries to install, etc.))

Screenshots/Recordings

(Please include before/after screenshots of any user-facing changes)

PR Checklist

  • Write clear, easy to read description of PR
  • Remove all text from PR description that is in (parenthesis)
  • Add and label screenshots (if dealing with UI. if not, delete this line)
  • Remove debugging statements like console.log, byebug, puts, prints, p, pp

How does this PR make you feel?

Select a gif or emoji and add here. You can find gifs here: https://giphy.com/categories/emotions

@aligiselle aligiselle closed this Aug 12, 2022
@ddigioia3 ddigioia3 reopened this Aug 22, 2022
@ddigioia3
Copy link
Collaborator

I reopened this PR as its using the branch based off dev. The other PR had additional changes not related to the about us page.

@ddigioia3 ddigioia3 requested review from Asel-K and ddigioia3 and removed request for Asel-K and ddigioia3 August 22, 2022 19:09
Copy link
Collaborator

@ddigioia3 ddigioia3 left a comment

Choose a reason for hiding this comment

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

Bolting about us onto sessions is probably a bad pattern to follow. Lets seperate those out using the methodology explained in the treehouse blog I linked. 👍

}

.footer {
bottom: 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Code Hygiene]
If this is not longer needed, its cleaner to just remove it over commenting it out.

@@ -0,0 +1,14 @@
<div class "container">
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Separation of Responsibilities]
The sessions are responsible for handling authentication/authorization, not really about handling static pages. Putting the about page here creates what's known as "tight coupling" between static pages and sessions, which is bad because it makes maintenance of the two difficult because if you change one the other may get broken.

Instead, we should add separate handling for static pages.
This treehouse blog explains how to accomplish this.

get 'login', to: 'sessions#new'
post 'login', to: 'sessions#create'
get 'welcome', to: 'sessions#welcome'
get 'about', to: 'sessions#about'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Once you decouple the sessions from static pages, this will need to change as well

@aligiselle
Copy link
Collaborator Author

Hi @ddigioia3 ... I no longer have this branch as I would have realized I made a mess of things. I re-cloned the repository and created new branches. Can I create another branch on my new repository with the suggested changes and do a new pull request?

@myang1010
Copy link
Contributor

@aligiselle were you able to checkout this branch and continue your work?

@aligiselle
Copy link
Collaborator Author

Hi @myang1010 when I did that it caused serious errors. It seemed to delete everything I pulled on dev and tried to add a couple of files from this branch but curiously never switched to it.

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.

3 participants