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

Index is always zero #48

Open
PorterHoskins opened this issue Aug 18, 2017 · 1 comment
Open

Index is always zero #48

PorterHoskins opened this issue Aug 18, 2017 · 1 comment

Comments

@PorterHoskins
Copy link

The index field on FeedItem is always zero.

[{
	"isActive": true,
	"title": "More2Life and the Harlem Jets",
	"description": "More2Life and the Harlem Jets",
	"index": 0,
	"previewImageUrl": "http://dt1b0fim8aonr.cloudfront.net/More2Life++the+Harlem+Jets+%E2%80%94+2017/thumbnail-00001.png",
	"videoUrl": "http://dt1b0fim8aonr.cloudfront.net/More2Life++the+Harlem+Jets+%E2%80%94+2017/index.m3u8",
	"publishDate": "1970-01-01T00:00:02.017Z",
	"views": 2,
	"type": "video",
	"_id": "598fe99ff36d286bd49252a6"
}, {
	"title": "Baseball T",
	"description": "Baseball T",
	"index": 0,
	"isActive": true,
	"vendorId": "ABMTBNOS34BCKHJILTHX5Q7O",
	"previewImageUrl": "https://square-production.s3.amazonaws.com/files/a4596f8f72aceb90ce37dda693c0598a895fd0ca/original.png",
	"lastUpdatedAt": "2017-08-03T22:13:45.074Z",
	"__v": 0,
	"type": "listing",
	"_id": "598ff05903a11c0004857871"
}, {
	"title": "Zip Up",
	"description": "Zip Up",
	"index": 0,
	"isActive": true,
	"vendorId": "WPJ4WU4Q4H5EID4EJOQHOJYP",
	"previewImageUrl": "https://square-production.s3.amazonaws.com/files/711250576237ff41cec3fc11203028113fa787cf/original.png",
	"lastUpdatedAt": "2017-08-03T22:25:07.24Z",
	"__v": 0,
	"type": "listing",
	"_id": "598ff05903a11c0004857873"
}, {
	"title": "Hoodie",
	"description": "Hoodie",
	"index": 0,
	"isActive": true,
	"vendorId": "7CAH63C6N4U2BOAFSFBIO7EC",
	"previewImageUrl": "https://square-production.s3.amazonaws.com/files/f5ac784fc6fc3a3d8a23ffc1925318ef556e1399/original.png",
	"lastUpdatedAt": "2017-08-03T22:31:52.369Z",
	"__v": 0,
	"type": "listing",
	"_id": "598ff05903a11c0004857872"
}, {
	"title": "M2L Hat",
	"description": "This is the M2L hat description",
	"index": 0,
	"isActive": true,
	"vendorId": "11775794564",
	"previewImageUrl": "https://cdn.shopify.com/s/files/1/2279/5781/products/hat.png?v=1502952261",
	"lastUpdatedAt": "2017-08-17T00:44:21-06:00",
	"price": 25,
	"__v": 0,
	"type": "listing",
	"_id": "59953b815fa0350004cc5a48"
}, {
	"title": "Courtney's Birthday Party",
	"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
	"index": 0,
	"isActive": true,
	"eventUrl": "https://www.eventbrite.com/e/courtneys-birthday-party-tickets-36848980292",
	"resourceUri": "https://www.eventbriteapi.com/v3/events/36848980292/",
	"imageUrl": "https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F33998414%2F216775133792%2F1%2Foriginal.jpg?s=ffd3426dcd4bca5011769c2aaf9a463d",
	"startTime": "2017-09-12T19:00:00",
	"endTime": "2017-09-12T22:00:00",
	"address": "7314 East Minton Circle, Mesa, AZ 85207",
	"area": "Mesa, AZ",
	"latitude": "33.4614081",
	"longitude": "-111.67268860000001",
	"venueName": "Wilson House",
	"venueId": "20639301",
	"__v": 0,
	"eventStatus": "live",
	"type": "event",
	"_id": "598fe8dc03a11c0004857870",
	"multiLineAddress": ["7314 East Minton Circle", "Mesa, AZ 85207"]
}, {
	"title": "BYU vs Boise State",
	"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
	"index": 0,
	"isActive": true,
	"eventUrl": "https://www.eventbrite.com/e/byu-vs-boise-state-tickets-36852120685",
	"resourceUri": "https://www.eventbriteapi.com/v3/events/36852120685/",
	"imageUrl": "https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F34000609%2F216775133792%2F1%2Foriginal.jpg?s=b2543faed39a9de3141d9141ef496cbb",
	"startTime": "2017-10-06T19:15:00",
	"endTime": "2017-10-06T22:15:00",
	"address": "1700 North Canyon Road, Provo, UT 84604",
	"area": "Provo, UT",
	"latitude": "40.2572768",
	"longitude": "-111.6545582",
	"venueName": "LaVell Edwards Stadium",
	"venueId": "20714092",
	"__v": 0,
	"eventStatus": "live",
	"type": "event",
	"_id": "59911d1703a11c0004857874",
	"multiLineAddress": ["1700 North Canyon Road", "Provo, UT 84604"]
}]
@dodgertodd
Copy link
Member

Technically this is "by design." we just haven't figured out how to auto-increment a field in mongo. not that we can't; we just haven't tried yet.

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

No branches or pull requests

2 participants