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

API v3 Short-Term Roadmap 1 #6509

Closed
37 of 43 tasks
paglias opened this issue Jan 13, 2016 · 14 comments
Closed
37 of 43 tasks

API v3 Short-Term Roadmap 1 #6509

paglias opened this issue Jan 13, 2016 · 14 comments

Comments

@paglias
Copy link
Contributor

paglias commented Jan 13, 2016

This is a list of small items regarding the upcoming API v3. If you plan to make a Pull Request just announce it with a comment. We'd like to have atomic PRs so each one should only implement 1 route and its tests, if you plan to do more (awesome!) just propose separate PRs. All PRs must be done against the api-v3-groups branch.

Members

  • tests for getMember route
  • option to always populate leader? (on hold)
  • route to get members for challenges and tests (assigned to @paglias)

Groups

Challenges

  • Challenge.getChallenge (assigned to @paglias)
  • Get challenges for group and tests (assigned to @paglias)
  • Update challenge route and tests (assigned to @paglias)
  • Challenge export to CSV route and tests (assigned to @paglias)
  • Get member progress route and tests (assigned to @paglias)
  • join route and tests (assigned to @KristianTashkov)
  • leave route and tests (assigned to @KristianTashkov)
  • user.unlink (assigned to @paglias)
  • tests for select winner route (assigned to @KristianTashkov)
  • tests for delete route (assigned to @KristianTashkov)
  • tests for create route (assigned to @crookedneighbor)
  • tests for get single challenge route
  • populate leader and group info

Chat

Quest

Tasks

  • clearCompleted todos route and tests
  • getTasks route: add ability to get only completed todos (assigned to @paglias)
  • fix move task and tests (assigned to @paglias)
  • score task: when a todo is un-completed dateCompleted attribute must be removed (assigned to @paglias)
  • unlinkTask route (assigned to @paglias)

Cron

  • decide whether to move code to /src and tests (on hold for now)
  • unit tests

Unit tests

  • Group.getGroup
  • challenges methods for access control (canView, canModify, hasAccess, isMember)
  • Tests for challenges tasks routes, sync and user.unlinkChallengesTasks
  • tests for unlinkTask route

Other

  • Go though pending tests (on hold)
  • port new history preening (assigned to @paglias)
@paglias paglias changed the title API v3 Short Term Roadmap 1 API v3 Short-Term Roadmap 1 Jan 13, 2016
@paglias
Copy link
Contributor Author

paglias commented Jan 13, 2016

I forgot, all PRs must be done against the api-v3-groups branch.

@GeorgeSG
Copy link
Contributor

I want to start with something simple, so I think I'll try this one: tests for get group route :)

@paglias
Copy link
Contributor Author

paglias commented Jan 13, 2016

@GeorgeSG I may have made an error, I think that one has already been taken by @TheHollidayInn along with the one for getting all groups. I'm sorry, I'll update the issue once I get home

@paglias
Copy link
Contributor Author

paglias commented Jan 13, 2016

@GeorgeSG I've updated the issue, if you wanted to try something simple I'd probably suggest tests for remove group member route or tests for getMember route but this second one is currently in the api-v3-members branch, I'd reccomend the first one since it's in a more stable branch

@KristianTashkov
Copy link
Contributor

@paglias reserving Challenges join and leave. If I take too long with the join route, someone can take leave 😸

@paglias
Copy link
Contributor Author

paglias commented Jan 13, 2016

@KristianTashkov great :) I'd do join before since there's already the code to sync data to a user (challenge.syncToUser). Note that this method still needs testing so if it doesn't work and the reason of the fail is not obvious or not easy to fix, ignore it (maybe out a TODO) and we'll enable it when it works. Also syncToUser has been rewritten in api-v3-challenges-tasks so you should probably PR against that branch

For leave you'll need to implement a method to remove challenge data from the user, the old one that we used in v2 was user.unlink that you can find in the user model

@TheHollidayInn
Copy link
Contributor

I'm still working through the groups stuff, but I can continue working on the chat routes as we go. I need to work on them for some tests any way.

@SabreCat
Copy link
Member

I've been spending so much of my days on architecture and support that I haven't been coding as much as I'd like to, but I'd like to help out with this at least a little. Maybe some of the Quests stuff would be the right size.

@paglias
Copy link
Contributor Author

paglias commented Jan 19, 2016

@SabreCat just assign yourself to one of those items (or to all!) :)
@TheHollidayInn I'll assign you to the chat routes

@SabreCat
Copy link
Member

Claimed the first one off the list. Hopefully by aiming small I can follow through OK :p

@SabreCat
Copy link
Member

I have tests almost done for /quest/invite. Could y'all smart people take a look at https://github.com/HabitRPG/habitrpg/pull/6565/files and share thoughts before I get into the route? There's one test I've commented that I'm not sure what the expected result should be, in particular.

@TheHollidayInn
Copy link
Contributor

Awesome! I'll take a look in the next few minutes.

@KristianTashkov
Copy link
Contributor

@paglias sign me up for the remaining two challenge tasks

@paglias
Copy link
Contributor Author

paglias commented Jan 27, 2016

@KristianTashkov the tests for create and select winner routes?

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

5 participants