Commit Graph
19 Commits
Author SHA1 Message Date
Ben Irvin 45a635ffe7 test(content-manager): stabilize dynamic zone insert e2e on Firefox (#26450) 2026-05-27 17:38:43 +02:00
Ben Irvin 8a09307144 test(e2e): fix race conditions with drag methods for each browser (#26205) 2026-05-05 09:41:50 +02:00
Nico André 52b8fd9e3d feat(admin): api token supports admin permissions and admin user ownership (#25657) 2026-04-29 17:57:36 +02:00
Ben Irvin e94abcb823 test(e2e): fixes for race conditions and file resets (#26019) 2026-04-20 18:38:46 +02:00
Ben Irvin bac520e9f8 fix(data-transfer): fix large transfer crashes; show transfer progress (#23479)
* enhancement: update progress per chunk

* fix: check stageprogress exists to make ts happy

* chore: split progress tracker into two methods

* test: fix lint

* enhancement: display readable times

* fix: speed indication for assets

* fix: restore speed indicator and fix double counting

* chore: clean up code

* fix: data transfer memory leak

* fix: yarn.lock

* chore: fix memory logging

* ci: complex project remote transfer

* enhancement: optimized transfer mode

* test(cli): data transfer and env passthrough

* chore: only send one message warning of legacy mode

* enhancement: show transfer totals and estimated time

* test(cli): fix deterministic transfer test files

* fix: push and pull shared utils backwards compatibility

* fix(data-transfer): extract legacy asset chunk parsing and tighten transfer logging/test coverage

* enhancement: checksum negotiation

* enhancement: show skipped file warnings on client

* fix: transfer diagnostics

* test: fix open handle

* fix: clear stall timeout for assets

* chore: fix misleading comments and variables

* test: fix misleading test

* test: fix typo

* test: make checks deterministic, less flaky

* enhancement(data-transfer): speed up asset totals; widen assets start reply window on remote pull

* fix(data-transfer): harden WebSocket JSON serialization for transfer frames

* fix(data-transfer): more transfer hardening

* test: fix test imports

* fix: await async write

* fix(data-transfer): resolve push transfer deadlock and harden async writes

- Extract createAssetsDestinationWritable so Writable callbacks run before
  uploadStream completes (same WS batch as PassThrough chunks).
- Add writable-async-write (write callback + drain/finished race; avoid hang
  on destroy).
- Wire push/pull, remote-source, file & directory sources to shared write().
- Fire-and-forget pull flush: Promise.resolve(flush).catch(onError); guard
  missing stream inside try.
- Add regression tests (assets writable, writable-async-write, handler checks).

* fix(data-transfer): write push stream batches sequentially

Use a for-loop with await write() instead of Promise.all over msg.data
so non-asset stages respect one in-flight write per objectMode Writable
and backpressure from writable-async-write.

- Validate minChunksForBackpressure in assertReadStreamBackpressure
- Add engine test for non-Buffer asset chunk byte progress (counts as 1)
- Assert push.ts keeps sequential msg.data handling in static handler test

* fix(data-transfer): align push streamAsset with remote-source and harden tests

- Push handler: combine stream/end under one branch, error when start is missing
  or action is invalid; shorten stage write comments.
- Engine version-matching tests: use a fresh createDestination() per engine so
  parallel transfers do not share destination writables (MaxListeners warnings).
- File destination tests: mock createWriteStream with a new Writable per call.
- CLI transfer tests: mock progress.stream so transfer::finish runs after transfer
  and clears the progress setInterval (fixes Jest worker hang).
- Misc test cleanup: assets-destination timeout clearTimeout, collect listeners,
  writable-async-write teardown; tighten push/static test descriptions.

* test: remove parity test

* fix(data-transfer): harden collect() and stabilize transfer tests

- collect(): settle once, remove listeners on resolve/reject, avoid double completion
- engine tests: add expectHeapGrowthWithinNoise for heap smoke checks
- CLI transfer tests: console spies in beforeAll; jest.restoreAllMocks in afterAll
- stream test: remove removeAllListeners workaround
2026-04-20 16:08:05 +02:00
bfcef1911b enhancement: add list & delete admin user cli commands (#23022)
* enhancement: add delete user cli command

* fix: admin service reference to proper deleteById

* fix: add delete command to exported functions

* enhancement: add the list users

* fix: handle last super admin error gracefully

* enhancement: pr feedback and add active/block user commands

* fix: clean up boolean casting on active and block

* enhancement: add list-users command alias "list"

* test(cli): add user cli commands

* chore: fix linting

* test: reset stdin after tests

* chore: remove bad comment

* fix(cli): boolean admin flags, async inquirer, and stable list-users / CLI fixtures

---------

Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2026-04-16 14:39:34 +02:00
Mark Kaylor f50134dbae fix: increase test timeout 2026-04-09 10:59:18 +02:00
Ben Irvin 21402c2d26 feat(data-transfer): add directory export/import format (#25867) 2026-04-02 15:07:35 +02:00
Ben Irvin e26d2748a2 test(cli): use snapshots for list output (#25898)
* test(cli): openapi generations

* test(cli): use snapshots for list output
2026-04-02 13:10:38 +02:00
Gouttfi 3ee39f86ed feat: expand accordion by default when inserting a new component in a document (#24230) 2026-03-05 16:32:54 +01:00
Ben Irvin 1500b7cec6 security: upgrade to tar 7 (#25380) 2026-02-11 11:59:03 +02:00
39a09ca4c2 fix: validation issue in hidden fields when publishing (#24482)
Co-authored-by: Adrien Lepoutre <thewebsdoor@gmail.com>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
2025-12-21 18:21:16 +00:00
Ben Irvin 6cc814a191 test: move app-template to common dir 2025-12-03 16:18:46 +01:00
Ben Irvin bf3086322b test: allow exact navtoheader 2025-12-02 00:28:15 +01:00
Ben Irvin 416a81b44e fix: playwright storage state 2025-11-20 17:19:52 +01:00
Ben Irvin 82c96c4bae test: add create-user test with db reset util 2025-11-18 17:30:14 +01:00
Ben Irvin 5dbdc515f8 test: fix the cli import 2025-11-18 16:58:38 +01:00
Ben Irvin bb00d5e691 chore: merge test runners 2025-11-18 16:24:27 +01:00
Ben Irvin 2f1e80a196 revert: move back test files 2025-11-18 15:15:03 +01:00