Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

#170947580 add a get most traveled destinations feature #55

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

bbaime98
Copy link
Collaborator

@bbaime98 bbaime98 commented Mar 18, 2020

What does this PR do?

  • add a get the most traveled destination functionality

Description of Task to be completed?

  • add most traveled destination route
  • add most traveled function
  • add the feature's tests and documentation

How should this be manually tested?

  • create an account if you don't have one via: /api/v1/auth/register
  • login : /api/v1/auth/login
  • then view the most traveled destination via: /api/v1/trips/most-travelled

Any background context you want to provide?

What are the relevant pivotal tracker stories?

#170947580

Screenshots (if appropriate)

image

Questions:

@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch from b30fb8e to 3b35c02 Compare March 18, 2020 14:06
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch 4 times, most recently from ff4be4f to 4523022 Compare March 18, 2020 15:42
@bbaime98 bbaime98 added Review Required This PR is waiting to be reviewed and removed work in progress labels Mar 18, 2020
@bbaime98 bbaime98 requested review from izzett222, Baraka-Mugisha and Ntare22 and removed request for izzett222 March 18, 2020 15:46
@bbaime98 bbaime98 changed the title #170947580 add a get most traveled destination feature #170947580 add a get most traveled destinations feature Mar 18, 2020
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch from 4523022 to 663a7cd Compare March 18, 2020 16:22
@bbaime98 bbaime98 added ready for review and removed Review Required This PR is waiting to be reviewed labels Mar 19, 2020
src/controllers/tripsController.js Outdated Show resolved Hide resolved
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch 7 times, most recently from cb78cef to b92a6ce Compare March 24, 2020 10:54
src/tests/unitTests/tripService.test.js Outdated Show resolved Hide resolved
src/routes/tripsRoutes.js Outdated Show resolved Hide resolved
src/routes/tripsRoutes.js Outdated Show resolved Hide resolved
src/services/localesServices/locales/en.json Outdated Show resolved Hide resolved
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch 2 times, most recently from 292c91c to b934cdc Compare March 24, 2020 11:33
Copy link
Contributor

@Ntare22 Ntare22 left a comment

Choose a reason for hiding this comment

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

Great work bien aime. please add integration tests?

src/tests/unitTests/tripService.test.js Show resolved Hide resolved
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch from b934cdc to fe79d72 Compare March 24, 2020 11:47
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch from fe79d72 to 1c4c446 Compare March 24, 2020 11:51
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-travelle-hqv1pf March 24, 2020 12:09 Inactive
Ntare22
Ntare22 previously approved these changes Mar 24, 2020
Baraka-Mugisha
Baraka-Mugisha previously approved these changes Mar 24, 2020
@bbaime98 bbaime98 dismissed stale reviews from Baraka-Mugisha and Ntare22 via 25c1df4 March 24, 2020 12:53
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch from 1c4c446 to 25c1df4 Compare March 24, 2020 12:53
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch from 25c1df4 to 652baa4 Compare March 24, 2020 13:36
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-travelle-wbvij5 March 24, 2020 13:36 Inactive
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-travelle-zko94t March 24, 2020 13:45 Inactive
Ntare22
Ntare22 previously approved these changes Mar 24, 2020
izzett222
izzett222 previously approved these changes Mar 25, 2020
@jabichris
Copy link
Contributor

Good work @bbaime98, but I am wondering why are you limiting the user to just the top three traveled destinations? Just fix this so that this feature can be merged to develop. Happy coding!

- add most traveled destiantion route
- add most traveled function
- add the feature's tests and documentation

[Finishes ##170947580]
@bbaime98 bbaime98 dismissed stale reviews from izzett222 and Ntare22 via efab6ad March 25, 2020 09:46
@bbaime98 bbaime98 force-pushed the ft-travelled-destinations-170947580 branch from 652baa4 to efab6ad Compare March 25, 2020 09:46
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-travelle-zthblk March 25, 2020 10:11 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants