-
Notifications
You must be signed in to change notification settings - Fork 86
Refactor AnalyticsIdentify plug to use pattern matching #405
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
Conversation
sbatson5
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just 1 question. Otherwise, LGTM 👍
web/plugs/analytics_identify.ex
Outdated
| end | ||
| def call(conn, _opts), do: conn |> identify | ||
|
|
||
| def identify(%{assigns: %{current_user: user}} = conn) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can identify be private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbatson5 I guess there's no reason why it can't be. Can you adjust your review to needs changes then so I know to change it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol. I don't know how to do that, haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add another review that's a needs changes.
sbatson5
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make the identify method private for both cases?
|
@sbatson5 ready for another review. |
78a2b01 to
9ad4078
Compare
9ad4078 to
4e13dd0
Compare
What's in this PR?
Changes
if/elsestyle to pattern matching.