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

[NEW] New avatar storage types #6788

Merged
merged 51 commits into from
Jun 1, 2017
Merged

[NEW] New avatar storage types #6788

merged 51 commits into from
Jun 1, 2017

Conversation

sampaiodiego
Copy link
Member

@sampaiodiego sampaiodiego commented Apr 25, 2017

@RocketChat/core

This PR will change avatar storage type to use the same as file uploads, so all different storage types will available for both:

  • File System
  • GridFS
  • Amazon S3
  • Google Cloud Storage
  • Server upload for File System
  • Server upload for GridFS
  • Server upload for Amazon S3
  • Server upload for Google Cloud Storage
  • Remove references of RocketChatFileAvatarInstance
  • Backward compatibility for mobile apps
  • Option to upload to S3 passing through server
  • Option to upload to GCS passing through server
  • Migration
  • Migrate old Avatars to new format

Not important

  • Create a setting to prevent showing avatars to not logged in users
  • CDN option for S3 Server

Closes #3480

Doc

There will be 4 types of stores:

  • AmazonS3
  • GoogleCloudStorage
  • GridFS
  • FileSystem

And 2 types of uploads

  • Avatars
  • Uploads

The upload store is a combination of both (store and upload types), like AmazonS3:Uploads, but to prevent the need to know the current active store there are 2 fake stores that point to current ones:

  • Avatars
  • Uploads

If you upload pointing to Uploads the file will be saved to the current store as a upload type.

Backwards compatibility

The old store names fileSystem and gridFS are still supported but deprecated.
The direct uploads to s3 and googleCloudStorage are still supported but deprecated.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-6788 April 25, 2017 13:42 Inactive
@engelgabriel engelgabriel added this to the 0.56.0 milestone Apr 26, 2017
@engelgabriel engelgabriel modified the milestones: 0.56.0, 0.57.0 May 9, 2017
…-types

# Conflicts:
#	packages/rocketchat-file-upload/server/config/configFileUploadAmazonS3.js
#	packages/rocketchat-google-natural-language/.npm/package/npm-shrinkwrap.json
#	packages/rocketchat-lib/package.js
#	packages/rocketchat-lib/server/functions/setUsername.coffee
#	packages/rocketchat-lib/server/models/Uploads.coffee
#	packages/rocketchat-ui-account/client/avatar/prompt.coffee
#	packages/rocketchat-ui/client/lib/fileUpload.coffee
@rodrigok rodrigok changed the title [WIP] New avatar storage types [NEW] New avatar storage types May 31, 2017
@rodrigok rodrigok changed the title [NEW] New avatar storage types New avatar storage types Jun 1, 2017
@rodrigok rodrigok changed the title New avatar storage types [NEW] New avatar storage types Jun 1, 2017
@ggazzo ggazzo merged commit 2e38466 into develop Jun 1, 2017
@ggazzo ggazzo deleted the new-avatar-storage-types branch June 1, 2017 00:21
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.

Avatar endpoint accessible without authentication
4 participants