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
Dont index groups (fixes distributed develop) #2572
Dont index groups (fixes distributed develop) #2572
Conversation
This pull request has conflicts ☹ |
d3ce932
to
7133bd0
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've verified that this fixes #2410 and correctly lists/filters the existing groups in the admin interface.
@KatrinIhler Does this require a reindex? If so that should be added to the docs. Also, something in the release notes. |
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'm amused that you removed a ton of code, added very little, and managed to preserve the same basic behaviour. Makes me wonder how useful indexing groups ever was... :)
I haven't tested this thoroughly, but it looks right and my basic tests pass. Will try and get to this again next week, if someone else wants to merge this prior to that feel free.
I thought about this and I don't think it does? With this change, the groups will be directly picked from the database and new or updated groups won't be indexed, but it shouldn't matter whether you still have some old groups in the index, since they will never be queried, right? Of course a rebuild would be cleaner, but I don't think it's necessary, unless I missed something. |
I think the answer you're looking for is: Not very. :D |
I think you're probably right. Ok, let's leave this then. |
<provide interface="org.opencastproject.index.service.message.GroupMessageReceiverImpl"/> | ||
</service> | ||
|
||
<reference name="message-broker-receiver" |
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.
Is this the only module not on an admin node requiring the message broker modules? If so, we should remove them from the assemblies as well.
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.
Possible, but I don't have time to find that out right now. Can we leave this for later? :D
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.
The admin-ui-index
, scheduler-impl
, external-api-index
, conductor
, live-schedule-impl
, event-comment
, authorization-manager
, and themes
modules make OSGi references to org.opencastproject.message.broker.api.MessageReceiver
. A quick move of the message-broker modules into the admin* and allinone profiles yields booting builds. I haven't had time to do anything other than make sure they start though...
Edit: filed at #2599
…ded on the admin node. This *appears* to work for me in terms of booting the nodes, but I have not had time to test more in depth than that.
…he admin node. This *appears* to work for me in terms of booting the nodes, but I have not had time to test more in depth than that.
I recently (?) broke distributed develop by making the userdirectory module depend directly on index modules that only exist on the admin node (while userdirectory is part of the opencast core).
Instead of ripping apart the userdirectory module to make this work, I decided that indexing groups doesn't make much sense anyway, since most institutions don't have that many groups, and we don't index the users right now, which there are probably more of.
So with this PR, we now get the groups directly from the database, and everything regarding group indexing in Elasticsearch is removed. Mostly everything works the same as before, with some minor exceptions:
I also fixed the group creation in the frontend since it was just one line, now users get correctly added to new groups again.
This should fix #2410, but I didn't test this, maybe somebody else can?