Skip to content

feat(issues): Consolidate share and publish modals #90715

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 71 commits into from

Conversation

roggenkemper
Copy link
Member

this pr updates the share and publish modals from the issue details page.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 30, 2025
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 80.84526% with 281 lines in your changes missing coverage. Please review.

❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.

Files with missing lines Patch % Lines
...e/migrations/0052_migrate_errored_metric_alerts.py 40.83% 213 Missing ⚠️
...rc/sentry/api/endpoints/trace_explorer_ai_query.py 58.13% 18 Missing ⚠️
...rations/test_0052_migrate_errored_metric_alerts.py 44.82% 16 Missing ⚠️
...rc/sentry/api/endpoints/trace_explorer_ai_setup.py 63.15% 14 Missing ⚠️
.../endpoints/serializers/workflow_engine_detector.py 93.03% 11 Missing ⚠️
fixtures/page_objects/explore_logs.py 87.50% 4 Missing ⚠️
...entry/integrations/bitbucket_server/integration.py 91.66% 2 Missing ⚠️
src/sentry/integrations/gitlab/integration.py 96.96% 1 Missing ⚠️
src/sentry/search/eap/spans/aggregates.py 85.71% 1 Missing ⚠️
...entry/integrations/gitlab/tasks/test_pr_comment.py 99.50% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #90715       +/-   ##
===========================================
+ Coverage   45.57%   87.88%   +42.30%     
===========================================
  Files       10257    10285       +28     
  Lines      581483   583457     +1974     
  Branches    22561    22517       -44     
===========================================
+ Hits       265038   512781   +247743     
+ Misses     316016    70249   -245767     
+ Partials      429      427        -2     

ryan953 and others added 26 commits May 1, 2025 00:15
| | Old Style | Chonk Style |
| --- | --- | --- |
| Before | <img width="205" alt="before - old style"
src="https://github.com/user-attachments/assets/b6f577f5-3b16-472e-9a05-08f061786406"
/> | <img width="196" alt="before - chonk"
src="https://github.com/user-attachments/assets/b0ffd68e-cf59-4b5c-b5d5-554d0b20602b"
/>
| After | <img width="202" alt="after - old style"
src="https://github.com/user-attachments/assets/8ded1922-8d3d-443a-8f69-41c6750db84e"
/> | <img width="268" alt="after - chonk"
src="https://github.com/user-attachments/assets/dff3cdf5-70dc-451b-9cfb-4d2bfd3ab929"
/>

Fixes #90650
Followup to #90648
1. Correct error messages when starring/un-starring transactions
2. Update the starred transaction header to be a star and non-resizable
Before

![image](https://github.com/user-attachments/assets/ab9ad3e1-9a51-4144-a80f-afdb5c211e3f)

After

![image](https://github.com/user-attachments/assets/1bf6e453-6c53-450c-8149-2f507f157137)
This job should not fail and block deploys since it is not on the
critical path
…90721)

Related to getsentry/snuba#7145 (needs to be
done before that can be merged) - we use 'double' in the wire for
float64 accuracy
)

Add a more narrowly scoped test for quotas using cache to read data.

I didn't want to fully remove the query count assertions, as emitting
many queries from quotas can impact system performance.
)

Currently, we invoke this task with a list of `Project` models that are
pickled. This has escaped our existing pickle detection logic as all
calls to the task are mocked.

This set of changes introduces a new `project_ids` parameter that will
let us not need pickle. Once this has deployed, I'll change the
callsites to pass `project_ids` and deprecate `projects` usage.

Refs #90681
### Summary
This asserts the attribute columns, which have regressed a few times, as
well as some of the attribute values in each column
Record an analytics event for pagination clicks. The data we store are:
- the type of table (samples, traces, aggregates)
- the number of results rendered
- the direction of the pagination (next vs previous, defined by the
pagination component)
…rts (#90725)

1. Add user column to eap overview table
<img width="1280" alt="image"
src="https://github.com/user-attachments/assets/d8962e1c-5d71-411e-894b-d2bd1ddf5fa3"
/>

2. Remove Slow ops Charts to eap overview pages as we have better span
based charts like slow assets, and most-time consuming domains
Basic rendered in this context can contain a nowrapped link, just use
the attribute value.
Create a detector serializer for the old rule endpoints that returns the
same data as before but reads it from the new models.

This is modeled off of the
[AlertRuleSerializer](https://github.com/getsentry/sentry/blob/master/src/sentry/incidents/endpoints/serializers/alert_rule.py#L96)
and I'm calling out the places that are different. I did pull put a lot
of the code in `get_attrs` into their own functions because it's so
long, but the core of it is the same.
We enabled deletions for all organizations. This is the default
behaviour.
A follow-up to #90518.

So far, the new logic has worked 100% of the time (over 6k calls) and
there's no Sentry errors.
…90737)

this is currently the number one flaky test at sentry -- for some reason
it only seems to fail from a blank database with a particular number of
tests ahead of it (some timing issue? some periodic data cleanup task?
unclear to me at least). by modernizing the dates it seems to avoid that
issue

<!-- Describe your PR here. -->
Deletions can get killed by deploys and timeouts. Reattempting only once
a day can lead to deletions taking many days to complete. By
reattempting more frequently should lead to deletions completing more
quickly.
…elds on the AlertRuleWorkflow table (#90714)

## Description
To be able to quickly reference items in this table by these keys we'll
need them to be indexed
We have a specialized use case which requires a dedicated tpm function.
This is because we want a table that groups by transaction, displaying
transaction per minute for each transaction, and also calculates
performance score for each transaction (which is calculated with
non-transaction spans, so we can't just apply a global is_transaction
filter)
Exposes `HIGHEST_ACCURACY` mode and uses it as the default if no
sampling mode is defined.

Eventually we want to lean into the fact that NORMAL mode is the
default, but the frontend needs to be updated to make use of this. At
the moment the frontend passes nothing for a high accuracy request, so
we'll enforce the behaviour we expect here.
k-fish and others added 23 commits May 1, 2025 15:40
### Summary
For the attribute tree, we want to constrain the tree to 1 column so
that users can expand the pane to see more data. This PR also changes
the column widths to auto size the column key and column value to at
most 50/50, after which both key and value will start wrapping.

#### Screenshots
|larger without wrapping|still wrapping past 50%|
|-|-|
|![Screenshot 2025-05-01 at 2 34
01 PM](https://github.com/user-attachments/assets/226f9c32-251f-4390-a5bd-eebff62a209f)|![Screenshot
2025-05-01 at 2 34
16 PM](https://github.com/user-attachments/assets/6bef5ae7-03ad-40ce-a81d-21ae46b45c5c)|
This uses the new trace items search query builder powered by the trace
items endpoints for autocompletion. This allows spans and logs to share
the same endpoint.
…explorer parameters (#90760)

Takes, for example, "give me a chart of slowest spans" and outputs
orderby, groupby, charts, etc

Merge after #90748
Add failure_rate_if function, needed for frontend overview page
something about the old dates causes the values to sometimes disappear
in snuba

<!-- Describe your PR here. -->
Scrolls to RC, Solution, and Code Changes sections if you click their
respective sidebar card. Otherwise scrolls to the bottom as before.
Switches reading of `uptime_status` (and `uptime_status_update_date`) to
the `uptime_subscription` model.

We'll need this to migrate to reading from detectors (and implementing
the detector handler)
### Summary
'timestamp' doesn't exist in trace-item-details endpoint, we only have
sentry.timestamp_nanos when mapping directly.

This broke when we moved to passing `attributes` to renderExtra instead
of the table row.
This moves the releases drawer hook to inside of AppLayout where
organization should be loaded.
Centers the star and ellipsis buttons on a view. The view title left of
the buttons is also centered, but it was hard to notice on a widescreen
monitor. Also fixes the overflow problem

Before:


![image](https://github.com/user-attachments/assets/02c499d8-e9e6-4b52-a37f-cc7c71f513c1)

After:


![image](https://github.com/user-attachments/assets/64ae61f4-650e-49ef-b87c-531196978e8a)
before:
<img width="785" alt="SCR-20250501-macq"
src="https://github.com/user-attachments/assets/625192cb-c090-49c2-8d2c-5e912116b659"
/>

after:
<img width="910" alt="SCR-20250501-lzyc"
src="https://github.com/user-attachments/assets/5dcfd519-c550-483f-839b-8f8e04cd124f"
/>

don't know when the misalignment happened (and i know the suspect labels
will go away soon), but let's fix it for now
This PR fixes `<ErrorHandler>` to add a `cause` error to when we catch
an error with a React Error Boundary. This will help us debug [this
error](https://sentry.sentry.io/issues/6333431167/events/ecf1545d92834ceba543c2b62af63171/?project=11276)
(and future ones that hit `<ErrorHandler>`).

See [this
issue](https://sentry-emerging-tech.sentry.io/issues/6580362564/?project=6326737&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&stream_index=0)
for what it will look like.
This should fix [this
issue](https://sentry.sentry.io/issues/4191022159/?project=11276&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D%20useOrganization&referrer=issue-stream&stream_index=1)
as the `/settings/` index page can link to invalid URLs when user is not
apart of any orgs. (I actually think this *only* is visitable when the
user is not part of any orgs, otherwise it redirects you to org
settings). Replace/remove all org links on this index page.

Also fixes text clipping due to overflow + ellipsis (look at the "g" in
Organization)


Old:

![image](https://github.com/user-attachments/assets/83c0013b-4a91-40eb-bdbc-05473ac7127a)


New:


![image](https://github.com/user-attachments/assets/2d246689-8735-467f-9461-6bdb48c9f9bd)

Fixes JAVASCRIPT-2M6X
Currently we have custom logic in the DropdownMenu component which
handles link items. The react-aria library should already be handling
this, but we configured things a bit differently than react-aria
expected which prevented it. This PR removes the custom behavior and
provides a `href` for react-aria to use.

I'm hoping that this change fixes some bugs I've seen on mobile devices.
On iOS especially, taps on dropdown link items have no effect.

Summary of changes:

- Add `href` to the dropdown item state if `to` or `externalHref` is
passed
- Remove custom logic handling keyboard selection of a link item
- Moves the dropdown item props from the container `li` element to the
"inner item" (which is an anchor tag in the case of links)
- Fixes tests that looked for `link` roles instead of `menuitemradio`
…y/sentry into roggenkemper/consolidatepublish
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 1, 2025
Copy link
Contributor

github-actions bot commented May 1, 2025

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.