-
Notifications
You must be signed in to change notification settings - Fork 781
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: UpdateOnlyTextField incompatibility with DependConstraint #7879
Conversation
@kumy that's probably part of the solution, only issue is more constraints use
|
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/ComparedToFieldConstraint.php
Outdated
Show resolved
Hide resolved
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/AllOrNoneConstraint.php
Outdated
Show resolved
Hide resolved
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/SingleSelectConstraint.php
Outdated
Show resolved
Hide resolved
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/BaseConstraint.php
Outdated
Show resolved
Hide resolved
@AdSchellevis I've found potential other places. Please double-check 🙏 (new commits are untested sorry) I'm also confused by a code part, please see my comment in code |
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/AllOrNoneConstraint.php
Outdated
Show resolved
Hide resolved
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/BaseConstraint.php
Outdated
Show resolved
Hide resolved
@kumy left some notes, but I like the direction this is going. Nice work. |
8c1a704
to
2bdbbf3
Compare
src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php
Outdated
Show resolved
Hide resolved
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/ComparedToFieldConstraint.php
Show resolved
Hide resolved
src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php
Outdated
Show resolved
Hide resolved
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/BaseConstraint.php
Outdated
Show resolved
Hide resolved
src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php
Outdated
Show resolved
Hide resolved
src/opnsense/mvc/tests/app/models/OPNsense/Base/Constraints/ComparedToFieldConstraintTest.php
Outdated
Show resolved
Hide resolved
dab0e8b
to
1651ff8
Compare
@kumy after a couple of busy weeks, I thought to take another look at this. Looking at the code, I think it's mostly ready to merge, I'm just not sure about the naming of |
Thanks! Ok I will rename
Agree, but such change should be separated from this PR 🙂 |
Co-authored-by: Franco Fichtner <[email protected]>
@AdSchellevis Thanks for the review 🤓
BTW, if the
|
@kumy not sure why I made it uppercase back in 2016, but if the default is lowercase, I don't mind changing that. Thanks for taking the time to finish this PR |
Thanks! 🕺
If you want to change it, I let you do it - it'll probably be easier like that. I bet the "uppercase" one lives in many places/repositories... Any chance you have a bit of time for the other ones? Thanks |
renamed the phpunit file in 84437b3 It looks like xymon-client is not very big and seems to build without issues on my end, I've added it to the build (opnsense/tools@88e547d) assuming @fichtner is ok with it since it builds on my end. It has been pretty busy lately, so it probably slipped our attention. |
Closes: #7878
Fix applied manually on my test VM and work as I expect :)
@AdSchellevis is it what you expected? Is there some unit tests to run/adjust? Do you think of any other place the same change should happen?