Übersetzung Reactions #5

Closed
opened 2023-05-08 17:09:51 +02:00 by sven.seeberg · 3 comments
Owner
No description provided.
Contributor

RocketChat

In RC, a message might have a reactions key with the following object:

{
  ":smile:": {
    "usernames": [
      "rocketchat.internal.admin.test"
    ]
  },
  ":squid:": {
    "usernames": [
      "rocketchat.internal.admin.test"
    ]
  },
  ":bee:": {
    "usernames": [
      "rocketchat.internal.admin.test"
    ]
  },
  ":ant:": {
    "usernames": [
      "rocketchat.internal.admin.test"
    ]
  }
}

Matrix

Freshly merged event type:
https://github.com/matrix-org/matrix-spec-proposals/pull/2677

{
  "type": "m.reaction",
  "content": {
    "m.relates_to": {
      "rel_type": "m.annotation",
      "event_id": "$some_event_id",
      "key": "👍"
    }
  }
}

Migration

We need a mapping for emoji-shorcodes to unicodes (and map the usernames)

## RocketChat In RC, a message might have a `reactions` key with the following object: ```json { ":smile:": { "usernames": [ "rocketchat.internal.admin.test" ] }, ":squid:": { "usernames": [ "rocketchat.internal.admin.test" ] }, ":bee:": { "usernames": [ "rocketchat.internal.admin.test" ] }, ":ant:": { "usernames": [ "rocketchat.internal.admin.test" ] } } ``` ## Matrix Freshly merged event type: https://github.com/matrix-org/matrix-spec-proposals/pull/2677 ```json { "type": "m.reaction", "content": { "m.relates_to": { "rel_type": "m.annotation", "event_id": "$some_event_id", "key": "👍" } } } ``` ## Migration We need a mapping for emoji-shorcodes to unicodes (and map the user**names**)
HueHe added spent time 2023-05-08 18:36:58 +02:00
30 minutes
Contributor

Thumbs-Up/Down+Checkbox sollten das wichtigste sein, evtl mal Statistik der benutzten Emojis generieren, dann sehen wir, wie viel aufwand es manuell waere

Thumbs-Up/Down+Checkbox sollten das wichtigste sein, evtl mal Statistik der benutzten Emojis generieren, dann sehen wir, wie viel aufwand es manuell waere
Contributor

Die Statistik laesst sich berechnen mit jq -s 'map(select(has("reactions")) | .reactions | map_values(.usernames | length)) | reduce (.[] | to_entries[]) as {$key,$value} ({}; .[$key] += $value) | to_entries | sort_by(.value) | reverse | from_entries' < rocketchat_message.json.

Die Statistik laesst sich berechnen mit `jq -s 'map(select(has("reactions")) | .reactions | map_values(.usernames | length)) | reduce (.[] | to_entries[]) as {$key,$value} ({}; .[$key] += $value) | to_entries | sort_by(.value) | reverse | from_entries' < rocketchat_message.json`.
HueHe added spent time 2023-09-08 21:12:52 +02:00
1 hour 30 minutes
HueHe deleted spent time 2023-09-08 21:13:17 +02:00
- 1 hour 30 minutes
HueHe added spent time 2023-09-08 21:13:31 +02:00
1 hour 30 minutes
HueHe closed this issue 2023-11-14 15:30:58 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 2 hours
HueHe
2 hours
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
NB-Public/rocketchat2matrix#5
No description provided.