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

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

Merged
merged 6 commits into from
Jul 30, 2024

Conversation

chennisden
Copy link
Contributor

Resolves #208
Resolve #195

  • 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.

@chennisden
Copy link
Contributor Author

Stacked on #205 which is stacked on #203

@chennisden chennisden changed the base branch from master to children July 30, 2024 17:45
This fixes captions being just "caption" (which was a placeholder
waiting for this commit) and also fixes trying to render URDF tar
gunzips.
This is so people have a good identifier for URDFs, etc.
- Check whether user actually owns that listing
- Update listing artifact_ids
@chennisden chennisden force-pushed the fetch-images branch 2 times, most recently from 53d535e to 6941104 Compare July 30, 2024 18:34
@chennisden chennisden merged commit e443b73 into children Jul 30, 2024
@chennisden chennisden deleted the fetch-images branch July 30, 2024 19:57
chennisden added a commit that referenced this pull request Jul 30, 2024
* 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 pushed a commit that referenced this pull request Jul 30, 2024
* 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 added a commit that referenced this pull request Jul 31, 2024
* Add upload URDF functionality

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

* Functionality to fetch urdf

* fix mjcf upload type

* upload urdf to s3 with get_urdf_name as filename

* merge image and urdf base urls into artifact base url

* fix urdf content-type: xml => gunzip

* Input and display children (#203)

* 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

* quick fix

* periodic commit

* no more errors

* no more errors

* some listing details

* use react links instead of href

* fix lint

* ignore gen files

* instructions in contributing.md file

* almost there

* fix tests

* add api

* fix another test

---------

Co-authored-by: Benjamin Bolte <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant