Skip to content

Retrieve floating commands and add abstract wrappers to conftest#600

Merged
proprogrammer504 merged 2 commits intomainfrom
kevin/retrieve-floating-packet-commands
Nov 7, 2025
Merged

Retrieve floating commands and add abstract wrappers to conftest#600
proprogrammer504 merged 2 commits intomainfrom
kevin/retrieve-floating-packet-commands

Conversation

@proprogrammer504
Copy link
Contributor

@proprogrammer504 proprogrammer504 commented Oct 29, 2025

Purpose

Closes #574
Created a method under CommandsWrapper which retrieves all current "floating" commands. A floating command here is defined as any command whose id does not match up with any command_id in the PacketCommands table.

New Changes

retrieve_floating_commands() -> list (Commands)
Extended the conftest to accept the abstracted wrappers
Wrote pytests for it

Testing

Pytests include 2 cases: One where PacketCommands is empty and one where PacketCommands is nonempty.
For the empty one, we expect that after calling retrieve_floating_commands(), we get the all the commands currently in the Command table. For the non empty PacketCommands, we expect the complement of PacketCommands and Commands where PacketCommands is the universal set :).

@github-actions
Copy link

Pull reviewers stats

Stats of the last 120 days for UWOrbital:

User Total reviews Time to review Total comments
Adityya-K
🥇
49
▀▀▀▀▀
1d 2h 39m
167
▀▀▀▀
camspec
🥈
22
▀▀
23h 54m
133
▀▀▀
kepler452b123
🥉
16
▀▀
6d 5h 35m
▀▀
48
Yarik-Popov
5
1d 3h 12m
41
Navtajh04
2
7d 12h 7m
▀▀
25
sunray4
1
12d 21m
▀▀▀
9
proprogrammer504
1
8d 6h 19m
▀▀
5

⚡️ Pull request stats

@camspec camspec changed the title Retrive floating commands, and extended the test_get_db_session to ac… Retrieve floating commands and add abstract wrappers to conftest Nov 1, 2025
Copy link
Member

@camspec camspec left a comment

Choose a reason for hiding this comment

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

A few changes

Copy link
Member

@camspec camspec left a comment

Choose a reason for hiding this comment

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

LGTM!

@proprogrammer504 proprogrammer504 merged commit 2056454 into main Nov 7, 2025
49 checks passed
@proprogrammer504 proprogrammer504 deleted the kevin/retrieve-floating-packet-commands branch November 7, 2025 03:25
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.

Add data layer function for the packet table to retrieve all "floating" commands that are not assigned to a packet

2 participants