Hide the per-item credit preference field from non-admins once profiles are self-service
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Área
- authorization, full-stack
Línea de trabajo
Empieza leyendo app/views/shared/_author_credit_status.html.erb y app/views/shared/_author_credit_preview.html.erb; después, sigue los tres formularios de ideas orientados a quienes las envían y sus controladores. Confirma el prerrequisito de edición del perfil mediante autoservicio, restringe o elimina el campo de preferencias y los params, actualiza las indicaciones y determina si la sección de preferencias se mantiene en /author_credit_divergences.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Interim state shipped in #2093.
Why the field is there now
Credits render from the credited person's profile (Person#display_name_preference plus anonymous_contributions). Facilitators cannot edit their own profile — PersonPolicy#edit? and #update? are admin? — so the submission forms still collect a per-item credit preference as a way to record what the submitter wants.
That stored value does not drive display. It surfaces on /author_credit_divergences as a discrepancy, and an admin applies it to the person's profile so it covers everything they share. The edit forms already warn when a record diverges, linking to that page.
What to do here
Once facilitators can edit their own display preferences:
- Hide
author_credit_preferenceon the three submitter-facing idea forms (story_ideas,workshop_ideas,workshop_variation_ideas) unlessallowed_to?(:manage?, ...)— the field lives inapp/views/shared/_author_credit_status.html.erb - Drop
:author_credit_preferencefrom those three controllers' strong params, or keep it admin-only - Point submitters at their own profile instead — replace the "an admin applies it to your profile" copy in
app/views/shared/_author_credit_preview.html.erb - Revisit whether the
preferencesection of the divergences page is still needed, or only the three sections about a missingauthor_id
Related
- Self-service profile editing is the blocker:
PersonPolicy#edit?/#update?are admin-only, andperson_paramspermitsnotes,filemaker_code,created_by_idand nesteduser_attributes[:inactive], so it needs its own narrow whitelist. - The per-item
anonymousoverride is a separate legacy path the divergences page also drains.
🤖 From Claude: filed while shipping the interim step in #2093.
- Lenguaje dominante
- Ruby
- Estrellas
- 15
- Forks
- 28
- Merge medio
- 1 d 12 min
- PR fusionados (30 d)
- 262
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un 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 rubyforgood/awbw
-
blocked
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
rubyforgood/awbw#2824 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
rubyforgood/awbw#2822 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rubyforgood/awbw#2160 ·
Los mantenedores suelen responder en 1 día
-
Update callout faq defualt text when the new person subscription launchesPosiblemente ocupada @maebeale la tomó hace 79 días. Abiertoblocked
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
rubyforgood/awbw#2095 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
rubyforgood/awbw#2088 ·
Los mantenedores suelen responder en 1 día
Todos los issues de rubyforgood/awbw
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
hackclub/hcb#15454 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
dracula/homebrew-install#22 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
voxpupuli/puppet-archive#566 ·
-
area/tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
AllYourBot/hostedgpt#864 ·
Los mantenedores suelen responder en 1 día