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

[wip][ENG-6953][ENG-6954][ENG-6955] send usage metrics to datacite #2490

Draft
wants to merge 26 commits into
base: develop
Choose a base branch
from

Conversation

aaxelb
Copy link
Contributor

@aaxelb aaxelb commented Jan 24, 2025

  • Ticket: []
  • Feature flag: n/a
    (pairing with @futa-ikeda )

Purpose

send usage metrics to datacite

Summary of Changes

  • add @datacite/datacite-tracker dependency
  • track pageviews with datacite (when the resource has a doi)
  • track preprint downloads with datacite

Screenshot(s)

Side Effects

QA Notes

aaxelb and others added 5 commits January 24, 2025 15:08
- add `@datacite/datacite-tracker` dependency
- track pageviews with datacite (when the resource has a doi)
- track preprint downloads with datacite
@aaxelb aaxelb changed the title [ENG-6953][ENG-6954][ENG-6955] send usage metrics to datacite [wip][ENG-6953][ENG-6954][ENG-6955] send usage metrics to datacite Jan 30, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 13206780108

Details

  • 18 of 53 (33.96%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 66.63%

Changes Missing Coverage Covered Lines Changed/Added Lines %
app/models/preprint.ts 2 3 66.67%
lib/osf-components/addon/modifiers/track-download.ts 11 15 73.33%
app/services/analytics.ts 3 33 9.09%
Totals Coverage Status
Change from base Build 13059060187: -0.2%
Covered Lines: 7915
Relevant Lines: 11450

💛 - Coveralls

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