-
Notifications
You must be signed in to change notification settings - Fork 150
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
[WIP] Add deprecate notes #40
base: master
Are you sure you want to change the base?
[WIP] Add deprecate notes #40
Conversation
0f3e9cd
to
f82317f
Compare
@stephane-monnot I believe we should keep |
Yes, but maybe rename |
@hootlex Could you valid the roadmap ("new method" checklist above) for deprecated notes and answer the "only 1 way" questions please ? |
By keeping the current About '1 way', I agree. They should work how they used to work to avoid confusion. |
Yes, but I'm a little confused about friendships and friends. |
Keep the |
@stephane-monnot let me know when this is ready to merge. |
I have to implement new methods because we can't mark methods as deprecated without alternatives. |
…ed public "friends" method
f82317f
to
e260fb3
Compare
@hootlex Could you work on this PR and :
I can work a little on this PR this month, but I don't have time as before, because I'm teaching in a school. |
@stephane-monnot I am very happy to hear that. 😄 I don't have a lot of time now too because I am working on my Vue.js book. Though, I expect to start working on this upgrade next month. Also, I will create a Gitter channel to be able to discuss about the package. |
Improve display of deprecated errors:
Method to deprecate:
Fix all deprecated errors for the build:
Add more details about new methods in deprecated notes:
@deprecated
commentsNew methods (lazy getters = return a collection of model, a model instance or a integer for count method):
FriendRequests
getFriendship
becomegetFriendRequest
(only 1 way ?)getAllFriendships
becomegetFriendRequests
(only 1 way ?)getPendingFriendships
becomegetPendingFriendRequests
(only 1 way ?)getAcceptedFriendships
becomegetAcceptedFriendRequests
(only 1 way ?)getDeniedFriendships
becomegetDeniedFriendRequests
(only 1 way ?)getBlockedFriendships
becomegetBlockedFriendRequests
(only 1 way ?)getFriends
Model (ex: User)
getMutualFriends
getMutualFriendsCount
getFriendsOfFriends
getFriendsCount