-
Notifications
You must be signed in to change notification settings - Fork 18
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
Index configuration overrides DO subsite field if NULL value #68
Index configuration overrides DO subsite field if NULL value #68
Conversation
8da5321
to
c500f1d
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.
Some minor tidy ups but the idea makes sense - I'd like some sort of documentation around this as well, so if there's space in the ReadMe to add a line that says something like:
"If you are using subsites, but your object doesn't have a subsite ID, it will be included inthe index if it is explicitly added, e.g. "
Then that would be awesome
c8e8a61
to
7a55f29
Compare
1561526
to
4a414c1
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.
Admin change works fine on local.
Hi @mark-a-j-adriano - with the PHP8 upgrade this PR has gone quite stale I'm afraid 😣 do you want to take another swing at it, or rather convert it to an issue for someone else to tackle? |
9d2a57a
to
18af2bd
Compare
18af2bd
to
0f2e2fb
Compare
@andrewandante -> Looks like @satrun was able to add the test fix. Kindly check this again. @satrun Thanks for the assist. |
Hi team! If you need this for PHP7.X then you'll need to point it at the |
Fix for version 2 and PHP8 only. I will remove travis :) |
I see that 🙂I will fix GitHub actions |
Some failures here - I think there is some linting to do, and also the subsites module needs to be included via composer perhaps? |
if (!isset($explicitClasses[$doc->getDataObject()->ClassName])) { | ||
unset($indexes[$indexName]); | ||
|
||
break; |
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.
Won't this mean that if it's in the second index, but not the first, it won't be indexed appropriately?
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 will test this scenario and update PR.
8128e4d
to
9529cba
Compare
98a5286
to
a8b918a
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.
Code looks good to me, thanks for persisting! Please squash up your commits and then I'd be happy to merge 😄
e42d05c
to
b945b6a
Compare
Background:
DataObject does not have a SubsiteID field and is not being indexed even if explicitly defined in the Subsite Config.
Added Solution: