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

Upload/download urdfs #202

Merged
merged 20 commits into from
Jul 31, 2024
Merged

Upload/download urdfs #202

merged 20 commits into from
Jul 31, 2024

Conversation

chennisden
Copy link
Contributor

@chennisden chennisden commented Jul 29, 2024

Notable changes

  • added urdf api endpoint /urdf/upload
  • added urdf api endpoint /urdf/{listing_id} which redirects you to the s3 bucket w/ the urdf corresponding w/ the listing id. of course this only works if you have a urdf to begin with
  • images bucket changed to artifacts

also lots of ui stuff related to adding urdfs but this will be self evident when you run the frontend

chennisden and others added 9 commits July 30, 2024 16:25
We now upload URDFs as .tar.gz files.

The URDF loader has not been implemented yet. The plan is to untar the
URDF on the client. See something like

	https://github.com/InvokIT/js-untar
* Add functionality to set children

* Display children

* Fetch images from artifact ids and render their captions correctly in listing page (#211)

* Add route to fetch artifacts in bulk and return only images

* In Listings, fetch images from artifact_ids

This fixes captions being just "caption" (which was a placeholder
waiting for this commit) and also fixes trying to render URDF tar
gunzips.

* Add 'name' field to Artifacts, which stores filename

This is so people have a good identifier for URDFs, etc.

* Take in a listing for upload_urdf

- Check whether user actually owns that listing
- Update listing artifact_ids

* rename batch to get_batch

* Change route that gets unique urdf to route that gets latest
@codekansas codekansas enabled auto-merge (squash) July 31, 2024 02:06
Copy link
Member

@codekansas codekansas left a comment

Choose a reason for hiding this comment

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

wow

store/app/crud/listings.py Outdated Show resolved Hide resolved
@codekansas codekansas merged commit 336b37d into master Jul 31, 2024
1 check passed
@codekansas codekansas deleted the urdf branch July 31, 2024 02:08
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