Add a 'show' page for the BackgroundActivity model
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
- 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
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:
- For the options section:
_options_{background_activity_base_class}.html.erb - 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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aces/cbrain
-
Admin Bug Priority: Normal
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
Admin Refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 2 giorni
-
Priority: Normal Refactoring
Difficoltà 3/5 1-2 giorni Idoneità per principianti 71/100
I maintainer di solito rispondono entro 2 giorni
-
Bug Priority: Low User Interface
Difficoltà 2/5 1-3 ore Idoneità per principianti 57/100
I maintainer di solito rispondono entro 2 giorni
-
Priority: Low User Interface
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 2 giorni
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
we-promise/sure#5742 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
itinance/react-native-fs#1270 ·
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 76/100
simp/simp-rsync-skeleton#65 ·
-
`simp environment new` creates rsync/CentOS unconditionally, so the rsync skeleton cannot ship itAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
simp/rubygem-simp-cli#244 ·
I maintainer di solito rispondono entro 3 giorni
-
bug 🐞
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
valkey-io/valkey-glide#7848 ·
I maintainer di solito rispondono entro 1 giorno