Commit graph

18 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
f8aa2ee6ca FIX(admin): adding req
adding req
2026-08-01 19:31:59 +03:30
972649e735 FIX(admin): adding req
adding req
2026-08-01 19:07:27 +03:30
94163f826a FIX(admin): adding Dockerfile
adding Dockerfile
2026-08-01 18:49:05 +03:30
7f7b1d6769 FIX(admin): adding Dockerfile
adding Dockerfile
2026-08-01 18:42:23 +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
f5a68ccaee env update 2026-06-09 17:38:33 +03:30
2c715c614c edit example env 2026-06-07 13:15:11 +03:30
b293509e20 generate a zip file containing two reports of users and tickets 2026-06-07 12:38:04 +03:30
ebffc9db61 add advertising client 2026-06-07 11:34:17 +03:30
c9b18e8d3a FEATURE(crm-backend): add other service clients
add other service clients
2026-06-01 13:41:36 +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