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

fix(trace_timeline): Support for trace timeline and related issues (team/free plans) #72933

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Jun 18, 2024

If we fetch the events endpoint without specifying a project it queries across all projects. Organizations without the global-views feature (e.g. free and team plans) would fail to return any events, thus, the trace timeline would not be displayed.

This changes the useTraceTimelineEvents to always include the project query parameter by either setting it to -1 (which queries all projects) or to the current project (e.g. the organization is on the free plan).

This will enable the trace timeline and related issues for free plans for events/issues within the same project.

If a trace contains events for other projects, we will only show the link to the trace but not the trace timeline or related issues.

…d issues

If we fetch the events endpoint without specifying a project it queries across all projects. Organizations without the `global-views` feature (e.g. free plan) would fail to return any events, thus, the trace timeline would not be displayed.

This changes the `useTraceTimelineEvents` to always include the `project` query parameter by either setting it to `-1` (which queries all projects) or to the current project (e.g. the organization is on the free plan).

This will enable the trace timeline and related issues for free plans for events/issues within the same project.

If a trace contains events for other projects, we will only show the link to the trace but not the trace timeline or related issues.
@armenzg armenzg self-assigned this Jun 18, 2024
@armenzg armenzg marked this pull request as ready for review June 18, 2024 13:15
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 18, 2024
@armenzg armenzg requested a review from a team as a code owner June 18, 2024 13:15
@armenzg armenzg requested a review from scttcper June 18, 2024 13:15
Copy link

codecov bot commented Jun 18, 2024

Bundle Report

Changes will increase total bundle size by 8.87kB ⬆️

Bundle name Size Change
app-webpack-bundle-array-push 27.3MB 8.87kB ⬆️

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.05%. Comparing base (0f4f955) to head (904064c).
Report is 28 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #72933   +/-   ##
=======================================
  Coverage   78.04%   78.05%           
=======================================
  Files        6604     6605    +1     
  Lines      294370   294432   +62     
  Branches    50749    50767   +18     
=======================================
+ Hits       229747   229814   +67     
+ Misses      58294    58288    -6     
- Partials     6329     6330    +1     
Files Coverage Δ
...ueDetails/traceTimeline/useTraceTimelineEvents.tsx 93.54% <100.00%> (+0.44%) ⬆️

... and 18 files with indirect coverage changes

@armenzg armenzg enabled auto-merge (squash) June 18, 2024 16:33
@armenzg armenzg changed the title feat(related_issues): Free tier support for trace timeline and related issues fix(trace_timeline): Support for trace timeline and related issues (team/free plans) Jun 18, 2024
@armenzg armenzg merged commit 4ee1ea9 into master Jun 18, 2024
42 checks passed
@armenzg armenzg deleted the feat/free_plans/related_issues/armenzg branch June 18, 2024 16:51
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants