Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

File storage support feature #165

Merged
merged 26 commits into from Nov 20, 2017
Merged

File storage support feature #165

merged 26 commits into from Nov 20, 2017

Conversation

wtrocki
Copy link
Member

@wtrocki wtrocki commented Oct 26, 2017

Copy link
Member

@austincunningham austincunningham left a comment

Choose a reason for hiding this comment

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

don't merge

@wtrocki wtrocki changed the title [NO MERGE] File storage support feature File storage support feature Nov 15, 2017
wtrocki and others added 22 commits November 15, 2017 12:28
* Use fetch to upload data

* Use fetch for download

* Improve upload calls
* Move camera class from step

* adjust package versions

* Add filestore dependency

* Remove data uri responsibility from file-upload

* Add index for exporting public interface

* Add used deps

* Add FileEntry interface, use updload from camera module

* Add todo item
* Minor tweaks

* Refactoring

* Temporary untested changes
* Split files for interfaces, add httpclient interface

* Use interfaces from relevant code

* Fix type typo
* Remove extra route param

* Delete subproject

* Include extra metadata in post data
* Fix sending data from browser as data-uri

* Accept base64 type for uploads

* Remove base64/
* Remove id generation from server

* Move file after upload

* Remove extra debugger call
* Add initial readme content

* Add more jsdocs

* Ignore vscode extra config
* Fix types error for api-controller and demoDataSetup (#169)

* fix types error for api-controller and demoDataSetup

* handle undefined connectionPromise

* Fix compilation error
* Add public access to package.json for new packages

* Pre-release publishing
* Start refactoring for tests

* Add some tests for filestore

* Add tests for writeStreamToFile

* Finish tests for fileService

* Lower coverage reqs

* Rename storage class to match filename

* Add string type for createTemporaryStorageFolder

* Add first tests for gridfs storage

* Add tests for gridfs

* Update jsdocs

* Update package version to pre-release one

* update dependencies to match hoisted versions

* Fix hanging test
* add tests for fileQueue

* add fileManager tests
* Add tests for buildCameraOptions

* Add some mocks

* Update versions to match hoisted

* Add tests for capture()

* Fix linting and remove coverage check on unfinished tests

* Fix file queue tests
@coveralls
Copy link

coveralls commented Nov 15, 2017

Coverage Status

Changes Unknown when pulling 5555c17 on file-storage-support into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d22e76f on file-storage-support into ** on master**.

@wtrocki wtrocki closed this Nov 15, 2017
@wtrocki wtrocki reopened this Nov 15, 2017
@wtrocki
Copy link
Member Author

wtrocki commented Nov 20, 2017

It looks like that we still getting error:


Argument of type 'typeof rename' is not assignable to parameter of type '(arg1: string, arg2: string, callback: (err: any, result: void) => void) => void'.
  Types of parameters 'callback' and 'callback' are incompatible.

@wtrocki
Copy link
Member Author

wtrocki commented Nov 20, 2017

@paolobueno Can I just rebase and merge this? It's required to fix angularjs build.

@wtrocki
Copy link
Member Author

wtrocki commented Nov 20, 2017

@paolobueno I looks like we sending back the local uri to server. Curious if that is needed?

screen shot 2017-11-20 at 12 13 49 pm

I noticed that download (sync changes from the server) is not included in the demo. We demoing i only for the portal (using different http api). I think that it's ok to go without this option, but worth to mention that we support sync from server. Is that ok?

Going to test it to make sure it works.

@wtrocki
Copy link
Member Author

wtrocki commented Nov 20, 2017

Download works fine! I couldn't really figure out how to replicate it in the standard step so we going to leave that without example.

@wtrocki wtrocki merged commit ec1a102 into master Nov 20, 2017
@wtrocki wtrocki deleted the file-storage-support branch November 20, 2017 14:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants