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

[38] Create Rails User model #46

Merged
merged 13 commits into from
Jul 26, 2024
Merged

[38] Create Rails User model #46

merged 13 commits into from
Jul 26, 2024

Conversation

bilalhankins
Copy link
Contributor

@bilalhankins bilalhankins requested a review from stepchud July 18, 2024 19:09
@r-bartlett-gsa r-bartlett-gsa added this to the Sprint 07/30/24 milestone Jul 18, 2024
Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

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

Now that I've seen this, it doesn't look very useful. I'm not even sure we need the view helpers TBH. I think all we really want are the app/models and spec/models classes but those can be created pretty easily without the schema_to_scaffold gem. instead let's try using https://github.com/ctran/annotate_models to add code comments to the model class based on the current schema.

db/migrate/20240718185343_create_users.rb Outdated Show resolved Hide resolved
app/controllers/users_controller.rb Outdated Show resolved Hide resolved
app/views/users/_form.html.erb Outdated Show resolved Hide resolved
app/views/users/_user.html.erb Outdated Show resolved Hide resolved
app/views/users/_user.json.jbuilder Outdated Show resolved Hide resolved
app/views/users/edit.html.erb Outdated Show resolved Hide resolved
config/routes.rb Outdated Show resolved Hide resolved
spec/requests/users_spec.rb Outdated Show resolved Hide resolved
spec/routing/users_routing_spec.rb Outdated Show resolved Hide resolved
spec/views/users/edit.html.erb_spec.rb Outdated Show resolved Hide resolved
@bilalhankins bilalhankins requested a review from stepchud July 22, 2024 16:46
spec/helpers/users_helper_spec.rb Outdated Show resolved Hide resolved
spec/models/user_spec.rb Outdated Show resolved Hide resolved
app/models/user.rb Outdated Show resolved Hide resolved
Comment on lines 44 to 45
# Virtual Attributes
attr_accessor :email_confirmation, :password, :password_confirmation
Copy link
Contributor

@stepchud stepchud Jul 23, 2024

Choose a reason for hiding this comment

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

the docs for the attribute method say it doesn't need to be backed by the DB. however, I'm not sure that we need these attributes anyways. AFAIK users shouldn't be able to reset their login.gov password from the app, and I don't know about the email_confirmation.
Screenshot 2024-07-22 at 5 18 35 PM

Co-authored-by: Stephen Chudleigh <stepchud@users.noreply.github.com>
@stepchud stepchud removed the WIP label Jul 23, 2024
@bilalhankins bilalhankins requested a review from stepchud July 23, 2024 18:15
@stepchud stepchud merged commit 337a877 into dev Jul 26, 2024
9 checks passed
@stepchud stepchud deleted the 38/create-user-model branch July 26, 2024 19:56
@r-bartlett-gsa r-bartlett-gsa linked an issue Jul 26, 2024 that may be closed by this pull request
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.

Create Rails User model
3 participants