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

Improved Query to get credit points for a user #1171

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

MICHAELMUNAVU83
Copy link
Collaborator

Fixed Query for getting Credit Points for a user to ensure that is all we get and not the "Whole Jungle"

@MICHAELMUNAVU83 MICHAELMUNAVU83 marked this pull request as ready for review November 26, 2024 06:21
Copy link
Collaborator

@wintermeyer wintermeyer left a comment

Choose a reason for hiding this comment

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

@MICHAELMUNAVU83 Let's discuss this in our next call.

@briankariuki Is there a better way to add this to FastUser?

@@ -332,6 +374,46 @@ defmodule Animina.Accounts.FastUser do
}
end

defp build_query_for_credit_points(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this so complicated? Please add a comment to functions which are so complex why it has to be and what they are doing.

@wintermeyer wintermeyer merged commit fc8abde into main Nov 26, 2024
1 check passed
@wintermeyer wintermeyer deleted the optimize-credit-points-query branch November 26, 2024 06:52
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.

2 participants