chore: replace getLoggedInUser with this.user in API endpoints#38858
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #38858 +/- ##
===========================================
+ Coverage 70.55% 70.57% +0.02%
===========================================
Files 3188 3189 +1
Lines 112666 112703 +37
Branches 20395 20416 +21
===========================================
+ Hits 79494 79543 +49
+ Misses 31113 31098 -15
- Partials 2059 2062 +3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
|
/jira ARCH-1935 |
Replace manual
getLoggedInUser(this.request)calls with the framework-providedthis.user/this.userIdcontext properties.Changes
groups.online,channels.online: Usethis.userdirectly (authRequired: true guarantees user exists)commands.preview: Usethis.userIddirectlyshield.svg,info: Usethis.user/this.userIdwithauthRequired: false— optional but populated when valid token providedgetLoggedInUser.tshelper and its import fromindex.tsBefore/After
For
authRequired: falseendpoints:💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Task: ARCH-1981