Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hammer/task queue table #844

Closed
wants to merge 17 commits into from
Closed

Conversation

aaronchongth
Copy link
Member

@aaronchongth aaronchongth commented Nov 27, 2023

What's new

Update task queue table

  • remove category column (users can check task summary for category or more information)
  • added pickup and destination column (filter and sorting will be in a subsequent PR)

The tasks shown below

  • RMF finishing task (this is different from our expected finishing task from deployment, so it is parsed as n/a)
  • patrol (only destination is parsed)
  • custom delivery (sequential), not dispatched as testing in simulation
  • delivery 1:1, not dispatched as testing in simulation

image

Self-checks

  • I have prototyped this new feature (if necessary) on Figma
  • I'm familiar with and follow this Typescript guideline
  • I added unit-tests for new components
  • I tried testing edge cases
  • I tested the behavior of the components that interact with the backend, with an e2e test

* New route for saving and getting successfully dispatched requests

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

* Announce failed to dispatch instead of create task

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

* Generate api-client

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

* Use api task request instead of custom ttm pydantic model

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

* Revert alert text change

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

---------

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
(cherry picked from commit 52a7d14)
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
@aaronchongth aaronchongth changed the base branch from deploy/hammer to hammer/save-task-request November 27, 2023 09:38
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Base automatically changed from hammer/save-task-request to deploy/hammer November 28, 2023 01:39
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Attention: 422 lines in your changes are missing coverage. Please review.

Comparison is base (fe0e808) 49.35% compared to head (f79560a) 47.24%.
Report is 24 commits behind head on deploy/hammer.

Files Patch % Lines
...es/api-server/api_server/models/delivery_alerts.py 12.94% 74 Missing ⚠️
packages/dashboard/src/components/map-app.tsx 0.00% 62 Missing ⚠️
.../dashboard/src/components/delivery-alert-store.tsx 0.00% 61 Missing ⚠️
packages/react-components/lib/tasks/utils.ts 4.76% 38 Missing and 2 partials ⚠️
...kages/dashboard/src/components/tasks/tasks-app.tsx 0.00% 31 Missing ⚠️
...s/dashboard/src/components/tasks/task-schedule.tsx 0.00% 25 Missing ⚠️
...es/api-server/api_server/routes/delivery_alerts.py 26.66% 22 Missing ⚠️
...ckages/api-server/api_server/routes/tasks/tasks.py 36.36% 14 Missing ⚠️
...ashboard/src/components/three-fiber/lift-three.tsx 0.00% 10 Missing ⚠️
...shboard/src/components/three-fiber/robot-three.tsx 0.00% 9 Missing ⚠️
... and 18 more
Additional details and impacted files
@@                Coverage Diff                @@
##           deploy/hammer     #844      +/-   ##
=================================================
- Coverage          49.35%   47.24%   -2.11%     
=================================================
  Files                285      288       +3     
  Lines               7564     8005     +441     
  Branches            1050     1162     +112     
=================================================
+ Hits                3733     3782      +49     
- Misses              3682     4047     +365     
- Partials             149      176      +27     
Flag Coverage Δ
api-server 76.34% <33.51%> (-4.46%) ⬇️
dashboard 15.03% <9.23%> (-0.04%) ⬇️
react-components 46.40% <19.31%> (-1.67%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
… now

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
@aaronchongth aaronchongth marked this pull request as ready for review November 28, 2023 07:40
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Copy link
Collaborator

@Angatupyry Angatupyry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was awesome!

Thanks, Aaron!

LGTM!

@@ -182,10 +183,25 @@ export const TasksApp = React.memo(
const results = resp.data as TaskState[];
const newTasks = results.slice(0, GET_LIMIT);

const taskIds: string[] = newTasks.map((task) => task.booking.id);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can add a comment here explaining why we duplicated code and did not reuse the getAllTaskRequest function

@aaronchongth aaronchongth changed the base branch from deploy/hammer to main November 28, 2023 14:10
@aaronchongth aaronchongth changed the base branch from main to deploy/hammer November 28, 2023 14:10
@aaronchongth aaronchongth mentioned this pull request Nov 28, 2023
5 tasks
@aaronchongth
Copy link
Member Author

closing this in favor of #846

@aaronchongth aaronchongth deleted the hammer/task-queue-table branch November 28, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants