fix(api): editing an SSO provider name returns 200 but keeps the old name
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- postgresql, python
- Área
- authentication, backend
Línea de trabajo
Empieza con OrganizationsService.update_provider en api/ee/src/core/organizations/service.py, que establece name, slug y description en el objeto. Después lee OrganizationProvidersDAO.update en api/ee/src/dbs/postgres/organizations/dao.py, que solo escribe flags, secret_id y updated_at. Pasa los tres campos y persístelos allí. Está terminado cuando editar el nombre y leer GET /api/organizations/providers/ devuelve el nuevo valor, cubierto por un test nuevo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens
An organization admin edits an SSO provider in Settings > Access and security and changes its name. The save succeeds with HTTP 200 and updated_at changes. But the provider list still shows the old name.
Found during the v0.128.3 staging QA in /m. The request body sent the new name, so the frontend is not the cause.
Steps to reproduce
- On an enterprise-plan organization, add an SSO provider.
- Edit it and change only the name. Save.
GET /api/organizations/providers/returns the old name.
Expected
The new name is saved and shown. The same likely applies to slug and description.
Likely cause
OrganizationsService.update_provider (api/ee/src/core/organizations/service.py) sets provider.name, provider.slug and provider.description on the object from dao.get_by_id. Then it calls OrganizationProvidersDAO.update (api/ee/src/dbs/postgres/organizations/dao.py), which loads the row again and writes only flags, secret_id and updated_at. So name, slug and description never reach the database.
Fix
Pass name, slug and description to OrganizationProvidersDAO.update and write them there. Add a test that edits the name and reads it back.
- Lenguaje dominante
- TypeScript
- Estrellas
- 4.8k
- Forks
- 690
- Merge medio
- 23 h 26 min
- PR fusionados (30 d)
- 507
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Agenta-AI/agenta
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Agenta-AI/agenta#7654 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
(bug) The Stop button disappears for a moment before an approval card showsQuizá libre de nuevo @rishu685 la tomó hace 29 días y no hay ningún pull request abierto. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Agenta-AI/agenta#7446 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Agenta-AI/agenta#7441 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
(bug) A failed trace summary request leaves a run duration blank until the page is reloadedQuizá libre de nuevo @HenryPazS la tomó hace 21 días y no hay ningún pull request abierto. Abiertobug report frontend observability
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Agenta-AI/agenta#7039 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug report ci/cd devops
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Agenta-AI/agenta#6967 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de Agenta-AI/agenta
Issues similares
-
Navbar avatar and name stay stale after saving profile changesPosiblemente ocupada @alexechoi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
marmelab/atomic-crm#416 ·
Los mantenedores suelen responder en 1 día
-
feature-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
bluesky-social/social-app#12343 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
lucide-icons/lucide#5165 ·
Los mantenedores suelen responder en 1 día
-
[Feature] Preferences - Keep the theme selection popover open after selection for quick previewAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
marktext/marktext#6033 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:desktop bug has repro platform:macos
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
anthropics/claude-code#107903 ·