Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Hide the per-item credit preference field from non-admins once profiles are self-service

Abierto
#2,261 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Stack tecnológico
rails, ruby

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_preference on the three submitter-facing idea forms (story_ideas, workshop_ideas, workshop_variation_ideas) unless allowed_to?(:manage?, ...) — the field lives in app/views/shared/_author_credit_status.html.erb
  • Drop :author_credit_preference from 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 preference section of the divergences page is still needed, or only the three sections about a missing author_id

Related

  • Self-service profile editing is the blocker: PersonPolicy#edit? / #update? are admin-only, and person_params permits notes, filemaker_code, created_by_id and nested user_attributes[:inactive], so it needs its own narrow whitelist.
  • The per-item anonymous override 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

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rubyforgood/awbw

Todos los issues de rubyforgood/awbw

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.