Allow `-clean` command line option with `-app` and `-resource` options
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Start by reading Phoebus's command-line handling for -clean, -app, and -resource, then trace how startup and requests are handled when Phoebus is already open. The issue does not name specific files or tests, so locate the relevant entry points and existing coverage first. Done means a clean launch opens the requested app or resource without restoring prior state, while an already-running instance ignores -clean and opens the request normally.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
We have a use case where we would want to launch a BOB screen in its own window from the terminal, e.g.
phoebus.sh -resource "file:/path/to/file/example.bob@target=window"
The only problem with this is that by default this will bring up the persisted Phoebus state, which might contain other open windows or screen editor tabs etc. At that point, the only way to ensure only the 'example.bob' screen appears is to make sure you close all the other windows/tabs before shutting phoebus down (not ideal!) or you first run with -clean:
phoebus.sh -clean
phoebus.sh -resource "file:/path/to/file/example.bob@target=window"
I feel like it would be much cleaner to be able to run something like:
phoebus.sh -clean -resource "file:/path/to/file/example.bob@target=window"
which is basically saying I want a clean start (no persisted state) and to open the following resource.
However the current design of Phoebus is such that -clean overrides any other option (e.g -resource xx, -app xx). Does anyone know the original reasoning behind this and whether we could change this behavior to something like that described above?
The desired behavior would be as such:
- If Phoebus isn't open then clean (i.e. do not load previous state) and open the resource/app.
- If Phoebus is already open, then the
-cleanis automatically ignored and the resource/app will just be opened as normal (and everything already open remains).
I am happy to put in a PR to make this change but wanted to get some feedback first to make sure I haven't missed anything about the behavior?
- Lenguaje dominante
- Java
- Estrellas
- 130
- Forks
- 132
- Merge medio
- 2 d 11 h
- PR fusionados (30 d)
- 19
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
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 ControlSystemStudio/phoebus
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ControlSystemStudio/phoebus#3983 ·
Los mantenedores suelen responder en 2 días
-
Create CONTRIBUTING.mdAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ControlSystemStudio/phoebus#3979 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
ControlSystemStudio/phoebus#3962 ·
Los mantenedores suelen responder en 2 días
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
ControlSystemStudio/phoebus#3865 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
ControlSystemStudio/phoebus#3980 ·
Los mantenedores suelen responder en 2 días
Todos los issues de ControlSystemStudio/phoebus
Issues similares
-
staticAssetsPath follows symlinks outside the directory on WindowsPosiblemente ocupada @ybelMekk la tomó hoy. Abiertobug security findings
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
navikt/mock-oauth2-server#1132 ·
Los mantenedores suelen responder en 1 día
-
agent:working follow-up
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Sanne/incus-spawn#1683 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
checkstyle/checkstyle#22210 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
google/error-prone#6239 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Failing Test]: BigqueryClient.queryUnflattened fails BigQuery ITs on a transient 503Posiblemente ocupada @mxtymoshyk la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día