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

Python API to administer (remove) applications, recordings and entities #7990

Open
Famok opened this issue Nov 4, 2024 · 0 comments
Open
Labels
🔩 data model dataplatform Rerun Data Platform integration enhancement New feature or request 🪵 Log & send APIs Affects the user-facing API for all languages ⛃ re_datastore affects the datastore itself 📺 re_viewer affects re_viewer itself

Comments

@Famok
Copy link

Famok commented Nov 4, 2024

Is your feature request related to a problem? Please describe.
Currently, it is not possible to administer applications, recordings, or entities via the Python API. When working with multiple recordings or wanting to update recordings, I would like the ability to remove them programmatically. At present, the only way to remove them is by manually clicking in the viewer.
Additionally, when working with numerous recordings, the viewer may end up with partially deleted recordings, as it automatically drops the oldest datasets.

Describe the solution you'd like
A few api commands to administer recordings.

Commands to get the current state:

rr.get_applications() -> returns all application ids
rr.get_recordings(<application_id>) -> returns all recording ids for the given application id
rr.get_entities(<application_id>,<recording_id>) -> returns all entity ids for given application and recording id

Commands to delete specific things:

rr.delete_application(<application_id>)
rr.delete_recording(<application_id>,<recording_id>)
rr.delete_entity_path(<application_id>,<recording_id>,<entity_path>)

Commands to delete more / all things:

rr.delete_all_applications()
rr.delete_applications([list of ids])
...

Describe alternatives you've considered
There seems to be a pull request here:
and an issue here but I can't find any documentation on drop_entity_path in the python api.

All these things exist in the viewer, so I hope this could be easy to implement.

@Famok Famok added enhancement New feature or request 👀 needs triage This issue needs to be triaged by the Rerun team labels Nov 4, 2024
@teh-cmc teh-cmc added ⛃ re_datastore affects the datastore itself 📺 re_viewer affects re_viewer itself 🔩 data model 🪵 Log & send APIs Affects the user-facing API for all languages dataplatform Rerun Data Platform integration and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔩 data model dataplatform Rerun Data Platform integration enhancement New feature or request 🪵 Log & send APIs Affects the user-facing API for all languages ⛃ re_datastore affects the datastore itself 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

No branches or pull requests

2 participants