afterhours-shift-manager/tests
Adam Moussa 5981776178
Some checks are pending
Deploy API / Deploy API to dev (push) Waiting to run
Deploy API / Deploy API to prod (push) Waiting to run
fix(3cx): refresh the OAuth token before it expires (DEV-298) (#280)
* fix(3cx): refresh the OAuth token before it expires

The worker kept one 3CX access token for the life of the process, so the 8am queue update failed with 401 after the one-hour token lifetime.

* fix(3cx): ignore a client secret this process already replaced

A slower caller still holding the pre-rotation secret could write it back over the new one. The swap now happens under the auth lock, and a retired secret is dropped.

* fix(3cx): adopt a new client secret only after login succeeds

A candidate secret is tried before it replaces the current one, so a revoked secret cannot stick and a later revert to a working secret still takes effect. A failed re-login after 401 returns the original API response.
2026-09-24 23:03:50 +00:00
..
holiday_router Fix holiday router 3CX IVR calls (Receptionists entity, not IVRs) (#124) 2026-06-17 12:04:10 -04:00
infra chore(deps): update dependency @redocly/cli to v2.53.3 (#277) 2026-09-24 17:31:17 +00:00
portal_api feat(api): collapse Slack, portal, and jobs onto Fargate (PLAT-216) (#259) 2026-09-21 19:13:30 +00:00
ring_scheduler Add pytest suite and wire it into CI (#85) (#86) 2026-06-01 19:07:08 -04:00
roster_api feat(api): collapse Slack, portal, and jobs onto Fargate (PLAT-216) (#259) 2026-09-21 19:13:30 +00:00
roster_sync ci(workflows): call org reusable CI and Fargate CD (#276) 2026-09-24 16:46:40 +00:00
scripts ci(workflows): call org reusable CI and Fargate CD (#276) 2026-09-24 16:46:40 +00:00
server feat(api): collapse Slack, portal, and jobs onto Fargate (PLAT-216) (#259) 2026-09-21 19:13:30 +00:00
shared fix(3cx): refresh the OAuth token before it expires (DEV-298) (#280) 2026-09-24 23:03:50 +00:00
slack_bot feat(api): collapse Slack, portal, and jobs onto Fargate (PLAT-216) (#259) 2026-09-21 19:13:30 +00:00
weekly_post feat(infra): migrate afterhours to HCP Terraform (PLAT-74) (#252) 2026-09-15 23:31:59 +00:00
conftest.py feat(api): collapse Slack, portal, and jobs onto Fargate (PLAT-216) (#259) 2026-09-21 19:13:30 +00:00
requirements.txt feat(api): collapse Slack, portal, and jobs onto Fargate (PLAT-216) (#259) 2026-09-21 19:13:30 +00:00