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(related_issues): Decouple endpoint #70504

Merged
merged 3 commits into from
May 9, 2024

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented May 8, 2024

The API tries to find issues for both approaches sequentially (slower), making it harder to iterate on each approach independently.

This change allows using a type parameter with the endpoint to execute one approach or the other.

The UI will be changed to make two independent requests, thus, improving load time.

This is required to empower trace issues from the issues details page.

@armenzg armenzg self-assigned this May 8, 2024
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 8, 2024
@armenzg armenzg marked this pull request as ready for review May 8, 2024 15:01
@armenzg armenzg requested a review from a team as a code owner May 8, 2024 15:01
Copy link

codecov bot commented May 8, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 79.97%. Comparing base (995df95) to head (adcb389).
Report is 5 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #70504       +/-   ##
===========================================
+ Coverage   56.59%   79.97%   +23.37%     
===========================================
  Files        6491     6502       +11     
  Lines      289896   290444      +548     
  Branches    49965    50036       +71     
===========================================
+ Hits       164071   232273    +68202     
+ Misses     125453    57804    -67649     
+ Partials      372      367        -5     
Files Coverage Δ
src/sentry/issues/related/__init__.py 58.33% <100.00%> (ø)
src/sentry/api/endpoints/issues/related_issues.py 91.66% <80.00%> (+2.77%) ⬆️

... and 2000 files with indirect coverage changes

armenzg and others added 3 commits May 9, 2024 13:20
The API would try extracting issues with the same root cause and from the trace, this is done sequentially (slower) and it makes it harder to iterate on each approach indepdently.

This change allows using a `type` parameter with the endpoint in order to execute one approach or the other.

The UI will be changed to make two independent requests, thus, improving load time.
Co-authored-by: Matt Duncan <14761+mrduncan@users.noreply.github.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 9, 2024

This comment was marked as outdated.

@armenzg armenzg force-pushed the feat/related_issues/decouple_endpoint/armenzg branch from 11277e4 to adcb389 Compare May 9, 2024 17:20
@armenzg armenzg removed request for a team May 9, 2024 17:20
@armenzg armenzg merged commit f662031 into master May 9, 2024
49 of 50 checks passed
@armenzg armenzg deleted the feat/related_issues/decouple_endpoint/armenzg branch May 9, 2024 19:25
armenzg added a commit that referenced this pull request May 9, 2024
…d issues

This is a follow up to #70504. Once the UI stops using this approach we will merged this change.
armenzg added a commit that referenced this pull request May 10, 2024
In #70504 I added support for the `type` parameter which allows getting separately the data for same-root issues vs trace-connected issues.

This UI change allows each related issues section to fetch and render the data independently, thus, making the page load faster.

These changes are required in order to support just fetching trace-connected issues from the Issues Details page.
armenzg added a commit that referenced this pull request May 13, 2024
…#70648)

In #70504 I added support for the `type` parameter which allows getting
the data for same-root issues vs trace-connected issues separately.

This UI change allows each related issues section to fetch and render
the data independently, thus, making the page load faster.

These changes are required to support fetching trace-connected issues
from the Issues Details page without also fetching same-root-connected
data.
armenzg added a commit that referenced this pull request May 13, 2024
…d issues (#70606)

This is a follow-up to #70504. Once the UI stops using this approach we
will merge this change.
armenzg added a commit that referenced this pull request May 13, 2024
…d issues

This is a follow up to #70504. Once the UI stops using this approach we will merged this change.
armenzg added a commit that referenced this pull request May 14, 2024
…#70789)

In #70504 I added support for
the type parameter which allows getting the data for same-root issues vs
trace-connected issues separately.

This UI change allows each related issues section to fetch and render
the data independently, thus, making the page load faster.

These changes are required to support fetching trace-connected issues
from the Issues Details page without also fetching same-root-connected
data.

---------

Co-authored-by: Scott Cooper <scttcper@gmail.com>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
armenzg added a commit that referenced this pull request May 14, 2024
…ed issues (#70793)

This is a follow-up to #70504.
Once the UI stops using this approach we will merge this change.

This got temporarily reverted in #70606 since we had to revert the UI
PR.
@github-actions github-actions bot locked and limited conversation to collaborators May 25, 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 Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants