Allow `-clean` command line option with `-app` and `-resource` options
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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?
- Vorherrschende Sprache
- Java
- Sterne
- 130
- Forks
- 132
- Ø Merge
- 2 T. 11 Std.
- Gemergte PRs (30 T.)
- 19
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ControlSystemStudio/phoebus
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
ControlSystemStudio/phoebus#3983 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Create CONTRIBUTING.mdOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ControlSystemStudio/phoebus#3979 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
ControlSystemStudio/phoebus#3962 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
ControlSystemStudio/phoebus#3865 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 52/100
ControlSystemStudio/phoebus#3980 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in ControlSystemStudio/phoebus
Ähnliche Issues
-
dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's MavenEvtl. vergeben @kou hat das heute übernommen. OffenType: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
apache/arrow-adbc#4947 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
checkstyle/checkstyle#22153 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 1 Tag
-
Documentation Needs Triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
frankframework/frankframework#11908 ·
Maintainer antworten meist innerhalb von 1 Tag