CGC-252 | Refactor and include SessionUserConcern in app/controllers/application_controller.rb
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
CGC-252 | Refactor and include SessionUserConcern in app/controllers/application_controller.rb
- created SessionUser struct vs using a hash to store the session user
- created a domain model for the SessionUser struct
- updated access to use the struct attributes
- included the SessionUser concern in ApplicationController due to wide usage in app and api controllers
References
Validation steps
@leetickett-gitlab - one area I had issues testing was the integration within some of the API endpoints, but that felt like a piece out of scope within a local development environment. If you can jot down any additional validation functional test cases I can do, go for it!
Edited by 🤖 GitLab Bot 🤖