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

Delete Trips #82

Merged
merged 16 commits into from
Jul 28, 2020
Merged

Delete Trips #82

merged 16 commits into from
Jul 28, 2020

Conversation

zghera
Copy link
Collaborator

@zghera zghera commented Jul 20, 2020

What is a quick description of the change?

Add functionality to delete a trip and its associated sub-collection of activities

Is this fixing an issue?

None.

Are there more details that are relevant?

The main addition of this PR is to the ViewTrips directory with the following files:

  • trips-container.js: Add new prop refreshTripContainer and pass it as prop to Trip component.
  • trip.js: Add instance of DeleteTripsButton` alongside the other buttons for a trip.
  • delete-trip-button.js: Handles the deletion of a trip and its sub-collection of activities using the methods described in the docs.

Check lists (check x in [ ] of list items)

  • [ ] Test written/updating
  • [ ] Tests passing
  • Coding style (indentation, etc)

As of now, integration (end-to-end) tests were deemed non-critical. Thus, functions related to react and firestore will be tested at a later time. Unit tests were not written for this PR as there was no (original) "logical" functions written to complete this feature.

Any additional comments?

GIF showing functionality:
delete-trip

@zghera zghera changed the base branch from master to edit-trip-implementation July 20, 2020 13:24
Copy link
Collaborator

@anan-ya-y anan-ya-y left a comment

Choose a reason for hiding this comment

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

I like the trip names on your demo.

@anan-ya-y anan-ya-y self-assigned this Jul 21, 2020
@zghera zghera self-assigned this Jul 21, 2020
@zghera zghera requested a review from anan-ya-y July 21, 2020 18:06
@anan-ya-y anan-ya-y removed their assignment Jul 21, 2020
@zghera zghera marked this pull request as ready for review July 21, 2020 20:11
@zghera zghera requested a review from keiffer01 July 21, 2020 22:48
@zghera zghera requested a review from HiramSilvey July 24, 2020 21:56
@zghera
Copy link
Collaborator Author

zghera commented Jul 24, 2020

I think these are only good for debugging, and should not be left in final code. If you plan to remove these later, open an issue. Otherwise I recommend removing them.

Issue #93 opened a few days ago for this.

Base automatically changed from edit-trip-implementation to master July 24, 2020 22:28
@zghera zghera mentioned this pull request Jul 28, 2020
@zghera zghera merged commit 0b04c09 into master Jul 28, 2020
@zghera zghera deleted the delete-trip branch July 28, 2020 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants