-
Notifications
You must be signed in to change notification settings - Fork 5
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
Delete ideation vote and ideation #161
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, all the e2e testing passed and but the unit tests failed for ideations.service.spec.ts
on line 252. could you look into it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the E2E test pass for ideation but I still getting a failure for the ideations.service.spec.ts
on line 252. I think the issue is that you are comparing the result
object to the ideationVoteOne
object, which the later has projectIdeaId
and the result
has just id
. I think checking if these ids are equal would pass the unit tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, since the unit tests worked for @cherylli. I'll say it a pass then. but it does seem to be out-of-date with dev
branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merged dev into the branch, rerun tests locally, all passed
also tested manually with swagger and works as expected 👍
Description
This PR updates the DELETE
voyages/teams/{teamId}/ideations/{ideationId}/ideation-votes
route to also delete the corresponding ideation, if there are no more votes for it.Notes:
Functions
deleteIdeation
anddeleteIdeationVote
have been refactored to avoid conflicting with each otherUpated e2e tests to check deletion of ideation when last vote is deleted
Fixed conflicts with other tests
Issue link
Fixes # 86b0fw6kn
Type of change
How Has This Been Tested?
In swagger: Login, post vote for team 1, ideation 1
In Prisma Studio: delete original projectIdeaVote (id: 1)
In Swagger: delete vote for team 1, ideation 1
Check results in Studio: no projectIdeaVotes for 1 , no projectIdea 1
Tests:
yarn test:e2e ideations
Checklist: