-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Regression: Various search provider fixes #10591
Regression: Various search provider fixes #10591
Conversation
…rch is already triggered
@tkurz any idea about this exception? We keep seeing it on our Open Community server (open.rocket.chat):
|
I've also updated the name since the feature was added in v0.64, so any additional fixes are just regressions. |
Hi @graywolf336, regarding the error. It happens when deleting a message, in this function:
This can only happen, if m is set (and a message), which I took as given. If this is not the case, we have a problem here (as the search index does not know which message is deleted. If this can happen (and a quick lookup of the The code will then look like this:
|
@graywolf336 No, Message class doesn not emit event (I think because cache is not true).. Any other ideas? |
I guess we should fix it by calling the callback this way
I mean, it doesn't make any sense calling |
@sampaiodiego sounds like a solid plan to me. Should we go ahead and make this commit to his branch? |
@graywolf336 I think so.. It can part of this pull request |
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.
just so nobody merges this accidentally:
please add the fix to the afterDeleteMessage
callback
Just to get it right, you do the change right? |
If you have time, feel free to |
…b.com/chatpal/Rocket.Chat into hotfix/search-provider-fixes-for-0.64
Hi @graywolf336 |
@@ -25,7 +25,7 @@ RocketChat.deleteMessage = function(message, user) { | |||
} | |||
|
|||
Meteor.defer(function() { | |||
RocketChat.callbacks.run('afterDeleteMessage', deletedMsg); | |||
RocketChat.callbacks.run('afterDeleteMessage', deletedMsg || { _id: message._id }); |
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.
@sampaiodiego should this call to the callbacks be ran outside the if (keepHistory)
? Because if that setting is true, the message is being deleted to the user's perspective even though we aren't technically deleting it.
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.
right.. since the message will be suppressed from any endpoint, we should call the callback. I'll change it to reflect that.
* develop: Regression: Various search provider fixes (RocketChat#10591) Fix /api/v1/settings.oauth not sending needed info for SAML & CAS (RocketChat#10596) Fix the Apps and Livechats not getting along well with each other (RocketChat#10598) [FIX] Missing "Administration" menu for users with some administration permissions (RocketChat#10551) [FIX] Member list search with no results (RocketChat#10599) Adds Visual Studio Code debugging configuration (RocketChat#10586) [FIX] Integrations with room data not having the usernames filled in (RocketChat#10576)
* goalify: (104 commits) Regression: Various search provider fixes (RocketChat#10591) Supplement TOS and privacy policy texts for use within server instances Fix /api/v1/settings.oauth not sending needed info for SAML & CAS (RocketChat#10596) Fix the Apps and Livechats not getting along well with each other (RocketChat#10598) [FIX] Missing "Administration" menu for users with some administration permissions (RocketChat#10551) [FIX] Member list search with no results (RocketChat#10599) merge vi-VN and vi json Add and enhance translations Update gitlab, npm package lock, include current server update script Adds Visual Studio Code debugging configuration (RocketChat#10586) [FIX] Integrations with room data not having the usernames filled in (RocketChat#10576) fixed problems with margin negative (RocketChat#10558) Add some information regarding Zapier and Bots to the integrations page (RocketChat#10574) Added target="_blank" to homepage and support link. (RocketChat#10575) [FIX] Stop Firefox announcement overflowing viewport (RocketChat#10503) [FIX] Wordpress oAuth authentication wasn't behaving correctly (RocketChat#10550) Fix inconsistent response of settings.oauth endpoint (RocketChat#10553) Regression: Remove added mentions on quote/reply (RocketChat#10571) Fix the attachments and fields incorrectly failing on validation (RocketChat#10573) Deps update (RocketChat#10549) ...
This PR provides smaller fixes for the new search provider concept + chatpal (its reference implementation), which are:
Would be great if you can approve the PR and merge it, @sampaiodiego @rodrigok @graywolf336