-
Notifications
You must be signed in to change notification settings - Fork 15
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
Activity log endpoint #2739
Activity log endpoint #2739
Conversation
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.
@@ -38,6 +37,12 @@ defmodule Trento.ActivityLog do | |||
end | |||
end | |||
|
|||
@spec list_activity_log() :: list(ActivityLog.t()) | |||
def list_activity_log do | |||
# This will be made filterable/paginatable in a later PR |
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.
issue: Avoid comments on future implementations
# This will be made filterable/paginatable in a later PR |
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.
My intention here was to motivate/justify the use of Repo.all
in the following line, which is not very usual. In a way this implementation is partial and I was only drawing attention to this fact.
Small fixes about parentheses of zero arity functions and ordering of aliases in alphabetical order.
- Single view file, instead of two - Adds title field in spec
According to PR comment
c75d8d8
to
9acb3bb
Compare
Description
Implements an endpoint for consuming the activity log.
Filtering/pagination is deferred for later work.
No additional docs needed.
Did you add the right label?
Remember to add the right labels to this PR.
How was this tested?
Describe the tests that have been added/changed for this new behavior.
Unit tests
Did you update the documentation?
Remember to ask yourself if your PR requires changes to the following documentation:
Add a documentation PR or write that no changes are required for the documentation.