This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 86
Migration to eat api #1422
Closed
Closed
Migration to eat api #1422
Changes from all commits
Commits
Show all changes
113 commits
Select commit
Hold shift + click to select a range
ae4b566
Found a bug causing the cafeteria card to not be shown; Refactoring f…
Liqs-v2 c49652d
Added data classes used to deserialize eat-api response
Liqs-v2 e7b0e81
Updated API helpers to use eat-api
Liqs-v2 3db3f14
Refactored field for better readability
Liqs-v2 4c521ab
Updated cafeteria response to use the new data classes
Liqs-v2 9b16844
Moved deserialization POJOs into their own package
Liqs-v2 d3d416f
Fixed proguard bug, causing the deserialization to fail
Liqs-v2 6939b2f
Updated POJO imports
Liqs-v2 fef1ecc
Updated POJO to match eat-api after changes
Liqs-v2 a53f8e7
Added db migration to new table used for eat-api data; Updated deseri…
Liqs-v2 1e12de1
Increased version number to reflect changed schema
Liqs-v2 3b5662c
Fixed multiple bugs concerning Migration6to7.kt
Liqs-v2 f5488fb
Fixed bug regarding deserialization introduced when migrating db table
Liqs-v2 eaed9a8
Added new DB schema to git
Liqs-v2 a401e50
Added helper class for parsing eat-api data to database format
Liqs-v2 b237862
Updated DAO sql queries to work with new table
Liqs-v2 3d1e6ac
Added comments/documentation
Liqs-v2 d39b721
Updated queries to work with new table; Added documentation
Liqs-v2 06a7781
Updated CafeteriaMenu to work with new table
Liqs-v2 6399406
Added an enum for the cafeteriaIds
Liqs-v2 fd1c959
Refactored Cafeterias to CafeteriaLocation and change method naming
Liqs-v2 00164f6
Migrated CafeteriaLocalRepository.kt to use CafeteriaLocation and wor…
Liqs-v2 7e2628a
Migrated CafeteriaWithMenus.kt
Liqs-v2 d9a2829
Refactored method naming
Liqs-v2 0b65f1e
Added table migration for Cafeteria table
Liqs-v2 a8282b5
Added API deserialization POJOs for Cafeteria table
Liqs-v2 00c1f00
Added schema for db version 8 to git
Liqs-v2 d7a53e1
Updated Cafeteria entity to new cafeteriaId
Liqs-v2 e3e81b5
Fixed deserialization POJO datatypes
Liqs-v2 cf8ea7e
Updated CafeteriaLocalRepository.kt with parser for deserialized API …
Liqs-v2 176611f
Refactored CafeteriaLocation.kt; Added another helper method to gener…
Liqs-v2 f44da1e
Refactored EatAPIParser.kt method name, which is used in CafeteriaMen…
Liqs-v2 f1111fb
Added second parsing method for CafeteriaMetadata.kt to EatAPIParser.kt
Liqs-v2 d3a36a8
Refactored TUMCabe to fetch data for the Cafeteria db table from EatAPI
Liqs-v2 6c12cee
Migrated CafeteriaDao to new table and id datatype
Liqs-v2 c3e1df1
Update documentation
Liqs-v2 6e4631f
Migrated to androidx PreferenceManager; Migrated to CafeteriaLocation
Liqs-v2 619febb
Migrated CafeteriaManager to CafeteriaLocation (new Cafeteria id and …
Liqs-v2 282e164
Migrated CafeteriaMenuCard to CafeteriaLocation; Migrated PreferenceM…
Liqs-v2 80aab46
Updated cafeteria settings default value to reflect new Cafeteria id
Liqs-v2 d79c347
Migrated CafeteriaDetailsSectionFragment.kt and CafeteriaDetailsSecti…
Liqs-v2 1394ffa
Migrated CafeteriaViewModel.kt to new table and CafeteriaLocation id
Liqs-v2 5d87e05
Migrated MensaRemoteViewFactory.kt to CafeteriaLocation and new table
Liqs-v2 5499788
Migrated CafeteriaFragment.kt to CafeteriaLocation.kt and new table
Liqs-v2 a466e26
Migrating CafeteriaMenusAdapter.kt to CafeteriaLocation.kt and new table
Liqs-v2 d5c69a4
Reintroduced some fields that were mistakenly deleted
Liqs-v2 76e8914
Moved EatAPI endpoint to the per calendarWeek and cafeteria one, inst…
Liqs-v2 4045fa5
Refactored deserialization POJOs to allow usage of lazy fetching per …
Liqs-v2 8f3ed56
Refactored EatAPIParser in preparation for lazy fetching (uses dummy …
Liqs-v2 9e54c7c
Refactored Cafeteria entity and CafeteriaMetadata POJO for soft DB mi…
Liqs-v2 4d4cab3
Refactored Migration7to8.kt to a soft migration
Liqs-v2 afac8d6
Updated DB schema
Liqs-v2 73a0dfe
Reverted CafeteriaDetailsSectionFragment.kt to use int cafeteriaId
Liqs-v2 86ba4ce
Reverted CafeteriaWithMenus.kt to use int cafeteriaId
Liqs-v2 a5d1404
Reverted CafeteriaViewModel.kt to use int cafeteriaId
Liqs-v2 eba3dbc
Refactored CafeteriaLocalRepository.kt to use int cafeteriaId
Liqs-v2 a41c53d
Consolidated DB migrations needed for eat-api migration
Liqs-v2 703b840
Reintroduced constant needed for int cafeteriaId
Liqs-v2 e3a6a55
Refactored table fields for clearer naming
Liqs-v2 163bd8b
Fixed bug causing the request for the menus of a cafeteria to return …
Liqs-v2 e41d4f2
Refactored CafeteriaDao to int cafeteriaId
Liqs-v2 c33ea6d
Refactored CafeteriaFragment to int cafeteriaId
Liqs-v2 4aff455
Refactored CafeteriaDetailsSectionFragment to int cafeteriaId
Liqs-v2 5ed42e0
Refactored CafeteriaDetailsSectionsPagerAdapter to int cafeteriaId
Liqs-v2 65e9d67
Refactored CafeteriaLocalRepository to int cafeteriaId
Liqs-v2 d47b541
Refactored helpers method for clearer naming and return values
Liqs-v2 cf3ec13
Refactored CafeteriaMenuManager for int cafeteriaId
Liqs-v2 c402602
Refactored CafeteriaMenuCard to int cafeteriaId
Liqs-v2 c34ca07
Refactored CafeteriaMenuDao to int cafeteriaId and new table field na…
Liqs-v2 15b58e2
Improved error handling and debugging info provided; Refactored Cafet…
Liqs-v2 7f36e00
Refactored POJO field name to match refactored table field names
Liqs-v2 abb8c29
Refactored EatAPIParser to reflect changes in POJO and DB table field…
Liqs-v2 3c07f52
Refactored to int cafeteriaId and to reflect changes in DB table fiel…
Liqs-v2 ead49ab
Improved documentation in OpenHoursHelper
Liqs-v2 e3845e6
Expanded edge case handling; Refactored for better readability
Liqs-v2 a5cc34c
Added a const as workaround for low project SDK version
Liqs-v2 70f1d68
Moved getIdFrom(cafeteriaSlug) into CafeteriaDao
Liqs-v2 412e176
Fixed bug causing getCafeteria to fail
Liqs-v2 9612916
Updated hardcoded preference mappings to cafeteria slugs
Liqs-v2 23ef260
Removed schema 8, as the consolidation of migrations will leave the D…
Liqs-v2 96b7cd7
Fixed bug causing cafeterias to be repeatedly inserted into the db
Liqs-v2 69a964f
Updated cafeteriaMenu db table and dependencies, due to a semantic mi…
Liqs-v2 71dc5d7
Removed TODO of false positive for bug
Liqs-v2 071eb55
Changed default value to always display menus while working on this
Liqs-v2 5ae3897
Refactored to facilitate lazy fetching
Liqs-v2 2670ceb
Improved documentation; Added query getSlugFrom(cafeteriaId:Int):String
Liqs-v2 0f1aed8
Refactored CafeteriaDetailsSectionFragment to facilitate lazy fetching
Liqs-v2 ffd8b68
CafeteriaDownloadAction no longer fetches CafeteriaMenus
Liqs-v2 5f716a3
Removed fixed TODO and unused import
Liqs-v2 0b7a550
Added hasNoMenusFor to allow for dynamic fetching from local or remot…
Liqs-v2 3630b60
Removed handled TODO
Liqs-v2 00437e1
Fixed bug in old query caused by migration; Added hasMenusFor query
Liqs-v2 f06dfb7
Removed old methods for handling cafeteria menu downloads via Cafeter…
Liqs-v2 76dbea2
Added methods used for lazy fetching
Liqs-v2 8d56544
Refactored fetchCafeteriaMenus, to dynamically fetch from local or re…
Liqs-v2 4793037
Removed TODO
Liqs-v2 1791eec
Refactored parseCafeteriaMenuFrom to be fully dynamic and compatible …
Liqs-v2 d06750e
Fixed bug causing the application to crash when selecting certain caf…
Liqs-v2 91dedc0
Added bugfix for cafeteria menus not being fetched from remote reposi…
Liqs-v2 b8ef560
Added helper method to facilitate bugfix causing cafeteria menus to n…
Liqs-v2 b891285
Update method signature due to lazy fetching changes
Liqs-v2 637cd06
Formatting
Liqs-v2 a848d18
Fixed bug, causing menus to never be cached
Liqs-v2 d409217
Reintroduced cache behaviour
Liqs-v2 8668d20
Fixed warnings and removed todos
Liqs-v2 83e5d07
Fixed bugs caused by migration
Liqs-v2 93a1ea2
Added TODO for migration
Liqs-v2 cc668d0
Removed TODO
Liqs-v2 52860d8
Identified position for potential fix for CafeteriaCard not showing menu
Liqs-v2 a45bd6e
Attempting to fix bug causing Cafeteria Card to not be showing menus
Liqs-v2 4279ee9
Removed unused method stub
Liqs-v2 c15dce1
Removed code used for debugging
Liqs-v2 edf9aca
Identical contents, but stashing doesnt work
Liqs-v2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, existing migrations should not be changed. Could you have another look into why this was changed?