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

feat(ui): Adding new analytics charts for new users, top users past month #10344

Conversation

jjoyce0510
Copy link
Collaborator

In this PR, we add 2 basic charts to analytics tabs:

  1. New Users -> New Users in the past month.
  2. Top Users -> Users who are the most active on DataHub in the past month

This includes their name, title, and email for reference.

Screenshot 2024-04-19 at 3 37 39 PM Screenshot 2024-04-19 at 3 37 45 PM

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Apr 19, 2024
Comment on lines +23 to +28
@Searchable = {
"/time": {
"fieldName": "statusLastModifiedAt",
"fieldType": "COUNT"
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

you need a backfill job otherwise it won't work for existing deployments. This would mean for a month the charts will be empty.

Copy link
Collaborator Author

@jjoyce0510 jjoyce0510 Apr 24, 2024

Choose a reason for hiding this comment

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

see comments below

.filter(row -> !row.getCells().isEmpty())
.map(row -> UrnUtils.getUrn(row.getCells().get(0).getValue()))
.collect(Collectors.toSet());
final Map<Urn, EntityResponse> gmsResponseByUser =
Copy link
Collaborator

@anshbansal anshbansal Apr 23, 2024

Choose a reason for hiding this comment

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

Might be a good idea to add a check for userUrns size before making these calls. No need to make these calls in case this is empty.

Copy link
Collaborator

@anshbansal anshbansal left a comment

Choose a reason for hiding this comment

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

Merge pending CI + backfill job please discuss internally.

@anshbansal anshbansal added the merge-pending-ci A PR that has passed review and should be merged once CI is green. label Apr 23, 2024
@jjoyce0510
Copy link
Collaborator Author

i did not plan to do a backfill job. this will delay the PR further and higher priorities. if we decide on backfill it will take another 3 days before i have it ready

i'll let the primary stakeholder (@gabe-lyons) make the final call on whether to delay or not.

@jjoyce0510 jjoyce0510 merged commit ec21b01 into datahub-project:master Apr 24, 2024
23 of 24 checks passed
sleeperdeep pushed a commit to sleeperdeep/datahub that referenced this pull request Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-pending-ci A PR that has passed review and should be merged once CI is green. product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants