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

Refactor Objects in ViewTrips Directory #97

Merged
merged 23 commits into from
Aug 5, 2020
Merged

Conversation

zghera
Copy link
Collaborator

@zghera zghera commented Jul 23, 2020

What is a quick description of the change?

Updates all JS objects to use the dict rather than struct format for updating/accessing in order to use the constants in database.js in all appropriate cases.

Is this fixing an issue?

fixes #84

Are there more details that are relevant?

Updated fields in database.js for more clarity:

  • TRIPS_NAME --> TRIPS_TITLE
  • TRIPS_CREATION_TIME --> TRIPS_UPDATE_TIMESTAMP

Also had to create a new firestore index as a result.

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

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

Any additional comments?

@zghera zghera requested review from anan-ya-y and keiffer01 July 23, 2020 18:09
@zghera zghera self-assigned this Jul 23, 2020
frontend/src/components/ViewTrips/trip.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/trip.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/trip.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/trip.js Show resolved Hide resolved
frontend/src/components/ViewTrips/trip.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/trip.test.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/trips-container.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/trips-container.js Outdated Show resolved Hide resolved
frontend/src/components/Utils/time.js Outdated Show resolved Hide resolved
frontend/src/components/Utils/time.js Outdated Show resolved Hide resolved
frontend/src/components/Utils/time.js Outdated Show resolved Hide resolved
@zghera zghera requested a review from keiffer01 July 24, 2020 22:39
@zghera zghera marked this pull request as ready for review July 29, 2020 03:30
frontend/src/components/Utils/filter-input.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/save-trip-modal.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/trip.js Outdated Show resolved Hide resolved
frontend/src/components/ViewTrips/trips-container.js Outdated Show resolved Hide resolved
zghera added 5 commits July 29, 2020 17:46
Issue earlier with error component must have been a different error that was accidentally fixed when switching to the asynchronous version of this function.
…les for keys rather than initialize empty objects and inserting key:value pairs.
@zghera zghera requested a review from HiramSilvey July 29, 2020 23:32
zghera added 3 commits July 30, 2020 19:36
The merge did not update one field from struct to dict syntax and thus the field did not exist == undef.
@zghera zghera requested a review from HiramSilvey August 3, 2020 21:53
Base automatically changed from real-time-updates to fix-trips-timezones August 5, 2020 01:58
Base automatically changed from fix-trips-timezones to master August 5, 2020 02:04
@zghera zghera merged commit c70223b into master Aug 5, 2020
@zghera zghera deleted the struct-to-dict-objs branch August 5, 2020 16: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.

Switch Objects in ViewTrips Direc. from Struct to Dict
4 participants