Fix missing annotation for Active Record ignored columns

Chiusa
#286 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Una pull request collegata è già stata integrata.

  • #287 di @bensheldon — integrata

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rails, ruby

Direzione di ricerca

Start by finding the annotation-generation entry point and how it handles Active Record's ignored_columns; compare that with the issue's Post example. Done means a database column listed in ignored_columns still appears in the schema annotation comment; pull request #287 is already open for this issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Currently, columns that are ignored within Active Record models are not displayed as part of the schema annotation. e.g.

class Post < ApplicationRecord
  self.ignored_columns += ["foobar"]
end

... will result in the foobar column not appearing in the annotation comment.

This behavior has caused problems when a developer has gone to remove an entry from the AR ignored_columns because they thought it was no longer needed because they were referencing the annotation comment where it did not appear.

Ideally, I would like the column to exist in the annotation comment, because the column is present in the database schema.

(I believe this feature is different than the annotaterb ignored-columns feature)

Lingua principale
Ruby
Stelle
624
Fork
95
Merge medio
3g 7h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di drwl/annotaterb

Tutte le issue di drwl/annotaterb

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.