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(releases): add release adoption table to insights #85702

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

Conversation

michellewzhang
Copy link
Member

SCR-20250221-nddr SCR-20250221-ndsn

@michellewzhang michellewzhang requested a review from a team as a code owner February 21, 2025 22:51
@michellewzhang michellewzhang requested a review from a team February 21, 2025 22:51
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 21, 2025
Comment on lines +35 to +45

const currentDate = new Date(release.dateCreated);
const previousDate =
index < releases.length - 1
? new Date(releases[index + 1]?.dateCreated ?? 0)
: null;

const lifespan = previousDate
? Math.floor(currentDate.getTime() - previousDate.getTime())
: undefined;

Copy link
Member Author

Choose a reason for hiding this comment

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

lifespan is defined (by @ryan953 as the time difference between two releases)

Comment on lines +88 to +90
) : (
'--'
);
Copy link
Member Author

Choose a reason for hiding this comment

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

last lifespan in the table is rendered as -- since there's nothing previous to compare it to

@getsentry getsentry deleted a comment from codecov bot Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant