• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / profile-images / 16800280511

07 Aug 2025 09:13AM UTC coverage: 88.926% (+24.0%) from 64.967%
16800280511

push

github

web-flow
feat: Hook to events arch (#98)

* refactor: Accept visibility timeout in the receive messages options

* feat: Remove producer, consume events from event-driven queue

* refactor: Separate consumer concerns

* fix: Make it build

* test: Add tests for the new logic components

* test: Adapt consumer tests

* feat: Use DLQ instead of publishing to a retry queue

* refactor: Require image processor needed env vars

* refactor: Use ?? instead of ternary for creating content client

* test: Unskip +fix test

* chore: Add TODO

* feat: Delete messages in batch

* refactor: Create two queue components

* chore: Missing default env vars

* feat: Init aws local stack on dc to make the tests pass

* fix: Resolve yarn lock conflicts

* style: Missing EOF

Signed-off-by: Kevin Szuchet <31735779+kevinszuchet@users.noreply.github.com>

* feat: On schedule processing, process images immediately

* chore: Remove TODOs

* chore: Update lock

* chore: Update lock

* chore: Update lock

* chore: Upgrade lock to fix tests

* feat: Safe checks with tests

* feat: Missing service and resources for local testing

* test: Apply testing standards

* test: Add missing tests for sqs and storage

* fix: Use entityId instead of entity.id from message

* feat: entity fetching optimization + extra logs

* fix: Revert some of the last changes

* test: Adapt tests

* chore: Improve logs

* docs: Add seq diagram in the README

* test: Enhance and standarize integration test file

* chore: Add comment

* feat: Delete messages from DLQ after MAX DLQ retries

* chore: PR Feedback

* test: PR feedback

---------

Signed-off-by: Kevin Szuchet <31735779+kevinszuchet@users.noreply.github.com>

108 of 137 branches covered (78.83%)

Branch coverage included in aggregate %.

208 of 219 new or added lines in 12 files covered. (94.98%)

5 existing lines in 1 file now uncovered.

422 of 459 relevant lines covered (91.94%)

4.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/utils/array.ts
1
export function shuffleArray<T>(array: T[]): T[] {
5✔
2
  for (let i = array.length - 1; i > 0; i--) {
13✔
3
    const j = Math.floor(Math.random() * (i + 1))
26✔
4
    ;[array[i], array[j]] = [array[j], array[i]]
26✔
5
  }
6
  return array
13✔
7
}
8

9
export function chunks<T>(items: T[], chunkSize: number): T[][] {
5✔
10
  if (items.length === 0) {
1!
NEW
11
    return []
×
12
  }
13

14
  return items.reduce(
1✔
15
    (acc: T[][], curr: T) => {
16
      if (acc[acc.length - 1].length === chunkSize) {
2!
NEW
17
        acc.push([curr])
×
18
      } else {
19
        acc[acc.length - 1].push(curr)
2✔
20
      }
21
      return acc
2✔
22
    },
23
    [[]]
24
  )
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc