-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
refactor: make "database reset" mechanism extendable #690
Merged
nikophil
merged 4 commits into
zenstruck:2.x
from
nikophil:refactor/database-reset-mechanism
Oct 23, 2024
Merged
refactor: make "database reset" mechanism extendable #690
nikophil
merged 4 commits into
zenstruck:2.x
from
nikophil:refactor/database-reset-mechanism
Oct 23, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nikophil
changed the title
refactor/database reset mechanism
Refactor database reset mechanism
Aug 25, 2024
nikophil
changed the title
Refactor database reset mechanism
Refactor "database reset" mechanism
Aug 25, 2024
nikophil
commented
Aug 25, 2024
nikophil
force-pushed
the
refactor/database-reset-mechanism
branch
4 times, most recently
from
August 25, 2024 17:53
a29c898
to
d8ef4e7
Compare
nikophil
commented
Aug 27, 2024
I have tested this PR and it works great for me. Thank you! |
nikophil
force-pushed
the
refactor/database-reset-mechanism
branch
2 times, most recently
from
October 18, 2024 12:36
411dfb9
to
845b569
Compare
nikophil
commented
Oct 18, 2024
kbond
reviewed
Oct 19, 2024
kbond
approved these changes
Oct 19, 2024
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.
I like this, just a few CS notes.
If not in the docs, at least in the PR description, I'd like to see an example of hooking into this in userland. |
nikophil
force-pushed
the
refactor/database-reset-mechanism
branch
6 times, most recently
from
October 23, 2024 08:21
d6065db
to
0136fdb
Compare
nikophil
force-pushed
the
refactor/database-reset-mechanism
branch
from
October 23, 2024 08:31
0136fdb
to
daed4fb
Compare
nikophil
changed the title
Refactor "database reset" mechanism
refactor: make "database reset" mechanism extendable
Oct 23, 2024
This was referenced Oct 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an experiment to refactor "database reset" mechanism.
The goal is to decouple the code and to allow end users to extend it, thanks to decoration - I'll add an example in the docs on how to hook in the database reset mechanism
This work was inspired by this comment, I think I also do prefer decoration over an event system in Foundry
fixes #540 #658
(let's merge #686 before this one, I'll take care of the rebase)done