Skip to content

Conversation

@SeungjinYang
Copy link
Collaborator

@SeungjinYang SeungjinYang commented Oct 30, 2025

Server side admin policy can benefit from knowing which user made the request - to handle things such as per-user rate limiting, etc. This PR adds the user info to UserRequest struct accessible by admin policy.

Tested (run the relevant ones):

  • Code formatting: install pre-commit (auto-check on commit) or bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: /smoke-test (CI) or pytest tests/test_smoke.py (local)
  • Relevant individual tests: /smoke-test -k test_name (CI) or pytest tests/test_smoke.py::test_name (local)
  • Backward compatibility: /quicktest-core (CI) or pytest tests/smoke_tests/test_backward_compat.py (local)

@SeungjinYang SeungjinYang force-pushed the admin-policy-user branch 2 times, most recently from 5e247ab to 58bff93 Compare October 30, 2025 21:06
@SeungjinYang SeungjinYang changed the title add user data in admin policy add user data to admin policy Oct 30, 2025
@SeungjinYang SeungjinYang force-pushed the admin-policy-user branch 2 times, most recently from 28ba1a8 to 24622de Compare October 30, 2025 22:17
@SeungjinYang SeungjinYang marked this pull request as ready for review October 30, 2025 22:27
@SeungjinYang SeungjinYang requested a review from aylei October 31, 2025 23:08
Copy link
Collaborator

@aylei aylei left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @SeungjinYang !

@aylei
Copy link
Collaborator

aylei commented Nov 3, 2025

/smoke-test

@SeungjinYang
Copy link
Collaborator Author

SeungjinYang commented Nov 4, 2025

@SeungjinYang SeungjinYang enabled auto-merge (squash) November 4, 2025 18:37
@SeungjinYang SeungjinYang merged commit a9b31ca into master Nov 4, 2025
20 checks passed
@SeungjinYang SeungjinYang deleted the admin-policy-user branch November 4, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants