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

Refactor legacy User model #1802

Merged
merged 13 commits into from
Nov 17, 2023

Conversation

williamjallen
Copy link
Collaborator

We currently have two user models: a legacy model, and an Eloquent model. The reflection approach used to access legacy model members through the Eloquent model is not conducive to static analysis, and is a pain to work with. This PR moves a significant portion of the legacy model logic to the Eloquent model. Additionally, I have improved the User<->Password model relationship.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

All the user interactions I can test manually look unchanged from a user's POV. I think this is a great change.

@josephsnyder josephsnyder added this pull request to the merge queue Nov 17, 2023
Merged via the queue into Kitware:master with commit d78f908 Nov 17, 2023
2 checks passed
@williamjallen williamjallen deleted the legacy-user-model-refactor branch November 17, 2023 16:39
sbelsk pushed a commit to sbelsk/CDash that referenced this pull request Nov 20, 2023
We currently have two user models: a legacy model, and an Eloquent
model. The reflection approach used to access legacy model members
through the Eloquent model is not conducive to static analysis, and is a
pain to work with. This PR moves a significant portion of the legacy
model logic to the Eloquent model. Additionally, I have improved the
User<->Password model relationship.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants