Skip to content

feat(browser-starfish): Add project settings endpoint for images - #62025

Merged
DominikB2014 merged 14 commits into
masterfrom
DominikB2014/project-settings
Jan 9, 2024
Merged

DominikB2014 merged 14 commits into
masterfrom
DominikB2014/project-settings

Conversation

@DominikB2014

@DominikB2014 DominikB2014 commented Dec 19, 2023 •

Copy link
Copy Markdown
Contributor

Work for #60482

This PR adds a new endpoint to enable/disable images for the resource module as a project settings.
Complements #62131 , this PR shall be merged and deployed first.

TODO:

  • Add some more error handling
  • Add tests
image

@github-actions github-actions Bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Dec 19, 2023
@github-actions

Copy link
Copy Markdown
Contributor

🚨 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.

@codecov

codecov Bot commented Dec 19, 2023 •

Copy link
Copy Markdown

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (68a5cca) 81.32% compared to head (01a62d8) 81.32%.
Report is 42 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #62025   +/-   ##
=======================================
  Coverage   81.32%   81.32%           
=======================================
  Files        5196     5197    +1     
  Lines      230195   230285   +90     
  Branches    39774    39799   +25     
=======================================
+ Hits       187204   187285   +81     
- Misses      37250    37257    +7     
- Partials     5741     5743    +2     
Files Coverage Δ
src/sentry/api/urls.py 100.00% <100.00%> (ø)
src/sentry/projectoptions/defaults.py 100.00% <100.00%> (ø)
.../endpoints/project_performance_general_settings.py 86.95% <86.95%> (ø)

... and 20 files with indirect coverage changes

@DominikB2014 DominikB2014 changed the title wip feat(browser-starfish): Add project settings for images Dec 20, 2023
@DominikB2014
DominikB2014 requested a review from a team December 20, 2023 19:26
@DominikB2014 DominikB2014 removed the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 21, 2023
@DominikB2014
DominikB2014 marked this pull request as ready for review December 21, 2023 15:39
@DominikB2014
DominikB2014 requested a review from a team as a code owner December 21, 2023 15:39
@DominikB2014 DominikB2014 changed the title feat(browser-starfish): Add project settings for images feat(browser-starfish): Add project settings endpoint for images Dec 21, 2023
@DominikB2014

Copy link
Copy Markdown
Contributor Author

Will have to look into a weird failing environment setup cause by, if anyone happens to know what this then lmk!

ImportError: cannot import name 'ACTOR_TYPES' from partially initialized module 'sentry.models.actor' (most likely due to a circular import) (/home/runner/work/sentry/sentry/src/sentry/models/actor.py)

DominikB2014 added a commit that referenced this pull request Jan 8, 2024
Work for #60482 

1. Adds a basic UI to enable disable image view.

<img width="1264" alt="image"
src="https://github.com/getsentry/sentry/assets/44422760/a58d6ce6-7bc0-4edf-9a9f-5491fb1fac66">

2. When you select show only links the following is shown
<img width="1255" alt="image"
src="https://github.com/getsentry/sentry/assets/44422760/a804efe5-4481-4c4b-bc61-43fb72659d87">

3. If you select go to settings, you go to the performance page
settings.

4. If an image has an error, we will display the grey box again
<img width="753" alt="image"
src="https://github.com/getsentry/sentry/assets/44422760/2654013d-e9b3-4891-86c2-2ba48d6c2030">

A couple TODOs to actually use this
1. We don't have an image icon, going to work on that in a future PR, an
SVG is probably okay here?
2. We need to merge in #62131 and #62025 to have the actual setting

@gggritso gggritso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍🏻

@DominikB2014
DominikB2014 merged commit 58a677f into master Jan 9, 2024
@DominikB2014
DominikB2014 deleted the DominikB2014/project-settings branch January 9, 2024 16:32
DominikB2014 added a commit that referenced this pull request Jan 9, 2024
This PR complements the backend change here #62025, more work for #60482
This should be merged after

It adds to UI to enable/disable images from project settings.
trillville pushed a commit that referenced this pull request Jan 19, 2024
Work for #60482 

1. Adds a basic UI to enable disable image view.

<img width="1264" alt="image"
src="https://github.com/getsentry/sentry/assets/44422760/a58d6ce6-7bc0-4edf-9a9f-5491fb1fac66">

2. When you select show only links the following is shown
<img width="1255" alt="image"
src="https://github.com/getsentry/sentry/assets/44422760/a804efe5-4481-4c4b-bc61-43fb72659d87">

3. If you select go to settings, you go to the performance page
settings.

4. If an image has an error, we will display the grey box again
<img width="753" alt="image"
src="https://github.com/getsentry/sentry/assets/44422760/2654013d-e9b3-4891-86c2-2ba48d6c2030">

A couple TODOs to actually use this
1. We don't have an image icon, going to work on that in a future PR, an
SVG is probably okay here?
2. We need to merge in #62131 and #62025 to have the actual setting
trillville pushed a commit that referenced this pull request Jan 19, 2024
)

Work for #60482 

This PR adds a new endpoint to enable/disable images for the resource
module as a project settings.
Complements #62131 , this PR shall be merged and deployed first.

TODO: 
- [x] Add some more error handling
- [x] Add tests
<img width="767" alt="image"
src="https://github.com/getsentry/sentry/assets/44422760/84196e45-3311-459f-b16b-c7693a659063">
trillville pushed a commit that referenced this pull request Jan 19, 2024
This PR complements the backend change here #62025, more work for #60482
This should be merged after

It adds to UI to enable/disable images from project settings.
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 25, 2024

This branch was successfully deployed

1 active deployment
Preview — 01a62d83 Deployed Jan 8, 2024 by vercel[bot]
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants