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 statistical analytics to the records module #216

Merged

Conversation

philippgualdi
Copy link
Collaborator

This pull request introduces a statistical feature from invenio-stats for this data model. This includes the aggregation of events and display of views and download for publication records. The implementation enhances the module by providing deeper insights into user interactions and system performance relating to specific records.

Key Changes:

  1. Record Mapping Adjustments:

    • Modified the record mapping to include statistic fields stored in the record.
  2. Statistics Template:

    • Added a new Jinja2 template for statistical event visualizations. This template is designed to display aggregated data and is integrated within the existing module UI.
  3. Aggregation Functionality:

    • Integrated ìnvenio-stats` backend functionality to query aggregated events data for a record.
  4. OpenSearch Template for MARC21 Records:

    • Integrated OpenSearch templates, indexing the events and aggregations for a marc21 record.
  5. Enhanced Configuration Flexibility:

    • Configuration blueprints can now be dynamically loaded, which permits instance-specific configurations without altering the core module code.

Testing:

Add to invenio.cfg following lines:

from invenio_records_marc21.config import MARC21_STATS_CELERY_TASKS, MARC21_STATS_EVENTS, MARC21_STATS_AGGREGATIONS, MARC21_STATS_QUERIES
from invenio_app_rdm.config import CELERY_BEAT_SCHEDULE, STATS_EVENTS, STATS_AGGREGATIONS, STATS_QUERIES

CELERY_BEAT_SCHEDULE.update(MARC21_STATS_CELERY_TASKS)
STATS_EVENTS.update(MARC21_STATS_EVENTS)
STATS_AGGREGATIONS.update(MARC21_STATS_AGGREGATIONS)
STATS_QUERIES.update(MARC21_STATS_QUERIES)

@philippgualdi philippgualdi force-pushed the feature/statistics branch 2 times, most recently from 4eea131 to 86cc686 Compare April 18, 2024 07:22
@philippgualdi philippgualdi changed the title WIP: Add statistical analytics to the records module Add statistical analytics to the records module Apr 18, 2024
@philippgualdi philippgualdi marked this pull request as ready for review April 18, 2024 07:59
@philippgualdi philippgualdi force-pushed the feature/statistics branch 2 times, most recently from c97c4dc to c66eec9 Compare April 23, 2024 06:39
@philippgualdi philippgualdi force-pushed the feature/statistics branch 3 times, most recently from 90ce345 to 6fc1269 Compare April 26, 2024 17:10
@philippgualdi philippgualdi merged commit 3a95f08 into tu-graz-library:master May 2, 2024
4 checks passed
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