Add a 'show' page for the BackgroundActivity model

Aperta
#1,448 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@PratapShashwat ci sta già lavorando.

Dal 10/3/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rails, ruby
Ambito
full-stack

Direzione di ricerca

Start with the BackgroundActivity model classes and the existing methods that filter items into successful and failed sublists using utility detectors. Decide the general API for those sublists and the options and items partial names (_options_{background_activity_base_class}.html.erb, _items_{background_activity_base_class}.html.erb), then add a show page that uses them. This needs a maintainer decision on scope first; done means a show page renders for a BAC with its options, status, and failed items linked.

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

Descrizione

BAC-subsystem Enhancement Priority: Normal User Interface

In my original design of the BackgroundActivity framework, I never intended for there to be a 'show' page for the models, given each objects basically only has a few scalar pieces of information and two parallel arrays for the items and messages.

Now that I think about it, maybe a show page would still be useful. In particular, I added methods to extract from the list of items the ones that are successful or failed, based on utility detectors (like, nil vs non-nil etc) that each model can invoke. We could extend this to a true general API for accessing these sublists, and each BackgroundActivity model could just override the methods depending on circumstances (the point is, not all BACs record successes and failures the same way).

The 'show' page would also know, for each model, the special options it supports, and a summary of the items list if an appropriate partial view is provided. Filenames for the partials would be like:

  1. For the options section: _options_{background_activity_base_class}.html.erb
  2. For the items section: _items_{background_activity_base_class}.html.erb

The end result could be a useful resource for users and admins to view why a BAC failed or succeed, and what items failed (with nice links if possible).

Lingua principale
Ruby
Stelle
82
Fork
64
Merge medio
6g 13h
PR unite (30g)
36

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 aces/cbrain

Tutte le issue di aces/cbrain

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.