-
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
Feature: Allow edit and delete for tech stack item #152
Feature: Allow edit and delete for tech stack item #152
Conversation
…into feature/allow_edit_and_delete_for_tech_stack_item
sorry that was an accident - I thought I deleted the local branch as I accidentally commited to 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.
items can be edited/deleted even voyageTeamMemberId doesn't match, maybe they can be added as part of "Adding more permissions"? Although it looks like voyageTeamMemberId is not used, if that's the case we can remove it from the request body, since you're using the user Id to check instead of voyageTeamMemberId, which I think it's good enough, I think the chance of the user accidentally updating another one of their tech items from another team (same userId but different teamMemberId) would be low
Another thing is teamId doesn't seem to be used, so we can leave that out if that's the case
I think the endpoints should probably be PATCH/DELETE voyages/techs/{teamTechId}
based on API route naming conventions (I know I put something else in the task description, but please let me know if anything doesn't make sense in future)
which makes it really similar to the vote endpoint - maybe the vote endpoint needs to append /vote
to it, might discuss it with the team
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.
I don't know if you are adding more permissions checks - but currently all tests pass and swagger routes work
I think @Ajen07 is still working on the changes since I got a DM just yesterday? Please let us know if this is ready to be reviewed again |
…into feature/allow_edit_and_delete_for_tech_stack_item
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! tested in swagger passed. I ran yarn test:docker
and got a message "A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles
to find leaks. Active timers can also cause this, ensure that .unref() was called on them."
when I ran yarn test:docker --detectOpenHandles
all test passed and didn't see the warning.
Ran yarn test:docker
a second time and all tests passed with no warnings. So I guess it something on my end.
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.
I did the same check again and it worked. I only have a suggestion to update the description to a more descriptive one as commented.
All tests passed with all the new updates
Thanks!
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.
I noticed some typescript error within the updated code.
What errors are you facing ? |
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.
Checked again. All tests passed.
Description
In the above PR the below changes are made:
updated endpoints
Issue link
Fixes # (issue)
Type of change
How Has This Been Tested?
Tested with all the existing and new tests.
Checklist: