Global Referee Registry & Cross-Tenant Lending
En resumen
Global Referee Registry & Cross-Tenant Lending is FIPJP's central directory of certified international referees and the formal workflow by which federations lend officials to each other for international championships. It aggregates national certifications, exposes a privacy-safe public search, and runs a multi-step loan arrangement protocol with conflict detection and compensation.
Cómo funciona
The GlobalReferee model lives in the FIPJP tenant. Each entry carries a global referee identifier (FIPJP-REF-YYYY-NNNN), a foreign key to the player passport, the list of certifications aggregated from national umpire registries, languages spoken, and current status. The passport_id has a unique index so a referee can never be duplicated across the global registry. National federations opt in via TenantConfig.fipjp_referee_publish_enabled; once enabled, an automated sync service pulls UmpireCertification records from the national tenant and reconciles them into the GlobalReferee certifications list.
FIPJP referee admin endpoints provide CRUD plus sync-certifications, promote, status change, and sync-from-nation (machine-to-machine). The public referee search exposes lookup by passport and a multi-filter search by discipline, level, language, and availability; contact information is deliberately omitted to preserve privacy. Federations searching for an external official can therefore identify candidates without scraping personal data.
The RefereeLoanArrangement model orchestrates cross-tenant lending. The arrangement progresses through REQUESTED, ACCEPTED (by the referee), APPROVED (by the source federation), ACTIVE (during the event), and COMPLETED. The borrower federation creates a request specifying the event, dates, and required grade; the referee receives the offer and accepts or declines; the source federation then reviews and approves, rejects, or asks for amendments. Conflict detection prevents double-booking by checking the referee's calendar across all known assignments in any tenant; an attempted overlap returns HTTP 409. Compensation terms (per-event fee, travel cost, per-diem) are recorded in the arrangement and form the financial reconciliation between federations after the event. A cancel transition is available before ACTIVE; complete fires after the event closes and writes the assignment back into the referee's GlobalReferee statistics. The full approval history is stored for audit, and the admin UI offers two dashboards (FIPJP referee management and loan arrangement tracking) for FIPJP and national administrators.
Capacidades clave
- GlobalReferee model with FIPJP-REF identifier, passport FK, and aggregated certifications
- RefereeLoanArrangement workflow: REQUESTED to ACCEPTED to APPROVED to ACTIVE to COMPLETED
- Cross-tenant double-booking detection returning HTTP 409 on conflict
- Public referee search by discipline, level, language, and availability with no contact info
- Auto-certification sync from national UmpireCertification when publish flag is enabled
- FIPJP admin endpoints for CRUD, sync, promote, status change, and M2M sync-from-nation
- Twin admin dashboards for FIPJP referee management and loan arrangement tracking
En la práctica
A South American federation hosting a continental championship needs an additional French-speaking international referee. They open the public referee search, filter by discipline, FIPJP level, French language, and the championship dates, and identify three candidates. They create a RefereeLoanArrangement with their preferred referee.
The referee receives the offer in their portal and accepts. The French federation reviews the request, confirms there is no domestic-event clash (the conflict check returns clean), and approves. Compensation terms are agreed in the arrangement.
The referee travels, officiates, and the arrangement transitions to COMPLETED, writing the assignment back into the GlobalReferee statistics and triggering inter-federation financial reconciliation.
Funcionalidades de este subsistema
7| ID | Status | Funcionalidades |
|---|---|---|
| F05.09.01 | Entregado | GlobalReferee-modell (FIPJP-tenant) — global_referee_id (FIPJP-REF-YYYY-NNNN), passport_id FK, certifications list, languages, status. Unique index on passport_id. ✅ PL-T015 |
| F05.09.02 | Entregado | RefereeLoanArrangement-modell — cross-tenant loan workflow (REQUESTED→ACCEPTED→APPROVED→ACTIVE→COMPLETED), conflict detection, compensation, approval history. ✅ PL-T015 |
| F05.09.03 | Entregado | FIPJP referee admin endpoints — CRUD + sync-certifications + promote + status change + sync-from-nation (M2M). ✅ PL-T015 |
| F05.09.04 | Entregado | Public referee search — by-passport lookup + multi-filter search (discipline, level, language, availability). Privacy-safe: no contact info. ✅ PL-T015 |
| F05.09.05 | Entregado | Loan workflow endpoints — create, accept-referee, approve-source, reject-source, cancel, complete. Double-booking detection (409). ✅ PL-T015 |
| F05.09.06 | Entregado | Auto-certification-sync — TenantConfig.fipjp_referee_publish_enabled, sync service pulls from national UmpireCertification. ✅ PL-T015 |
| F05.09.07 | Entregado | Admin UI — FIPJP referee dashboard (list, filter, sync, promote, suspend) + loan arrangement dashboard (status tracking, approve/reject/cancel/complete). ✅ PL-T015 |
Partes interesadas que necesitan este subsistema
Aparece en 2 análisis de partes interesadas