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 an API endpoint to retrieve User action data #3455

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mathjazz
Copy link
Collaborator

@mathjazz mathjazz commented Nov 21, 2024

Introduce an API endpoint to retrieve User action data on a given date for a given project:
/api/v1/user-actions/YYYY-MM-DD/project/PROJECT-SLUG/

Example:
/api/v1/user-actions/2024-01-07/project/thunderbird/

The following actions are tracked:

  • Translation created
  • Translation deleted
  • Translation approved
  • Translation unapproved
  • Translation rejected
  • Translation unrejected

Notes:

  • Authentication is required.
  • The links above point to the stage server, which only has data until 2024-11-20.
  • Performance should be a bit better on the production instance.

@codecov-commenter

This comment was marked as off-topic.

Copy link
Member

@eemeli eemeli left a comment

Choose a reason for hiding this comment

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

Presuming that the suggested API URL change is acceptable.

pontoon/api/urls.py Outdated Show resolved Hide resolved
pontoon/api/views.py Outdated Show resolved Hide resolved
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