Skip to content

Feat/shield subscription controller#6233

Merged
chaitanyapotti merged 50 commits intomainfrom
feat/shield-subscription-controller
Aug 29, 2025
Merged

Feat/shield subscription controller#6233
chaitanyapotti merged 50 commits intomainfrom
feat/shield-subscription-controller

Conversation

@tuna1207
Copy link
Copy Markdown
Member

@tuna1207 tuna1207 commented Aug 4, 2025

Explanation

Create Shield Subscription controller

  • initialize controller with architecture doc
  • handle basic CRUD with subscription service

References

Changelog

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@matthiasgeihs matthiasgeihs requested review from matthiasgeihs and removed request for tanguyenvn August 21, 2025 09:48
Copy link
Copy Markdown
Contributor

@matthiasgeihs matthiasgeihs left a comment

Choose a reason for hiding this comment

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

Please be mindful that more tests is not always better.
Having a lot of tests also means that applying changes to the functionality will require a lot of changes to the tests, which costs time.
When writing tests, make sure that you avoid code duplication and try to use a single setup function across a suite of tests, so that it's easy to change things in the setup without having to change it across all tests individually.

Comment thread packages/subscription-controller/CHANGELOG.md Outdated
Comment thread packages/subscription-controller/src/SubscriptionController.test.ts
Comment thread packages/subscription-controller/src/SubscriptionController.ts
Comment thread packages/subscription-controller/src/SubscriptionController.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionController.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionService.test.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionController.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionService.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionService.ts
Comment thread packages/subscription-controller/src/constants.test.ts Outdated
Comment thread packages/subscription-controller/src/types.ts Outdated
Comment thread packages/subscription-controller/src/types.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionService.ts
Comment thread packages/subscription-controller/src/SubscriptionService.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionService.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionService.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionService.test.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionController.ts
Comment thread packages/subscription-controller/src/SubscriptionService.test.ts Outdated
Comment thread packages/subscription-controller/src/SubscriptionController.ts
@chaitanyapotti chaitanyapotti added the area-shield Transaction Shield label Aug 27, 2025
matthiasgeihs
matthiasgeihs previously approved these changes Aug 27, 2025
Copy link
Copy Markdown
Contributor

@matthiasgeihs matthiasgeihs left a comment

Choose a reason for hiding this comment

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

There is one untested branch, which is worthwhile testing and is also easy to test. Then you can adjust coverage thresholds to 100%.

Otherwise looks good 👍

Comment thread packages/subscription-controller/jest.config.js
Comment thread packages/subscription-controller/src/SubscriptionController.test.ts
matthiasgeihs
matthiasgeihs previously approved these changes Aug 28, 2025
chaitanyapotti
chaitanyapotti previously approved these changes Aug 28, 2025
@tuna1207 tuna1207 dismissed stale reviews from chaitanyapotti and matthiasgeihs via 41719fe August 28, 2025 07:02
@tuna1207 tuna1207 requested a review from cryptodev-2s August 28, 2025 07:02
@tuna1207
Copy link
Copy Markdown
Member Author

Hi @cryptodev-2s i have addressed the comments, please help me re-review the PR

@matthiasgeihs matthiasgeihs requested a review from a team August 29, 2025 08:56
@github-project-automation github-project-automation Bot moved this to Needs dev review in PR review queue Aug 29, 2025
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM! Could you please also his controller the Controller Metadata Survey

@github-project-automation github-project-automation Bot moved this from Needs dev review to Review finalised - Ready to be merged in PR review queue Aug 29, 2025
@chaitanyapotti chaitanyapotti enabled auto-merge (squash) August 29, 2025 14:10
@chaitanyapotti chaitanyapotti enabled auto-merge (squash) August 29, 2025 14:16
@chaitanyapotti chaitanyapotti merged commit 44a7b1a into main Aug 29, 2025
235 checks passed
@chaitanyapotti chaitanyapotti deleted the feat/shield-subscription-controller branch August 29, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants