Skip to content

fix(sessions): Fix metrics querybuilder #68745

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

Closed
wants to merge 4 commits into from

Conversation

lynnagara
Copy link
Member

@lynnagara lynnagara commented Apr 11, 2024

not sure why this had sessions as the dataset, sessions doesn't exist anymore

not sure why this had sessions as the dataset
@lynnagara lynnagara requested a review from a team as a code owner April 11, 2024 21:14
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 11, 2024
Copy link

codecov bot commented Apr 11, 2024

Bundle Report

Changes will decrease total bundle size by 552 bytes ⬇️

Bundle name Size Change
sentry-webpack-bundle-array-push 26.3MB 552 bytes ⬇️

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.98%. Comparing base (0c8f916) to head (8e5b200).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #68745      +/-   ##
==========================================
+ Coverage   75.75%   79.98%   +4.22%     
==========================================
  Files        6490     6492       +2     
  Lines      289797   289959     +162     
  Branches    49928    49957      +29     
==========================================
+ Hits       219538   231923   +12385     
+ Misses      69845    57625   -12220     
+ Partials      414      411       -3     
Files Coverage Δ
src/sentry/snuba/metrics/query_builder.py 88.70% <ø> (-3.39%) ⬇️

... and 805 files with indirect coverage changes

Copy link
Contributor

@iambriccardo iambriccardo left a comment

Choose a reason for hiding this comment

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

Good catch, this is not impacting the product though since the dataset won't be used because this code is not querying anything. The high coupling of query builders with parsing logic makes it quite hard to use exclusively the parsing logic.

@getsantry
Copy link
Contributor

getsantry bot commented May 7, 2024

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label May 7, 2024
@lynnagara
Copy link
Member Author

lynnagara commented May 7, 2024

@iambriccardo Do you have advice on how to resolve the AttributeError: 'ReleaseHealthQueryBuilder' object has no attribute 'use_on_demand' issue in the failing tests... Is it supposed to be defined on on that class?

@iambriccardo
Copy link
Contributor

@iambriccardo Do you have advice on how to resolve the AttributeError: 'ReleaseHealthQueryBuilder' object has no attribute 'use_on_demand' issue in the failing tests... Is it supposed to be defined on on that class?

I will check this out.

@iambriccardo
Copy link
Contributor

I have tried several solutions to fix this problem but due to how intertwined the parsing logic is with the Sessions dataset configuration, our best bet is to temporarily keep this like it they are right now and in the future we will switch to the new metrics/query endpoint which has a completely new way of parsing queries.

@lynnagara lynnagara closed this May 13, 2024
@lynnagara lynnagara deleted the fix-dataset-metrics-query-builder branch May 13, 2024 19:56
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants