-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: add check for duplicate Registrar Auto-Discovery runs #9073
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
fix: add check for duplicate Registrar Auto-Discovery runs #9073
Conversation
0b31522
to
f609bea
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.
I think this change makes sense. Just waiting for a changelog to approve.
fbb3177
to
3144e1c
Compare
Added the docs. |
Is it better to send to |
Maybe not, we don't know how many people use registrar, I think it's not very critical to have duplicates. The longer we wait for 4.6, the more we need to update |
Oops... I thought this change was for the 4.6 branch. Well, IMO we should make this change in 4.6. Bonfire is probably relatively popular, so if we "fix" this problem in a patch release, we will make all applications that rely on it broken. Targeting v4.6 will give time for the project to work out a fix. There may be other projects that use a similar hack. Minor releases in the CI4 world have made everyone accustomed to carefully reviewing the change log or upgrade notes. |
3144e1c
to
0956afd
Compare
Okay. Changed target to 4.6. |
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.
Thanks!
0956afd
to
eb53f86
Compare
Thank you all for your reviews! |
Description
See #9069
Any Registrar class should be a class that simply returns an array without side effects.
If a Registrar file instantiates any Config class, it runs Auto-Discovery again during Auto-Discovery, and duplicate runs are not expected.
This PR checks for duplicate Registrar Auto-Discovery runs, and throws Exception.
How to Test
Checklist: