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

global: configurable aggregations #8

Merged
merged 1 commit into from
Jul 21, 2017
Merged

Conversation

dinosk
Copy link
Member

@dinosk dinosk commented Jul 20, 2017

  • ADDS loading of aggregation logic from entrypoints

Signed-off-by: Dinos Kousidis konstantinos.kousidis@cern.ch

@dinosk dinosk self-assigned this Jul 20, 2017
@dinosk dinosk requested a review from nharraud July 20, 2017 12:20
"""Register sample events."""
return [dict(event_type='file-download',
processor=EventsIndexer),
dict(event_type='record-view',
processor=EventsIndexer)]


def register_aggregations():
Copy link
Member

Choose a reason for hiding this comment

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

The file is name events.py. We should find a more appropriate name if we also put the aggregations there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to registrations.py


def register_aggregations():
"""Register sample aggregations."""
return [dict(event_type='file-download',
Copy link
Member

Choose a reason for hiding this comment

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

The name should not be the name of an event type. We could have multiple aggregations based on the same events.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to aggregation_name

@dinosk dinosk force-pushed the aggs branch 5 times, most recently from 2ef5beb to 49966de Compare July 20, 2017 14:49
* ADDS loading of aggregation logic from entrypoints

Signed-off-by: Dinos Kousidis <konstantinos.kousidis@cern.ch>
@nharraud nharraud merged commit 4ad4253 into inveniosoftware:master Jul 21, 2017
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.

None yet

2 participants