Find goal satisfaction from a plan
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
No files, tests, or command entry points are named. Start by locating the CLI path that issues the scheduling_specification and scheduling_goal_analysis queries, then trace how scheduling_goal data is retrieved. Done means the result uses the last run for each goal and includes the goal information described in the issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In order to meet some of the requirements of a Mission Sim Report MPST is developing, we needed a way to get goal satisfaction from any given plan.
Through discussions with Alex Greer and Megan Jones, it looks like the following queries could be ran to get the goal satisfaction of a plan:
First, find the spec_id from this query:
query MyQuery {
scheduling_specification(where: {plan_id: {_eq: $plan_id}}) {
id
}
}
Then feed that spec_id into this query:
query MyQuery {
scheduling_goal_analysis(where: {request: {specification_id: {_eq: $spec_id}}}) {
goal_id
analysis_id
satisfied
satisfying_activities_aggregate {
aggregate {
count(distinct: false)
}
}
}
}
And it should give you:
{
"data": {
"scheduling_goal_analysis": [
{
"goal_id": 27,
"analysis_id": 80,
"satisfied": false,
"satisfying_activities_aggregate": {
"aggregate": {
"count": 59
}
}
},
{
"goal_id": 26,
"analysis_id": 81,
"satisfied": false,
"satisfying_activities_aggregate": {
"aggregate": {
"count": 270
}
}
}
]
}
}
You can tell if a goal is satisfied because the "satisfied" field in the query response will say true, goals are partially satisfied if the "count" number is non-zero but "satisfied" is false. If count is 0 and "satisfied" is false the goals is unsatisfied.
You can get the names for the goal_ids in the response above using this query:
query MyQuery {
scheduling_goal(where: {id: {_eq: 27}}) {
author
name
revision
id
definition
description
created_date
modified_date
model_id
last_modified_by
}
}
Ideally, we would just filter for the last run for each goal so the result does not show all scheduling goal run results in that plan. It should also return all the info of the goal for that run, from the last query.
- Lenguaje dominante
- Python
- Estrellas
- 5
- Forks
- 7
- Merge medio
- 3 d 14 h
- PR fusionados (30 d)
- 2
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 NASA-AMMOS/plandev-cli
-
Aerie-cli commit hooks failingQuizá libre de nuevo @colin-lewis-19 la tomó hace 329 días y no hay ningún pull request abierto. Abierto
NASA-AMMOS/plandev-cli#182 · 1 asignado ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
NASA-AMMOS/plandev-cli#180 · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
NASA-AMMOS/plandev-cli#177 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
NASA-AMMOS/plandev-cli#176 ·
-
Add name to adaptation queriesAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
NASA-AMMOS/plandev-cli#171 ·
Todos los issues de NASA-AMMOS/plandev-cli
Issues similares
-
intake mcp-intake needs-human-review priority:high type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Ikalus1988/MisakaNet#6081 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
521xueweihan/HelloGitHub#4655 ·
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 79/100
developmentseed/titiler-covjson#164 ·
Los mantenedores suelen responder en 1 día
-
area/install bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día