Wire up Organization in other data types
ClosedPublic

Authored by lbeltrame on Apr 4 2018, 9:41 PM.

Details

Summary

Use the newly-made class as provider in Reservation, Flight,
TrainTrip and BusTrip

Test Plan

Added unit test, passed

Diff Detail

Repository
R1003 KItinerary: Travel Reservation handling library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lbeltrame created this revision.Apr 4 2018, 9:41 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptApr 4 2018, 9:41 PM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
lbeltrame requested review of this revision.Apr 4 2018, 9:41 PM
lbeltrame updated this revision to Diff 31334.Apr 4 2018, 9:44 PM
  • Reorder includes
  • Wire up also BusTrip (with added test)
vkrause accepted this revision.Apr 5 2018, 7:21 AM
vkrause added inline comments.
src/datatypes/flight.h
61

Uh, so schema.org unified "airline" to "provider" here too. The test data I have still uses "airline", so I never noticed...

This means we will eventually need to move this in a yet to be created normalization/migration stage in post-processing and we need to inherit Airline from Organization. Anyway, that's way beyond the scope of this patch :)

This revision is now accepted and ready to land.Apr 5 2018, 7:21 AM
This revision was automatically updated to reflect the committed changes.