Commit graph

10 commits

Author SHA1 Message Date
6aa925992f Fetch all accounts users for the user report, not just ticket owners
fetch_users previously only surfaced users who appeared as ticket
owners. Add list_users(limit, offset) to hit the accounts user-list
endpoint directly with raw limit/offset params -- the generated OpenAPI
wrapper only supports page, which this endpoint silently ignores.
fetch_users now paginates that list and hydrates each entry with
get_user_detailed_info to keep the existing email/phone/address columns.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-19 17:29:21 +03:30
4946ec8c8f Wire real Accounts/Advertising data into the standalone report endpoint
fetch_users/fetch_tickets were placeholder stubs returning empty
lists, so the generated Excel was always empty. Wire them to the
existing utils.accounts_client / utils.advertising_client integrations
(same ones the bundled-zip report on master uses), and update
UserReport/TicketsReport to the real Account/Ticket field names
instead of the old mock dict shape. Drop the now-unused local OAuth
helper in favor of each client's own client-credentials flow.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-19 17:25:59 +03:30
1376ead48a Revert reports app to standalone single-report generation
Restore the original report_type-driven endpoint (users/tickets picked
individually via serializer + orchestrator) that was replaced by the
bundled zip export in b293509, on top of current master.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-19 17:13:53 +03:30
fa34e459cb add fallback 2026-08-01 10:15:23 +03:30
7e04edbc48 remove unnecessary clients 2026-08-01 09:27:10 +03:30
3c78cd2205 update the labels 2026-06-13 16:42:56 +03:30
d806136b3f update the labels 2026-06-13 16:42:56 +03:30
b293509e20 generate a zip file containing two reports of users and tickets 2026-06-07 12:38:04 +03:30
db55ed87b5 change url 2026-06-01 13:09:19 +03:30
980e0e41ca init project, add excel generation and mock api calls 2026-05-20 15:15:37 +03:30