{
  "id": "QA12A",
  "title": "Administrador modifica catálogo y persiste",
  "layer": "API + PostgreSQL",
  "role": "admin",
  "status": "FAIL",
  "expected": "HTTP 200 y nombre persistido: Termo QA actualizado",
  "actual": "HTTP 200, pero el nombre sigue Rellené mi termo; no persiste el cambio solicitado",
  "method": "PATCH",
  "path": "/api/v1/actions/2469fd9c-c1cf-4445-8500-fcb1ec212d79/",
  "request": {
    "name": "Termo QA actualizado"
  },
  "response": {
    "id": "2469fd9c-c1cf-4445-8500-fcb1ec212d79",
    "code": "QA_REFILL",
    "category": {
      "id": "7cfdac99-4104-4ee5-b072-53fb67ec999c",
      "code": "QA_MOVILIDAD",
      "name": "Movilidad y consumo",
      "description": "Catálogo sintético",
      "icon": "bike"
    },
    "name": "Rellené mi termo",
    "description": "Escenario de prueba local, sin impacto ambiental real medido.",
    "points": 5,
    "daily_limit": 3,
    "validation_type": "NONE",
    "co2_kg_factor": "0.050",
    "water_liters_factor": "0.000",
    "plastic_kg_factor": "0.000",
    "is_active": true
  },
  "before": {
    "profiles": [
      {
        "user__first_name": "Ana",
        "total_points": 10,
        "available_points": 10,
        "bio": "Estudiante sintética para QA local",
        "visibility": "PRIVATE"
      },
      {
        "user__first_name": "Laura",
        "total_points": 0,
        "available_points": 0,
        "bio": "",
        "visibility": "PUBLIC"
      },
      {
        "user__first_name": "Diego",
        "total_points": 0,
        "available_points": 0,
        "bio": "",
        "visibility": "PUBLIC"
      }
    ],
    "clans": [
      {
        "name": "Ingeniería QA",
        "total_points": 10,
        "deleted_at": null
      },
      {
        "name": "Ecoequipo QA",
        "total_points": 10,
        "deleted_at": null
      }
    ],
    "logs": [
      {
        "id": "74f38290-7805-443a-9110-aafef9d88232",
        "status": "APPROVED",
        "points_awarded": 10,
        "co2_kg_factor_snapshot": "1.250",
        "idempotency_key": "class-qa-bike-1"
      },
      {
        "id": "67970d97-5bb4-4804-9b93-8df76040ac4e",
        "status": "REJECTED",
        "points_awarded": 20,
        "co2_kg_factor_snapshot": "0.100",
        "idempotency_key": "class-qa-photo-1"
      }
    ],
    "missions": [
      {
        "mission__action__name": "Llegué en bicicleta",
        "current_count": 1,
        "is_completed": false
      },
      {
        "mission__action__name": "Participé en limpieza",
        "current_count": 0,
        "is_completed": false
      }
    ],
    "participants": 2,
    "badges": [
      {
        "user__first_name": "Ana",
        "badge__name": "Primer paso QA"
      }
    ],
    "notifications": [
      {
        "title": "Evidencia Rechazada",
        "notification_type": "AUDIT_REJECT",
        "is_read": false
      },
      {
        "title": "¡Misión completada!",
        "notification_type": "MISSION_COMPLETED",
        "is_read": false
      },
      {
        "title": "¡Nueva medalla desbloqueada!",
        "notification_type": "BADGE_EARNED",
        "is_read": false
      }
    ],
    "posts": 3
  },
  "after": {
    "profiles": [
      {
        "user__first_name": "Ana",
        "total_points": 10,
        "available_points": 10,
        "bio": "Estudiante sintética para QA local",
        "visibility": "PRIVATE"
      },
      {
        "user__first_name": "Laura",
        "total_points": 0,
        "available_points": 0,
        "bio": "",
        "visibility": "PUBLIC"
      },
      {
        "user__first_name": "Diego",
        "total_points": 0,
        "available_points": 0,
        "bio": "",
        "visibility": "PUBLIC"
      }
    ],
    "clans": [
      {
        "name": "Ingeniería QA",
        "total_points": 10,
        "deleted_at": null
      },
      {
        "name": "Ecoequipo QA",
        "total_points": 10,
        "deleted_at": null
      }
    ],
    "logs": [
      {
        "id": "74f38290-7805-443a-9110-aafef9d88232",
        "status": "APPROVED",
        "points_awarded": 10,
        "co2_kg_factor_snapshot": "1.250",
        "idempotency_key": "class-qa-bike-1"
      },
      {
        "id": "67970d97-5bb4-4804-9b93-8df76040ac4e",
        "status": "REJECTED",
        "points_awarded": 20,
        "co2_kg_factor_snapshot": "0.100",
        "idempotency_key": "class-qa-photo-1"
      }
    ],
    "missions": [
      {
        "mission__action__name": "Llegué en bicicleta",
        "current_count": 1,
        "is_completed": false
      },
      {
        "mission__action__name": "Participé en limpieza",
        "current_count": 0,
        "is_completed": false
      }
    ],
    "participants": 2,
    "badges": [
      {
        "user__first_name": "Ana",
        "badge__name": "Primer paso QA"
      }
    ],
    "notifications": [
      {
        "title": "Evidencia Rechazada",
        "notification_type": "AUDIT_REJECT",
        "is_read": false
      },
      {
        "title": "¡Misión completada!",
        "notification_type": "MISSION_COMPLETED",
        "is_read": false
      },
      {
        "title": "¡Nueva medalla desbloqueada!",
        "notification_type": "BADGE_EARNED",
        "is_read": false
      }
    ],
    "posts": 3
  },
  "executedAt": "2026-10-02T05:13:41.632Z",
  "evidence": "evidence/QA12A.json"
}