Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

schemas: splits photos into two schemas #432

Merged
merged 9 commits into from
Dec 27, 2018
Merged

Conversation

sanderpick
Copy link
Member

camera_roll for storage, media for photos (eventually other types that belong in a shared thread / chat / convo. For this to be app ready, I need to enable taking an existing hash (the blob file from the camera_roll schema, and using it as the :file tag in the media schema... all the handling is already there (it's the same as passing one step to another), but need a little tweak for directly setting the input.

@sanderpick sanderpick self-assigned this Dec 23, 2018
@sanderpick sanderpick added the wip Work in progress label Dec 23, 2018
Copy link
Member

@carsonfarmer carsonfarmer left a comment

Choose a reason for hiding this comment

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

Nice, looks good.

schema/textile/media.go Outdated Show resolved Hide resolved
@andrewxhill andrewxhill mentioned this pull request Dec 27, 2018
9 tasks
@sanderpick
Copy link
Member Author

Ok, this should be good to go. When preparing files, you can pass an existing file hash as the file "path", which is what we'll want to do when sharing into a shared thread from camera roll.

@carsonfarmer
Copy link
Member

Reran pipeline, should be good to merge now 👍

@carsonfarmer carsonfarmer removed the wip Work in progress label Dec 27, 2018
@sanderpick
Copy link
Member Author

Changes the schemas slightly to ensure that media's small size is the same as camera_roll's thumb size, which results in less more de-duplication.

@sanderpick sanderpick merged commit 5980bb1 into master Dec 27, 2018
@sanderpick sanderpick deleted the sander/two-photo-schemas branch December 27, 2018 22:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants