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

Streaming: refactor to custom Error classes #28632

Merged

Conversation

ThisIsMissEm
Copy link
Contributor

@ThisIsMissEm ThisIsMissEm commented Jan 6, 2024

This enables better handling of the errors rather than just adding properties to the Error instance. This is currently a draft until #27828 is merged.

We also need to take a deeper look at the on("error") handlers for websockets and eventstreams to double check that we're not accidentally sending confidential information about errors to the clients.

I will also note that we're approaching the time to do a reorganisation of the streaming/ directory into a streaming/src/* and streaming/index.js that just starts the server listening, however, due to other inflight work, I don't wish to do this reorganisation yet, as it'd create merge and rebase conflicts.

Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

This enables better handling of the errors rather than just adding properties to the Error instance
@ThisIsMissEm ThisIsMissEm force-pushed the refactor/custom-errors-for-streaming branch from 68712da to b9c4a1b Compare January 19, 2024 19:21
@ThisIsMissEm ThisIsMissEm marked this pull request as ready for review January 19, 2024 19:21
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cf2a2ed) 85.07% compared to head (d60170e) 85.08%.
Report is 241 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #28632    +/-   ##
========================================
  Coverage   85.07%   85.08%            
========================================
  Files        1038     1061    +23     
  Lines       28142    28339   +197     
  Branches     4532     4545    +13     
========================================
+ Hits        23943    24112   +169     
- Misses       3039     3065    +26     
- Partials     1160     1162     +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

This pull request has resolved merge conflicts and is ready for review.

@renchap renchap added the streaming Streaming server label Jan 19, 2024
@ThisIsMissEm
Copy link
Contributor Author

@renchap @ClearlyClaire I think this should be easily mergeable?

renchap
renchap previously approved these changes Feb 21, 2024
Copy link
Member

@renchap renchap left a comment

Choose a reason for hiding this comment

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

Looks good to me

@renchap renchap enabled auto-merge February 22, 2024 11:36
@renchap renchap added this pull request to the merge queue Feb 22, 2024
Merged via the queue into mastodon:main with commit 491dd97 Feb 22, 2024
29 checks passed
skerit pushed a commit to 11ways/mastodon that referenced this pull request Feb 27, 2024
Ember-ruby pushed a commit to Ember-ruby/mastodon-glitch that referenced this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
streaming Streaming server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants