CSS pv() function missing in Phoebus
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
The issue describes a missing pv() expression function and gives a nested expression example, but names no implementation files or tests. First check how Phoebus currently parses backtick expressions and whether they support nested evaluation; then assess the scope of adding pv() as an alternative. Done would mean the example can resolve the computed PV name and retrieve its value, with tests covering that behavior.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Many of the functions available in CS-Studio are also available in Phoebus, however I have noticed that one that we make heavy use of is missing and that is the pv() function. This basically turns whatever is inside it into a PV object that CSS then gets the value of.
In many instances we can just replace that with the Phoebus syntax using backticks ``.
However there are some cases that do not work in Phoebus, for example, functions within the backticks or nested backticks. An example of what was done in CSS is shown below:
=pv(concat(pv("XXX:NAME:OF:PV"), ":HELLO"))
where:
-
pv("XXX:NAME:OF:PV")would return the value of this PV, which is a string with the name of another PV, e.g. XXX:NAME:OF:PV.val = "TEST:VAC:01" -
concat(..., ":HELLO")takes the string PV value from above and appends "HELLO" to it to get a new PV name, e.g. "TEST:VAC:01:HELLO" -
then
=pv(...)gets the value of "TEST:VAC:01:HELLO"
As far as I can tell, there is no easy way of doing this in Phoebus except using scripts.
I was just wondering whether there was a reason that the pv() function from CSS wasn't re-implemented in Phoebus? Would it be beneficial to have it?
- Linguagem predominante
- Java
- Estrelas
- 130
- Forks
- 132
- Merge médio
- 2d 11h
- PRs com merge (30d)
- 19
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ControlSystemStudio/phoebus
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ControlSystemStudio/phoebus#3983 ·
Mantenedores costumam responder em até 2 dias
-
Create CONTRIBUTING.mdAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ControlSystemStudio/phoebus#3979 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
ControlSystemStudio/phoebus#3962 ·
Mantenedores costumam responder em até 2 dias
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
ControlSystemStudio/phoebus#3865 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 52/100
ControlSystemStudio/phoebus#3980 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de ControlSystemStudio/phoebus
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
[Bug]: REST API URL starting with "http" but no scheme (e.g. httpbin.org/get) is not given an http:// prefixTalvez já em andamento @ItsDeadlyProgrammer assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
appsmithorg/appsmith#42471 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
code-maintenance
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
bug priority: medium Review effort [1-5]: 3 status: needs-triage type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
carlos-emr/carlos#5258 ·
Mantenedores costumam responder em até 1 dia