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

Feature/api rating bookmark data model #1131

Merged
merged 31 commits into from
Jun 15, 2016

Conversation

brylie
Copy link
Contributor

@brylie brylie commented Jun 13, 2016

Closes #1130

Proposed changes

  • add averageRating and bookmarkCount fields to ApiBackends
  • add setAverageRating collection helper for ApiBackends
  • add getAverageRating and getBookmarkCount helpers for ApiBackends
  • add setAllApiBackendAverageRatings method

@brylie brylie added this to the Sprint 24 milestone Jun 13, 2016
apiBackend.setAverageRating();
});
},
setApiBackendAverageRating (apiBackendId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@brylie method name here could be something like set ApiBackendBookmarkCount

Copy link
Contributor Author

@brylie brylie Jun 14, 2016

Choose a reason for hiding this comment

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

Which method? The setApiBackendAverageRating is related to the averageRating field. Hence, this method is in the ratings.js file.

Copy link
Contributor

Choose a reason for hiding this comment

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

@brylie Ok, I confused this because console.log says about bookmarks. Could you also cleanup/fix console.logs?

@jykae
Copy link
Contributor

jykae commented Jun 14, 2016

@brylie Overall nice work, other thing to fix before I merge this,
we need to set new field values on probably on startup, possibly by doing it as migration (running once). Or any other idea for that?

EDIT: We need to decide if we continue to use percolate:migrations, package needs maintainer https://github.com/percolatestudio/meteor-migrations#call-for-maintainers

@jykae
Copy link
Contributor

jykae commented Jun 15, 2016

Ok, merging in, so I can integrate this to my table view. Thanks @brylie

@jykae jykae merged commit c5a17b2 into develop Jun 15, 2016
@jykae jykae deleted the feature/api-rating-bookmark-data-model branch June 15, 2016 08:52
@jykae jykae removed the in progress label Jun 15, 2016
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