[feat] Scheduler: expose canonical schedule display and timestamps
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
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- backend-api-design
Línea de trabajo
Start by tracing the schedule.list and schedule.history handlers and their schedule row types; the issue names those API entry points but no source files or tests. Check how schedule records store creation and modification times, then inspect the existing schedule schema tests and docs. Done means the API exposes stable timestamps and a canonical display with an explicit editability rule, while older clients remain compatible and non-RRULE schedules cannot be overwritten by placeholders.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem / Context
schedule.list exposes enabled_at, revision, last_run and the structured schedule (every_minutes / cron / at). It does not expose a stable creation/update timestamp or a canonical display string for schedules the client cannot round-trip.
The Electron Desktop currently fabricates both:
createdAt = enabled_at,updatedAt = last_run ?? enabled_atinpackages/desktop/packages/electron-main/src/app-server/scheduler.ts; pausing/resuming changes the apparent creation time;- for a cron/at schedule it cannot represent as an RRULE it stores
RRULE:FREQ=DAILY;BYHOUR=0;BYMINUTE=0plus a read-onlyscheduleText. If the edit form ever submits that placeholder, it can overwrite the real cron/at schedule with a daily schedule.
This is a correctness problem, not only a display preference. A client must not invent a schedule value it may later write back.
Proposal
Minimum:
- add stable
created_atandupdated_at(ormodified_at) toschedule.list/schedule.historyrows; - add a canonical
schedule_text/displaythat clients render read-only; - expose whether the schedule is form-editable, or make RRULE-only the explicit contract and return
editable: falsefor cron/at.
Preferred:
- keep the structured schedule as the only write shape; clients that cannot represent it must not prefill a placeholder;
- make
created_at/updated_atindependent ofenabled_atandlast_run.
Why this belongs in App Server
The schedule is owner data. A client-side RRULE conversion is lossy; once a client writes the placeholder back, the owner loses the original cron/at schedule. Creation and modification times are also owner facts that clients cannot derive from enabled_at/last_run.
If upstream declines
If these fields are considered unnecessary, Desktop will remove createdAt/updatedAt from the job view and will show non-RRULE schedules read-only without prefill. It will not write a fabricated RRULE.
Acceptance
-
schedule.listgives stable creation/update timestamps (or explicitly says they are not exposed). - A cron/at schedule has a canonical display string and an explicit editability rule.
- Editing a non-RRULE schedule cannot overwrite it with a placeholder.
- Pausing/resuming does not change the creation timestamp.
- Older clients remain compatible.
Boundaries
- No new scheduler state in clients.
- No automatic conversion of arbitrary cron to RRULE.
- No change to schedule execution semantics.
Related
- Desktop tracking issue will be linked in a comment.
- #1287 (schedule schema docs)
- #1225 (schedule notices)
- Lenguaje dominante
- Rust
- Estrellas
- 584
- Forks
- 42
- Merge medio
- 9 h 41 min
- PR fusionados (30 d)
- 929
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 arcships/dim
-
P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
arcships/dim#2294 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
P2 roadmap
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
P2
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
arcships/dim#2293 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
core enhancement P2
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
arcships/dim#2291 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
core enhancement P2
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
arcships/dim#2290 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de arcships/dim
Issues similares
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)Posiblemente ocupada @G-darshan-32 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
clipy-recorder/clipy#164 · 1 comentario ·
-
p2 ready-mac
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
quickwit-oss/tantivy#3299 ·
Los mantenedores suelen responder en 1 día
-
`stream enable` fails with "already enabled" on every fresh session since streaming became always-onAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vercel-labs/agent-browser#2797 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
witchesofthehill/manabrew#1309 ·
Los mantenedores suelen responder en 1 día