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

Hotfix/latestApiBackends subscription - closes #742 #748

Merged
merged 6 commits into from
Jan 6, 2016

Conversation

frenchbread
Copy link
Contributor

Related issue #742


// Cursor
instance.latestApiBackendsCursor = function () {
return ApiBackends.find({}, {sort: {created_at: -1}, limit: instance.limit.get()});
Copy link
Contributor

Choose a reason for hiding this comment

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

Just add a comment here describing the cursor. Specifically mention the desired result of the sort.created_at and limit parts, as they may be unfamiliar to new developers.

@brylie brylie self-assigned this Jan 5, 2016
@brylie brylie added this to the Sprint 20 milestone Jan 5, 2016
// Retrieve 6 last API Backends
var latestApiBackends = ApiBackends.find({}, {sort: {created_at: -1}, limit: 6}).fetch();
// Retrieve last API Backends
var latestApiBackendsList = instance.latestApiBackendsCursor().fetch();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice variable name. This is helpful when reading through the code.

@frenchbread
Copy link
Contributor Author

@brylie Added fixes.

brylie added a commit that referenced this pull request Jan 6, 2016
Hotfix/latestApiBackends subscription - closes #742
@brylie brylie merged commit cb5e0db into develop Jan 6, 2016
@brylie brylie removed the in progress label Jan 6, 2016
@brylie brylie deleted the hotfix/latestApiBackends-subscription branch January 6, 2016 11:46
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.

None yet

2 participants