Skip to content

refactor(core): refactor org apis #7212

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 3 commits into from
Apr 9, 2025
Merged

refactor(core): refactor org apis #7212

merged 3 commits into from
Apr 9, 2025

Conversation

darcyYe
Copy link
Contributor

@darcyYe darcyYe commented Mar 31, 2025

Summary

refactor org apis, resolves LOG-10882
Org APIs are using SchemaRouter class, before the change, the middleware passed to SchemaRouter will be applied globally. This is not expected, we want finer grained control on middleware.
In this change, we enabled API-level middleware assignment.

Testing

Tested locally.

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

Copy link

github-actions bot commented Mar 31, 2025

COMPARE TO master

Total Size Diff 📈 +3.13 KB

Diff by File
Name Diff
packages/core/src/routes/organization/index.ts 📈 +243 Bytes
packages/core/src/utils/SchemaRouter.ts 📈 +2.89 KB

@darcyYe darcyYe force-pushed the yemq-calculate-usage-in-core branch from f2a78e1 to 78d73fd Compare April 7, 2025 09:02
Base automatically changed from yemq-calculate-usage-in-core to master April 9, 2025 10:06
@github-actions github-actions bot added size/xl and removed size/m labels Apr 9, 2025
@darcyYe darcyYe force-pushed the yemq-refactor-org-apis branch from b5cfaa7 to e02f841 Compare April 9, 2025 10:07
@github-actions github-actions bot added size/m and removed size/xl labels Apr 9, 2025
@darcyYe darcyYe merged commit 9e01ab0 into master Apr 9, 2025
35 checks passed
@darcyYe darcyYe deleted the yemq-refactor-org-apis branch April 9, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make it better size/m
Development

Successfully merging this pull request may close these issues.

2 participants