Skip to content
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

Feature/2020.q3.dev #184

Merged
merged 25 commits into from
Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5c427d5
🔌 Fix Jitsi connector
RomaricMourgues Aug 25, 2020
1731340
🛠 Fix removing pending members
RomaricMourgues Aug 25, 2020
bafc409
Fix drag-drop permissions
RomaricMourgues Aug 25, 2020
c21cdc1
Fix drag-drop permissions and notifications errors
RomaricMourgues Aug 26, 2020
114c26c
🛠 Fix channels drag-drop permissions and notifications errors
RomaricMourgues Aug 26, 2020
ff77ee5
Fix user secondary mail auto-import to workspaces
RomaricMourgues Aug 26, 2020
d3cbe54
Fix user secondary mail auto-import to workspaces
RomaricMourgues Aug 26, 2020
f5b9ec3
Fix typos
RomaricMourgues Aug 26, 2020
2a40927
Fx typos
RomaricMourgues Aug 26, 2020
2459cc4
Merge branch 'feature/2020.Q3.dev' into feature/2020.Q3.dev
RomaricMourgues Aug 26, 2020
c6f01b7
🛠 Fix typos
RomaricMourgues Aug 26, 2020
072ef63
Fix substr to mb_substr and add try-catch to queue
RomaricMourgues Aug 27, 2020
6a21296
Merge branch 'feature/2020.Q3.dev' of https://github.com/TwakeApp/Twa…
RomaricMourgues Aug 27, 2020
023ca14
🔌 Fix Jitsi connector
RomaricMourgues Aug 25, 2020
666f2a8
🛠 Fix removing pending members
RomaricMourgues Aug 25, 2020
9696970
Fix drag-drop permissions
RomaricMourgues Aug 25, 2020
aeb7157
Fix drag-drop permissions and notifications errors
RomaricMourgues Aug 26, 2020
b347ce0
Fix user secondary mail auto-import to workspaces
RomaricMourgues Aug 26, 2020
0c3612a
Fix typos
RomaricMourgues Aug 26, 2020
bed43c2
Fx typos
RomaricMourgues Aug 26, 2020
c9dc051
🛠 Fix channels drag-drop permissions and notifications errors
RomaricMourgues Aug 26, 2020
486a939
Fix substr to mb_substr and add try-catch to queue
RomaricMourgues Aug 27, 2020
e718906
🛠 Fix typos
RomaricMourgues Aug 26, 2020
9898ef5
Merge branch 'feature/2020.Q3.dev' of github.com:RomaricMourgues/Twak…
RomaricMourgues Aug 27, 2020
98b1090
Merge branch 'feature/2020.Q3.dev' of https://github.com/TwakeApp/Twa…
RomaricMourgues Aug 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion twake/backend/core/src/Twake/Core/Command/MappingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,15 @@ protected function execute()
"_source" => Array(
"includes" => Array("id"),
"excludes" => Array(
"firstname", "lastname", "username", "language", "creation_date", "groups_id", "workspaces_id"
"firstname", "lastname", "username", "email", "language", "creation_date", "groups_id", "workspaces_id"
)
),
"properties" => Array(
"id" => Array("type" => "keyword"),
"firstname" => Array("type" => "text"),
"lastname" => Array("type" => "text"),
"username" => Array("type" => "text"),
"email" => Array("type" => "text"),
"language" => Array("type" => "keyword"),
"creation_date" => Array("type" => "date"),
"workspaces_id" => Array("type" => "keyword"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@ protected function execute()
$user_id = $dispatch_informations["user_id"];
$message_id = $dispatch_informations["message_id"];

$message_system->dispatchMessage(
$channel,
$application_id,
$user_id,
$message_id
);
try{
$message_system->dispatchMessage(
$channel,
$application_id,
$user_id,
$message_id
);
}catch(\Exception $e){
error_log($e->getMessage());
}

$queues->ack("message_dispatch_queue", $queue_message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function pushNotification(
foreach ($keywords as $keyword) {
$keyword = trim($keyword);
$keyword = " " . $keyword . " ";
if (strrpos(strtolower($title . " " . $text . " "), strtolower($keyword)) >= 0) {
if (mb_strrpos(mb_strtolower($title . " " . $text . " "), mb_strtolower($keyword)) >= 0) {
$present = true;
}
}
Expand Down Expand Up @@ -301,8 +301,8 @@ public function pushDevice($user, $text, $title, $badge = null, $data = null, $d
$token = $device->getValue();

$this->pushDeviceInternal($device->getType(), $token,
substr($text, 0, 100) . (strlen($title) > 100 ? "..." : ""),
substr($title, 0, 50) . (strlen($title) > 50 ? "..." : ""),
mb_substr($text, 0, 100) . (mb_strlen($title) > 100 ? "..." : ""),
mb_substr($title, 0, 50) . (mb_strlen($title) > 50 ? "..." : ""),
$badge,
$data,
$doPush
Expand All @@ -315,7 +315,7 @@ public function pushDevice($user, $text, $title, $badge = null, $data = null, $d
public function pushDeviceInternal($type, $deviceId, $message, $title, $badge, $_data, $doPush = true)
{

if (strlen($deviceId) < 32) { //False device
if (mb_strlen($deviceId) < 32) { //False device
return;
}

Expand Down
1 change: 1 addition & 0 deletions twake/backend/core/src/Twake/Users/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ public function getAsArray()
public function getIndexationArray()
{
$return = Array(
"email" => $this->getEmail(),
"username" => $this->getUsername(),
"firstname" => $this->getFirstName(),
"lastname" => $this->getLastName(),
Expand Down
10 changes: 10 additions & 0 deletions twake/backend/core/src/Twake/Users/Services/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ public function search($options = Array())
)
);

$should[] = Array(
"bool" => Array(
"filter" => Array(
"regexp" => Array(
"email" => $name . ".*"
)
)
)
);

$should[] = Array(
"bool" => Array(
"filter" => Array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class UserListManager extends React.Component {
return '';
}

if (item.email && !item.thumbnail) {
if (item.email && !item.username) {
item = item.email;
}

Expand Down
7 changes: 4 additions & 3 deletions twake/frontend/src/app/services/languages/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,8 @@ export default {
'Invite your collaborators into your workspace.',
'scenes.app.channelsbar.public_channel_label': 'Public channel',
'scenes.app.channelsbar.private_channel_label': 'Private channel',
'scenes.app.channelsbar.private_channel_message': 'This is a public channel, all the workspace will be invited !',
'scenes.app.channelsbar.private_channel_message':
'This is a public channel, all the workspace will be invited !',
'scenes.app.channelsbar.save_channel_button': 'Save',
'scenes.app.channelsbar.sending_message_instruction': 'Send a first message in a discussion',
'scenes.app.channelsbar.tutorial_alert': 'Never show this frame again?',
Expand Down Expand Up @@ -1250,7 +1251,7 @@ export default {
'scenes.app.popup.appsparameters.pages.application_title': 'Application',
'scenes.app.popup.appsparameters.pages.apps_connectors_small_text':
'Create and administer your applications and connectors.',
'scenes.app.popup.appsparameters.pages.apps_title': 'Your apllications and connectors',
'scenes.app.popup.appsparameters.pages.apps_title': 'Your applications and connectors',
'scenes.app.popup.appsparameters.pages.automatique_label': 'Automatic',
'scenes.app.popup.appsparameters.pages.automatique_option_information':
"If you activate 'Automatic', this application will automatically be added to the next workspaces of this company.",
Expand All @@ -1262,7 +1263,7 @@ export default {
'scenes.app.popup.appsparameters.pages.categories_label': 'Categories',
'scenes.app.popup.appsparameters.pages.company_label': 'Company owner',
'scenes.app.popup.appsparameters.pages.configuration_label': 'Configuration',
'scenes.app.popup.appsparameters.pages.create_app_button': 'Create an apllication',
'scenes.app.popup.appsparameters.pages.create_app_button': 'Create an application',
'scenes.app.popup.appsparameters.pages.create_my_app': 'Create my application',
'scenes.app.popup.appsparameters.pages.creation_app_instruction':
'Please confirm the following information before creating your app.',
Expand Down