Commit 3384b30
authored
Fix sorting activities when they are grouped in either part grouping or livestreaming (#5635)
* Add sorting upsert algorithm
* With webchat:internal:position
* Update comment
* Redux store backcompat
* Add given-when-then
* Allow HowTo without position
* Upsert livestream activity based on sequence number
* Should not move livestream if timestamp is undefined
* Fix tests
* Clean up Object.freeze()
* Fix path
* Allow reuse position
* FIx update activity channel data
* No reorder when concluding livestream does not have timestamp
* Upsert as-is if no HowTo.position
* Always reuse position including livestreaming
* Fix @id
* Fix typing indicator test with duplicate activity ID
* Fix typing indicator scrolling test with duplicate activity ID
* Fix typing indicator test with duplicate livestream activity ID
* Fix collapsible test have bad livestreaming metadata
* Remove CoT
* Skip activity for finalized livestream
* Update position for plain activity
* Remove timestamp: undefined
* Update timestamp algorithm
* Sort by logical timestamp, followed by local timestamp
* Fix test: livestream finalize should move it to bottom
* Honor timestamp on finalizing livestream activity
* Fix dupe ID
* Add a clock tick before sending another message
* Patch all activities with internal channel data and fix typing entries for reproducibility
* Clean up
* Update snapshots
* Fix test: finalizing livestream will update timestamp
* Add tick between outgoing activities
* Fix unit test
* Fix typings
* Rename perma ID to local ID
* Add comment
* Fix test: part grouping will always have updated timestamp
* Rename permaId to localId
* Fix test: part grouping should use max timestamp
* Initial delete activity
* Rename activityInternalId to activityLocalId
* Add clean up after delete
* Delete livestream activities
* Delete activities in part grouping with livestream
* Reorganize tests
* Wire up delete activity
* Add clientActivityIdToLocalId index
* Update doc
* Fix ESLint
* Add *.spec.* and *.test.*
* Revert
* Clean up comment
* Use standard way to parse @id
* Remove early return
* Add multiple part grouping test
* Remove unnecessary findBeforeAfter
* Typo
* Update doc
* Fix part grouping ID
* Update test: position to undefined should be unmoved
* Refactor property types
* Use property functions
* Fix part ID
* Local ID is blank node identifier
* Use node identifier schema for local ID
* Fix import path
* Fix local ID
* Clean up
* Add typing to Map
* Clean up
* Clean up with generateLocalIdInActivity
* Remove unused BlankNodeIdentifier
* Clean up
* Use queryLocalIdFromActivity for generateLocalIdInActivity
* Patch activity on POST_ACTIVITY_PENDING
* Update PR number
* Incorporate PR changes
* Add related read1 parent 1ebbb68 commit 3384b30
File tree
99 files changed
+4670
-798
lines changed- __tests__/html2
- activityGrouping
- activityOrdering
- activity
- livestream
- part-grouping
- typing
- docs
- packages
- api/src/providers
- ActivitySendStatus
- ActivityTyping
- private
- GroupActivities/private
- component/src/Middleware/ActivityGrouping/ui/PartGrouping
- core
- src
- activity
- graph
- reducers
- activities
- sort
- private
- property
- private
- sagas
- types
- internal
- test-d
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
99 files changed
+4670
-798
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
Lines changed: 108 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | | - | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | | - | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
0 commit comments