Skip to content

Update HTTP Handler to primarily be useriden driven, add user logging to requests (SYN-4602) #3007

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

Merged
merged 33 commits into from
Feb 21, 2023

Conversation

vEpiphyte
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Base: 97.20% // Head: 97.09% // Decreases project coverage by -0.11% ⚠️

Coverage data is based on head (6055772) compared to base (b595071).
Patch coverage: 98.78% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3007      +/-   ##
==========================================
- Coverage   97.20%   97.09%   -0.11%     
==========================================
  Files         220      220              
  Lines       43477    43528      +51     
==========================================
+ Hits        42262    42264       +2     
- Misses       1215     1264      +49     
Flag Coverage Δ
linux 97.09% <98.78%> (-0.01%) ⬇️
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/axon.py 98.47% <89.47%> (-0.42%) ⬇️
synapse/lib/cell.py 98.35% <100.00%> (+0.02%) ⬆️
synapse/lib/httpapi.py 97.16% <100.00%> (-0.20%) ⬇️
synapse/tests/utils.py 94.49% <0.00%> (-1.88%) ⬇️
synapse/cortex.py 96.72% <0.00%> (-0.56%) ⬇️
synapse/lib/hiveauth.py 96.01% <0.00%> (-0.48%) ⬇️
synapse/lib/oauth.py 98.68% <0.00%> (-0.44%) ⬇️
synapse/lib/trigger.py 95.01% <0.00%> (-0.39%) ⬇️
synapse/lib/view.py 97.02% <0.00%> (-0.34%) ⬇️
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@vEpiphyte vEpiphyte changed the title WIP: Update HTTP Handler to primarily be useriden driven, add user logging to requests (SYN-4602) Update HTTP Handler to primarily be useriden driven, add user logging to requests (SYN-4602) Feb 7, 2023
@@ -33,7 +33,14 @@
MAX_SPOOL_SIZE = CHUNK_SIZE * 32 # 512 mebibytes
MAX_HTTP_UPLOAD_SIZE = 4 * s_const.tebibyte

class AxonHttpUploadV1(s_httpapi.StreamHandler):
class AxonHandlerMixin:
def getAxon(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we want to make this async so that a remote axon ( via telepath Client ) could be awaited for ready status?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can do that; I was using the existing pattern we have for the Storm handlers which is a sync call. An implementation that references a telepath Client would implicitly have a waitready() call in it, so we may be doing double duty there.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a separate story or still relevant to this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Cisphyx I think that would be seperate?

@vEpiphyte vEpiphyte requested a review from invisig0th February 15, 2023 14:52
@vEpiphyte vEpiphyte requested a review from Cisphyx February 15, 2023 14:53
@vEpiphyte vEpiphyte merged commit 4250d01 into master Feb 21, 2023
@vEpiphyte vEpiphyte deleted the feat_http_logger branch February 21, 2023 14:41
@vEpiphyte vEpiphyte added this to the v2.12x.x milestone Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants