Find goal satisfaction from a plan
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 5
- Forks
- 7
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NASA-AMMOS/plandev-cli
-
Aerie-cli commit hooks failingMay be free again @colin-lewis-19 claimed this 329 days ago, and no pull request is open. Open
NASA-AMMOS/plandev-cli#182 · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
NASA-AMMOS/plandev-cli#180 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
NASA-AMMOS/plandev-cli#177 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
NASA-AMMOS/plandev-cli#176 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
NASA-AMMOS/plandev-cli#171 ·
All issues in NASA-AMMOS/plandev-cli
Similar issues
-
intake mcp-intake needs-human-review priority:high type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Ikalus1988/MisakaNet#6081 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 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 duePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 79/100
developmentseed/titiler-covjson#164 ·
Maintainers usually reply within 1 day
-
area/install bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day