Граф коммитов

117 Коммитов

Автор SHA1 Сообщение Дата
Sean McArthur a86d0d4d31 feat(openid): make /v1/profile act as the OIDC UserInfo endpoint
Closes #175
2015-12-17 10:51:13 -08:00
Ryan Kelly 835f72442b fix(email): improve handling of 4XX errors from auth server. 2015-12-01 15:45:02 +11:00
vladikoff 55b0744e68 fix(upload): add gm image identification
Fixes #96
2015-11-16 14:58:33 -05:00
Sean McArthur aa3a140bc1 feat(email): fetch email from auth-server /account/profile
Closes #165
2015-11-16 09:59:08 -08:00
Vlad Filippov 45c2da442b revert(email): fetch email from auth-server /account/profile 2015-11-13 16:40:47 -05:00
Sean McArthur cc70645763 feat(email): fetch email from auth-server /account/profile
Closes #165
2015-11-11 14:36:41 -08:00
Sean McArthur b4413aefe8 Merge pull request #169 from mozilla/i131
fix(mysql): fix patcher version check to enforce patch >= n
2015-11-11 14:18:12 -08:00
Vlad Filippov daff6c6fc1 fix(config): adjust lib gm limits for aws
Fixes #167
2015-11-11 11:53:43 -05:00
vladikoff 8db250f7f1 fix(mysql): fix patcher version check to enforce patch >= n
Fixes #131
2015-11-10 17:58:48 -05:00
Sean McArthur b967e25c1f Merge pull request #162 from vladikoff/i98
fix(worker): disable gzip encoding on requests to local worker
2015-11-09 13:31:47 -08:00
vladikoff 40dfefd5fd fix(worker): disable gzip encoding on requests to local worker
Fixes #98
2015-11-09 15:20:33 -05:00
vladikoff 65efc72ca6 fix(server): set nodejs/request maxSockets to Infinity
Fixes #102
2015-11-09 14:55:00 -05:00
Vlad Filippov 69eac3c45b Merge pull request #157 from mozilla/57-gm-options
fix(avatars): graphicsmagick processing limits r=vladikoff
2015-10-20 20:27:13 -04:00
Sean McArthur bc86f16887 fix(avatars): add configuration to adjust avatar upload size
Closes #158
2015-10-20 09:06:59 -07:00
Sean McArthur 93edc14170 fix(avatars): graphicsmagick processing limits
Closes #57
2015-10-19 14:31:23 -07:00
Sean McArthur cf1dc35dfb fix(server): prevent null exception when oauth server is down
Closes #151
2015-10-12 12:27:27 -07:00
Sean McArthur 544e3323c6 feat(display_name): return 204 if user does not have a display name
Closes #144
2015-10-01 10:47:51 -07:00
vladikoff 18cc9b9318 feat(logging): add avatar.get activity event
Fixes #146
2015-09-21 20:31:07 -04:00
John Morrison aa6535f2c4 fix(version): use explicit path with git-config 2015-09-06 20:53:19 -07:00
John Morrison bef76003a8 chore(version): add /__version__ route with source repo 2015-09-03 21:51:34 -07:00
Sean McArthur 8ac1a429c8 Merge pull request #137 from mozilla/rfk/display-name-allowed-chars
fix(display_name): Don't allow control characters in the display_name field
2015-08-20 10:12:26 -07:00
Sean McArthur 3bd6b14d29 fix(server): return errno 104 if oauth server is drunk
Closes #121
2015-08-20 09:32:50 -07:00
Ryan Kelly 5b9e20d224 fix(display_name): Don't allow control characters in the display_name field.
Fixes #126.
2015-08-20 16:15:40 +10:00
John Morrison 4c3c41357f fix(config): add options events.region and events.queueUrl 2015-08-19 20:48:53 -07:00
Sean McArthur 79d98a3d5e feat(events): add events to delete user data when account is deleted
Closes #127
2015-08-17 12:01:06 -07:00
Zachary Carter e27223ddcb fix(display_name): allow a blank display name 2015-07-15 16:10:33 -07:00
Peter deHaan da8334a3cd chore(build): Tweak ESLint config to disable global consistent-this rule 2015-06-17 16:17:10 -07:00
Peter deHaan e88d81013a chore(build): Replace JSHint with ESLint 2015-06-17 00:27:17 -07:00
Andrew Chilton f7551a2d44 Merge pull request #116 from mozilla/rfk/strict-convict
chore(config): Update convict and switch on strict validation.
2015-06-10 16:04:00 +12:00
Ryan Kelly f9a97120d8 chore(config): Update convict and switch on strict validation. 2015-06-10 12:03:59 +10:00
Sean McArthur 6352dc3c19 Merge pull request #115 from eoger/issue-112-etags-profile
feat(profile): add etag to profile API endpoint
2015-06-02 16:45:53 -07:00
Edouard Oger dcf1bb64ec feat(profile): add etag to profile API endpoint 2015-06-02 16:18:46 -07:00
Edouard Oger 07569c5d53 feat(avatar): Add etag to the profile avatar API endpoint 2015-06-02 16:07:45 -07:00
Sean McArthur 1bc2cae55a fix(db): race condition when asking for db multiple times at startup 2015-04-29 18:41:34 -07:00
Sean McArthur 35a4875f86 feat(profile): return all /profile pieces that scopes allow
Closes #108
2015-04-29 18:09:23 -07:00
Zachary Carter ad6488eb40 feat(displayName): add a profile table with a displayName field 2015-04-09 17:35:13 -07:00
Zachary Carter 2fbfbbdab9 feat(mysql): use mysql patcher to allow incremental schema updates 2015-04-09 17:18:56 -07:00
Sean McArthur 187b076648 feat(avatar): add support for multiple image sizes
When an avatar is uploaded, we will now generate multiple sizes of the
image, to better accommodate various environments that the avatar may
appear.

The sizes generated are based of current constants in the `lib/img/index.js`
module. The `SIZES` constant contains a map of `suffix` to `height/width`
values. The suffix `default` is special cased, and will actually mean no
suffix. Every other value will be appended on the end of the URL, with an
underscore.

The current `SIZES` are:

    {
      small: { h: 100, w: 100 },
      default: { h: 200, w: 200 },
      large: { h 600, w: 600 }
    }

which generate 3 images when an upload occurs:

- https://s3.url/<imageid>_small (100px x 100px)
- https://s3.url/<imageid> (200px x 200px)
- https://s3.url/<imageid>_large (600px x 600px)

Closes #68
Closes #89
2015-03-16 10:40:19 -07:00
Sean McArthur ec25152b43 feat(images): delete images from s3 when asked to 2015-02-12 12:15:22 -08:00
Sean McArthur 1108e46209 Merge pull request #82 from mozilla/rfk/handle-500-response-from-worker
fix(avatars): properly detect and report image upload errors
2014-11-17 10:35:15 -08:00
Ryan Kelly 902d0e68ca fix(avatars): properly detect and report image upload errors
Ensure that failures in the image-processing worker are reported back to
the client, rather than being silently ignored.

Closes #79
2014-11-17 11:27:25 +11:00
Ryan Kelly 41fad890db fix(logging): remove spaces from logging op name 2014-11-17 11:09:37 +11:00
Ryan Kelly 290c9ed785 fix(logging): remove spaces from logging op name in the worker
After the switch to mozlog, the first arg to all logging calls is an
"op name" which cannot contain spaces.  This removes one such instance
which was causing (unhandled) errors in the worker process.

Closes #77
2014-11-17 10:54:50 +11:00
Sean McArthur b27b48bf61 feat(logging): use mozlog with heka format
This uses mozlog to make sure all our logs match the Heka JSON Schema.

Closes #71
BREAKING CHANGE: Both the config and the output for logging has changed.
    Config can be removed, as the defaults are what should be used in
    production.
2014-10-30 16:24:49 -07:00
John Morrison 248e2e48f8 feat(server): enable HSTS maxAge six months 2014-10-20 12:44:36 -07:00
Sean McArthur 1826d518c7 remove logging of arguments to img.compute 2014-10-06 12:41:26 -07:00
Sean McArthur 702651ecd6 log time spent in gm and uploading to s3 2014-10-02 19:48:19 -07:00
Sean McArthur d7e2dd47b9 better error handling if compute-cluster throws Strings 2014-10-02 19:46:50 -07:00
Sean McArthur 68daca3853 switch to mysql pool 2014-10-01 17:30:32 -07:00
Zachary Carter 85ffefc9d0 fix(avatars): return the profile image id after a post or upload 2014-09-12 16:13:34 -07:00