Skip to content

feat(planninq): build project-data-export - #1250

Open
rubenvdlinde wants to merge 2 commits into
developmentfrom
quality/build-project-data-export-b2
Open

rubenvdlinde wants to merge 2 commits into
developmentfrom
quality/build-project-data-export-b2

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Round 2 of openspec/changes/project-data-export.

Tasks done (written, not yet run against an instance, so left unchecked)

  • 2.2 Newman: a "Project Export" folder in tests/integration/planninq.postman_collection.json: a member's POST answers 403, a manager's answers 202 {status: queued}, an unknown project 404, with throwaway users and clean-up. newman run --folder "Project Export" loads all 10 requests.
  • 4.3 Playwright: tests/e2e/project-export.spec.ts: a manager starts an export; a member does not see the action; the zip holds project A's 3 tasks, the PDF under attachments/<key>/, the two comments under the task uuid and a manifest row of 3 stored; the completed export on the audit trail with the profile and object count; the ready notification links to the folder with the zip highlighted. The job runs through occ background-job:execute (occ prefix from shared-instance.ts), the zip is read through WebDAV.

Tasks left and why

  • "A manager without the export verb is refused" runs only where PLANNINQ_E2E_EXPORT_DENIED_USER names a user whose OpenRegister role grants read but not export on task: planninq's register declares no export verb, so export falls back to read for every reader.
  • 5.3 is an archive-time step.
  • All code tasks were already on development.

Tests added

  • 7 Newman requests with assertions (plus 3 set-up/clean-up)
  • 3 Playwright tests in 1 file (playwright test --list loads them; eslint clean)

Suite before/after

  • PHPUnit: 1253 / 1253, 0 failures (no PHP changed).

Generated by Claude Code

Round 2: the Newman requests of task 2.2 (member 403, manager 202) and
tests/e2e/project-export.spec.ts for task 4.3.

Assisted-by: ClaudeCode:claude-opus-5-5

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant