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

nsc-events-nestjs-100-archive-event-functionality #101

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

Ali-7s
Copy link
Contributor

@Ali-7s Ali-7s commented Apr 14, 2024

resolves #100

  • Added isArchived field to schema and DTO's
  • Added archive event by id method to service
  • Added archive event endpoint to controller
7b9a13a8-b168-42de-8726-73ecfed79fb5.mp4

Copy link
Contributor

@heosman heosman left a comment

Choose a reason for hiding this comment

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

Tested it on Postman and it's working, however, I noticed you used POST for the archive function's HTTP method. Because something is being updated when the API endpoint is called, rather than created (isArchived being updated from false to true), I think the PATCH or PUT method is better suited for our needs. For reference, Belinda's Closet is using PUT for their archive API endpoint.

@Ali-7s Ali-7s requested review from heosman, Seiyaroo, NahomAlemu, krayzieeddi, tinpham5614, TuongPhamM, a team, bcko and Exochos and removed request for a team April 15, 2024 23:12
Copy link
Contributor

@taylorpapke taylorpapke left a comment

Choose a reason for hiding this comment

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

Looks good now. Thanks for changing post to put. @keiffer213

@heosman heosman merged commit 9cdb1f6 into main Apr 18, 2024
4 checks passed
@heosman heosman deleted the feature-100-archive-event-functionality branch April 18, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Event Details Page: Implement archive event functionality
3 participants