Skip to content

Delete Trips#82

Merged
zghera merged 16 commits into
masterfrom
delete-trip
Jul 28, 2020
Merged

Delete Trips#82
zghera merged 16 commits into
masterfrom
delete-trip

Conversation

@zghera
Copy link
Copy Markdown
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
@zghera zghera requested review from anan-ya-y and keiffer01 July 20, 2020 13:57
Copy link
Copy Markdown
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.

Comment thread frontend/src/components/ViewTrips/delete-trip-button.js Outdated
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js
@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
Comment thread frontend/src/components/ViewTrips/trips-container.js Outdated
@zghera zghera requested a review from keiffer01 July 21, 2020 22:48
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js Outdated
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js Outdated
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js Outdated
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js Outdated
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js
Comment thread frontend/src/components/ViewTrips/delete-trip-button.js
Comment thread frontend/src/components/ViewTrips/trip.js
Comment thread frontend/src/components/ViewTrips/trips-container.js
@zghera zghera requested a review from HiramSilvey July 24, 2020 21:56
@zghera
Copy link
Copy Markdown
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