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

ref(releasehealth): Implement get_num_sessions_per_project on metrics backend [INGEST-249] #29208

Merged
merged 9 commits into from
Oct 13, 2021

Conversation

RaduW
Copy link
Contributor

@RaduW RaduW commented Oct 8, 2021

Like in #28598, port get_num_sessions_per_project from sentry.snuba.sessions to metrics.

INGEST-249

@RaduW RaduW requested a review from jjbayer October 8, 2021 14:46
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Returns the number of sessions for each project specified.
Additionally
"""
return _get_num_sessions_per_project( # type: ignore
Copy link
Member

Choose a reason for hiding this comment

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

nit: Do we actually need #type: ignore here? _get_num_sessions_per_project looks fully typed.

Copy link
Contributor Author

@RaduW RaduW Oct 12, 2021

Choose a reason for hiding this comment

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

Yes we do, it puzzled me as well,
I think that it is because sentry/snuba/sessions.py is not included in the mypy checked files and it assumes that it returns Any since it can't check it.

Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
@RaduW RaduW merged commit 14f4b12 into master Oct 13, 2021
@RaduW RaduW deleted the feat/get_num_sessions_per_project branch October 13, 2021 13:59
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants