Skip to content

User photo upload failed from half half experience, the copies of photos were not created during the upload pipeline #75

Description

@youralien

Problem:

image-1

Finding the submissions for this need

db.submissions.find({iid: "c9kEF29kkowAX9jE4", eid: "j7PeAeh5YHz2BYALZ", needName: 'hour 16', uid: {$exists: true}}).pretty()
{
	"_id" : "j3fHzMsjY7GDnTzuC",
	"eid" : "j7PeAeh5YHz2BYALZ",
	"iid" : "c9kEF29kkowAX9jE4",
	"needName" : "hour 16",
	"uid" : "zAaf5AP3338RJMnKY",
	"content" : {
		"leftHalfPreview" : "AydCnWKqQfKwFvRtr"
	},
	"lat" : 41.99231080205024,
	"lng" : -87.66115929142886,
	"timestamp" : ISODate("2018-08-08T21:48:08.129Z")
}
{
	"_id" : "2mjGJw8ShnoPAmsEx",
	"eid" : "j7PeAeh5YHz2BYALZ",
	"iid" : "c9kEF29kkowAX9jE4",
	"needName" : "hour 16",
	"uid" : "wSrJwoadcCek5fcyh",
	"content" : {
		"rightHalfPreview" : "z8Q8Qe2kYMYHbSkpP"
	},
	"lat" : 33.60868035818786,
	"lng" : -117.8720235173757,
	"timestamp" : ISODate("2018-08-08T23:26:10.736Z")
}

And the linked photos for "wSrJwoadcCek5fcyh".

db.cfs.images.filerecord.find({_id: "z8Q8Qe2kYMYHbSkpP"}).pretty()
{
	"_id" : "z8Q8Qe2kYMYHbSkpP",
	"original" : {
		"updatedAt" : ISODate("2018-08-08T23:26:10.790Z"),
		"size" : 214917,
		"type" : "image/png"
	},
	"chunkCount" : 0,
	"chunkSize" : 2097152,
	"chunkSum" : 1,
	"iid" : "c9kEF29kkowAX9jE4",
	"lat" : 33.60868035818786,
	"lng" : -117.8720235173757,
	"needName" : "hour 16",
	"uid" : "wSrJwoadcCek5fcyh"
}

What a linked photo is supposed to look like

db.cfs.images.filerecord.find({_id: "AydCnWKqQfKwFvRtr"}).pretty()
{
	"_id" : "AydCnWKqQfKwFvRtr",
	"original" : {
		"updatedAt" : ISODate("2018-08-08T21:48:08.153Z"),
		"size" : 255542,
		"type" : "image/png"
	},
	"iid" : "c9kEF29kkowAX9jE4",
	"lat" : 41.99231080205024,
	"lng" : -87.66115929142886,
	"needName" : "hour 16",
	"uid" : "zAaf5AP3338RJMnKY",
	"uploadedAt" : ISODate("2018-08-08T21:48:09.333Z"),
	"metadata" : {
		"height" : 480,
		"width" : 240
	},
	"copies" : {
		"thumbs" : {
			"type" : "image/png",
			"size" : 276984,
			"key" : "5b6b651a2b74750004c29c64",
			"updatedAt" : ISODate("2018-08-08T21:48:11.697Z"),
			"createdAt" : ISODate("2018-08-08T21:48:11.697Z")
		},
		"images" : {
			"type" : "image/png",
			"size" : 237343,
			"key" : "5b6b651a2b74750004c29c63",
			"updatedAt" : ISODate("2018-08-08T21:48:11.449Z"),
			"createdAt" : ISODate("2018-08-08T21:48:11.449Z")
		}
	}
}

What the logs said when another user (probably my dad - wSr) besides me (hT...) and darren (zAaf) submitted

2018-08-08T16:44:04.148199+00:00 app[web.1]: [info]: Submissions DB Changed!
2018-08-08T16:44:04.178643+00:00 heroku[router]: at=info method=OPTIONS path= "/cfs/files/images/ngLjSZR6PhF9XrBNn?chunk= 0&filename= undefined&token=eyJhdXRoVG9rZW4iOiJ4TFkyamJCVlNFN0JGY3dweU5DVmNmdDk0YXllZjVvbkFnWkRNeTFVOG8yIn0%3D" host=ce-platform.herokuapp.com request_id=76ce7025-7730-4e11-9efe-1a9e67650579 fwd="165.124.145.212" dyno=web.1 connect=6ms service=50ms status=200 bytes=1547 protocol=https
2018-08-08T16:44:04.148589+00:00 app[web.1]: [info]: eid,iid,needName,uid,content,_id,lat,lng,timestamp
2018-08-08T16:44:04.192977+00:00 app[web.1]: [cerebro]: Sending push notifications to ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,hTkMMjv39hwdq2sM5,,,,zAaf5AP3338RJMnKY,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2018-08-08T16:44:04.193036+00:00 app[web.1]: [cerebro]: {"title":"Someone added to the 24 hour photo album. Click here to see progress on the album.","text":"","iid":"c9kEF29kkowAX9jE4","route":"/apicustomresults/c9kEF29kkowAX9jE4/j7PeAeh5YHz2BYALZ"}
2018-08-08T16:44:04.421578+00:00 heroku[router]: at=info method=PUT path= "/cfs/files/images/ngLjSZR6PhF9XrBNn?chunk= 0&filename= undefined&token=eyJhdXRoVG9rZW4iOiJ4TFkyamJCVlNFN0JGY3dweU5DVmNmdDk0YXllZjVvbkFnWkRNeTFVOG8yIn0%3D" host=ce-platform.herokuapp.com request_id=978d4e3b-9a40-4889-ae03-ed72bddcb2b6 fwd="165.124.145.212" dyno=web.1 connect=2ms service=207ms status=200 bytes=1207 protocol=https
2018-08-08T16:44:07.361375+00:00 heroku[router]: at=info method=GET path= "/cfs/files/images/ngLjSZR6PhF9XrBNn?token= eyJhdXRoVG9rZW4iOiJ4TFkyamJCVlNFN0JGY3dweU5DVmNmdDk0YXllZjVvbkFnWkRNeTFVOG8yIn0%3D&store=images" host=ce-platform.herokuapp.com request_id=0abe506f-72de-48d3-881f-5daaf5acecd2 fwd="165.124.145.212" dyno=web.1 connect=1ms service=528ms status=200 bytes=545583 protocol=https

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions