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

Data Layer V1.0 #69

Closed
8 tasks done
JoaquimLey opened this issue Oct 3, 2018 · 0 comments
Closed
8 tasks done

Data Layer V1.0 #69

JoaquimLey opened this issue Oct 3, 2018 · 0 comments
Assignees
Milestone

Comments

@JoaquimLey
Copy link
Owner

JoaquimLey commented Oct 3, 2018

Already started building on stream14 and stream15

  • FavoritesRepository Units tests

  • FavoritesRepository implementation

  • TransportRepository Units tests

  • TransportRepository implementation

  • TransportDataStore Unit testes

  • TransportDataStore implementation

    • Should decide which source to pull data from/to
    • Gets the sources via DI
    • Check if data is expired/dirty and needs an update

Sources


Decide if SMS actions (requestEta/cancelEta) should come from the repository or the SmsController directly

Other refs: #12, #14

@JoaquimLey JoaquimLey self-assigned this Oct 3, 2018
JoaquimLey added a commit that referenced this issue Oct 3, 2018
- Passing unit tests for all the cases

#69
JoaquimLey added a commit that referenced this issue Oct 3, 2018
JoaquimLey added a commit that referenced this issue Oct 3, 2018
JoaquimLey added a commit that referenced this issue Oct 7, 2018
- Unit tests

- Currently only using the (not yet implemented) FrameworkLocalStorage
  - Should be implemented by another module that uses SharedPreferences (Android Library)
  - A little hacky since SharedPrefs will always be Single events and the stream will be finished everytime

Also left a lot of NotImplementedError to methods that shouldn't be used until we have a proper DB
  SharedPrefs will be limited to only 3 saved Entities.

#69
JoaquimLey added a commit that referenced this issue Oct 13, 2018
Had to make some changtes while debuging CI fails. This change still makes sense IMO.

#69
JoaquimLey added a commit that referenced this issue Oct 13, 2018
* Scaffold sharedpreferences module

- Attach to store implemetnation
- Mock data currently being returned

Some housekeeping.

* Small configurations for CI

Still not working, wanted to make mock work with debug but variants still compain.

* Test removing ViewModelModule

* Ci why you no work?

* Fix lints on CI

* Working stuff for CI

* housekeeping mobile-ui/build.gradle

Had to make some changtes while debuging CI fails. This change still makes sense IMO.

#69

* Rename data package to include project name
#69

* Remove unecessary .gitignore from other packages

Maintenece commit, not really related to this branch feature.

* Manifest cleanup and format
JoaquimLey added a commit that referenced this issue Oct 14, 2018
Some basic ideas just so I know what I'm supposed to continue, a lot of TODOs
so lint warns me.

For #17
Ref #69
JoaquimLey added a commit that referenced this issue Oct 16, 2018
This will be included in the stblib from Kotlin 1.3.

#17, #69
JoaquimLey added a commit that referenced this issue Oct 16, 2018
Also, fixes and issue where the String was default to  which made the serialization fail:
 - Kotlin/kotlinx.serialization#115

#17, #69
JoaquimLey added a commit that referenced this issue Oct 17, 2018
- Created necessary factory/mock data classes for the SharedPref module

Named the mock classes with the SharedPref prefix for #66

#17 #69
JoaquimLey added a commit that referenced this issue Oct 17, 2018
Lacking SharedPreferences test setup
  - Will probably need to move all the Android test libs to androidx variant.

#17 #69
JoaquimLey added a commit that referenced this issue Oct 17, 2018
)

* Scaffold sharedpreferences module

- Attach to store implemetnation
- Mock data currently being returned

Some housekeeping.

* Small configurations for CI

Still not working, wanted to make mock work with debug but variants still compain.

* Test removing ViewModelModule

* Ci why you no work?

* Fix lints on CI

* Working stuff for CI

* housekeeping mobile-ui/build.gradle

Had to make some changtes while debuging CI fails. This change still makes sense IMO.

#69

* Rename data package to include project name
#69

* Remove unecessary .gitignore from other packages

Maintenece commit, not really related to this branch feature.

* Manifest cleanup and format

* Scaffold stuff for stream episode 17

Some basic ideas just so I know what I'm supposed to continue, a lot of TODOs
so lint warns me.

For #17
Ref #69

* Housekeeping from previous commit

* Fix typo in readme

Changed the copy on the stream log section

* Include kotlinx.serialization experimental library for sharedPrefs

This will be included in the stblib from Kotlin 1.3.

#17, #69

* Make SharedPrefTransport model @kotlinx.serialization.Serializable

Also, fixes and issue where the String was default to  which made the serialization fail:
 - Kotlin/kotlinx.serialization#115

#17, #69

* SharedPrefMapper tests

- Created necessary factory/mock data classes for the SharedPref module

Named the mock classes with the SharedPref prefix for #66

#17 #69

* Initial tests for FrameworkLocalStorageImpl

Lacking SharedPreferences test setup
  - Will probably need to move all the Android test libs to androidx variant.

#17 #69

* Include stream episode PR to README
JoaquimLey added a commit that referenced this issue Oct 22, 2018
* Scaffold sharedpreferences module

- Attach to store implemetnation
- Mock data currently being returned

Some housekeeping.

* Small configurations for CI

Still not working, wanted to make mock work with debug but variants still compain.

* Test removing ViewModelModule

* Ci why you no work?

* Fix lints on CI

* Working stuff for CI

* housekeeping mobile-ui/build.gradle

Had to make some changtes while debuging CI fails. This change still makes sense IMO.

#69

* Rename data package to include project name
#69

* Remove unecessary .gitignore from other packages

Maintenece commit, not really related to this branch feature.

* Manifest cleanup and format

* Scaffold stuff for stream episode 17

Some basic ideas just so I know what I'm supposed to continue, a lot of TODOs
so lint warns me.

For #17
Ref #69

* Housekeeping from previous commit

* Fix typo in readme

Changed the copy on the stream log section

* Include kotlinx.serialization experimental library for sharedPrefs

This will be included in the stblib from Kotlin 1.3.

#17, #69

* Make SharedPrefTransport model @kotlinx.serialization.Serializable

Also, fixes and issue where the String was default to  which made the serialization fail:
 - Kotlin/kotlinx.serialization#115

#17, #69

* Implement initial SharedPref slot save logic

#17, #69

* Add stream ep to README, ignore failing test on shared pref

#17, #69
JoaquimLey added a commit that referenced this issue Oct 28, 2018
Still missing clear all, getAll and make sure observeSharedPreferencesChanges
emitts for any changes (missing tests basically).

#17, #69
JoaquimLey added a commit that referenced this issue Oct 28, 2018
* Final touches on frameworkLocalStorageTest

Still missing clear all, getAll and make sure observeSharedPreferencesChanges
emitts for any changes (missing tests basically).

#17, #69

* Add episode to README

#84
JoaquimLey added a commit that referenced this issue Oct 30, 2018
* Scaffold sharedpreferences module

- Attach to store implemetnation
- Mock data currently being returned

Some housekeeping.

* Small configurations for CI

Still not working, wanted to make mock work with debug but variants still compain.

* Test removing ViewModelModule

* Ci why you no work?

* Fix lints on CI

* Working stuff for CI

* housekeeping mobile-ui/build.gradle

Had to make some changtes while debuging CI fails. This change still makes sense IMO.

#69

* Rename data package to include project name
#69

* Remove unecessary .gitignore from other packages

Maintenece commit, not really related to this branch feature.

* Manifest cleanup and format

* Scaffold stuff for stream episode 17

Some basic ideas just so I know what I'm supposed to continue, a lot of TODOs
so lint warns me.

For #17
Ref #69

* Housekeeping from previous commit

* Fix typo in readme

Changed the copy on the stream log section

* Include kotlinx.serialization experimental library for sharedPrefs

This will be included in the stblib from Kotlin 1.3.

#17, #69

* Make SharedPrefTransport model @kotlinx.serialization.Serializable

Also, fixes and issue where the String was default to  which made the serialization fail:
 - Kotlin/kotlinx.serialization#115

#17, #69

* Test for SharedPreferences all slots free, saves to Slot.ONE

#17, #69

* Final touches on frameworkLocalStorageTest

Still missing clear all, getAll and make sure observeSharedPreferencesChanges
emitts for any changes (missing tests basically).

#17, #69

* Add episode to README

#84

* Stream Episode 19 (#84)

* Final touches on frameworkLocalStorageTest

Still missing clear all, getAll and make sure observeSharedPreferencesChanges
emitts for any changes (missing tests basically).

#17, #69

* Add episode to README

#84

* Add klint link

* Create stub test class on :presentation

This is a reminder for eventual instrumentation tests, stll not sure if makes
sense to use though.
@JoaquimLey JoaquimLey changed the title Data Layer Data Layer V1.0 Oct 31, 2018
@JoaquimLey JoaquimLey added this to the Beta 0.1 milestone Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant