-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(medusa): Expose an activeManager_
getter in TransactionBaseService
#3256
Conversation
🦋 Changeset detectedLatest commit: 3761221 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
c46ef9c
to
4b58554
Compare
e7e6f60
to
582c04c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice cleanup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such a nice clean up! @srindom can I get you to sign off on this too :)
@adrien2p Should be updated to use the new Typeorm repository API |
@olivermrbl as soon as develop will be merged into it and I resolve the conflict it will use the new repo 💪 |
Yep sorry, that was what I meant 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nice! The only thing that I can think of as a potential risk with this is if people have done:
// my-custom-service.ts
import { TransactionBaseService } from "@medusajs/medusa"
class MyService extends TransactionBaseService {
...
}
TS would complain after an update right? So this is a breaking change that should be highlighted.
I am not sure what would TS complain about? everything that was done previously can still live, we just add a new helper getter |
Was unsure if the change from |
@srindom it does not complain because now it is just optional to define it on the child class, but if it is present it is not a problem since protected members are accessible from the child |
activeManager_
getter in TransactionBaseService
No description provided.