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

#170947570 manager re-confirm request #36

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

izzett222
Copy link
Collaborator

What does this PR do?

add the re-confirm feature where a manager is able to confirm a decision (accepted or rejected) on a request

Description of Task to be completed?

  • add the reconfirm controller and route
  • test the feature
  • add the managerId and confirm attribute to the request table

How should this be manually tested?

  • clone this repo
  • run npm install
  • run the server (npm run dev)
  • make a put request to /api/v1/trips/:requestId/confirm

Any background context you want to provide?

N/A

What are the relevant pivotal tracker stories?

#170947570

Screenshots (if appropriate)

Screen Shot 2020-02-26 at 16 53 40

Screen Shot 2020-02-26 at 16 53 13

Screen Shot 2020-02-26 at 16 52 01

Screen Shot 2020-02-26 at 16 51 47

Questions:

@izzett222 izzett222 force-pushed the ft-reconfirm-request-170947570 branch from 4d876c7 to 0c88d1a Compare February 26, 2020 14:59
@izzett222 izzett222 requested review from Baraka-Mugisha, bbaime98, Ntare22 and Mnickii and removed request for Baraka-Mugisha and bbaime98 February 26, 2020 15:00
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-reconfir-p5sfgk February 26, 2020 15:01 Inactive
@izzett222 izzett222 force-pushed the ft-reconfirm-request-170947570 branch from 0c88d1a to 536fe1a Compare February 26, 2020 15:27
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-reconfir-p5sfgk February 26, 2020 15:27 Inactive
Ntare22
Ntare22 previously approved these changes Feb 26, 2020
src/seeders/20200212121323-User.js Show resolved Hide resolved
src/swagger/trips.swagger.js Outdated Show resolved Hide resolved
@izzett222 izzett222 force-pushed the ft-reconfirm-request-170947570 branch from 536fe1a to 23d56b9 Compare February 26, 2020 15:49
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-reconfir-p5sfgk February 26, 2020 15:49 Inactive
@izzett222 izzett222 force-pushed the ft-reconfirm-request-170947570 branch from 23d56b9 to c8f7232 Compare February 26, 2020 15:54
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-reconfir-p5sfgk February 26, 2020 15:54 Inactive
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-reconfir-p5sfgk February 26, 2020 15:57 Inactive
@izzett222 izzett222 force-pushed the ft-reconfirm-request-170947570 branch from 259b15e to db4387d Compare February 26, 2020 16:02
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-reconfir-p5sfgk February 26, 2020 16:02 Inactive
Ntare22
Ntare22 previously approved these changes Feb 26, 2020
Baraka-Mugisha
Baraka-Mugisha previously approved these changes Feb 26, 2020
@izzett222 izzett222 force-pushed the ft-reconfirm-request-170947570 branch from db4387d to 5649290 Compare February 26, 2020 17:54
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-reconfir-p5sfgk February 26, 2020 17:54 Inactive
@@ -107,7 +107,7 @@ export default class requestController {
passportName,
role
}],
status: 'Open'
status: 'open',
Copy link
Contributor

Choose a reason for hiding this comment

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

which case did we decide to go with?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lower case is much better so that's what we are going with

@@ -49,7 +49,7 @@ export default class requestController {
passportName,
role
}],
status: 'Open'
status: 'Open',
Copy link
Contributor

Choose a reason for hiding this comment

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

Then this should change too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

let me change the code so that the data always inter the database as small letter even tho it wasn't entered as small letters

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I solved it, now when someone input data like a city, it will directly be converted to small letters

Mnickii
Mnickii previously approved these changes Feb 27, 2020
Ntare22
Ntare22 previously approved these changes Feb 27, 2020
- add the reconfirm controller and route
- test the feature
-  add the managerId and confirm attribute to the request table

[Maintains #170947570]
@izzett222 izzett222 dismissed stale reviews from Ntare22 and Mnickii via 4ecfacd February 27, 2020 08:28
@izzett222 izzett222 force-pushed the ft-reconfirm-request-170947570 branch from 5649290 to 4ecfacd Compare February 27, 2020 08:28
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-reconfir-p5sfgk February 27, 2020 08:29 Inactive
@ceelogre ceelogre merged commit 3bd32d5 into develop Feb 27, 2020
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

6 participants