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

Add methods to provide list of events to back-office #31

Merged
merged 7 commits into from
Apr 24, 2019

Conversation

fperot74
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Apr 18, 2019

Pull Request Test Coverage Report for Build 377

  • 189 of 219 (86.3%) changed or added relevant lines in 10 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.6%) to 92.441%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/events/http.go 59 65 90.77%
pkg/events/module.go 42 66 63.64%
Totals Coverage Status
Change from base Build 359: -0.6%
Covered Lines: 2299
Relevant Lines: 2487

💛 - Coveralls

Message: fmt.Sprintf("Duplicated parameter %s", key),
}
}
request[key] = value
Copy link
Contributor

Choose a reason for hiding this comment

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

For realm key, we will override the one provided by the path parameter.
Maybe rename it target_realm would solve the issue.

pkg/events/module.go Show resolved Hide resolved
pkg/events/module.go Show resolved Hide resolved
Copy link
Contributor

@harture harture left a comment

Choose a reason for hiding this comment

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

ça serait bien mettre à jour le README

@@ -31,7 +31,7 @@ func MakeGetEventsSummaryEndpoint(ec EventsComponent) endpoint.Endpoint {
// MakeGetUserEventsEndpoint makes the events summary endpoint.
func MakeGetUserEventsEndpoint(ec EventsComponent) endpoint.Endpoint {
return func(ctx context.Context, req interface{}) (interface{}, error) {
params := filterParameters(req.(map[string]string), "first", "max", "dateFrom", "dateTo", "realm", "userID", "origin", "ctEventType")
params := filterParameters(req.(map[string]string), "first", "max", "dateFrom", "dateTo", "realm", "realmTarget", "userID", "origin", "ctEventType")
Copy link
Contributor

Choose a reason for hiding this comment

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

On devrait pas enelver realm ici ?

@harture harture merged commit a089ff2 into master Apr 24, 2019
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.

3 participants