Amine Bouabdallaoui AmineB
AmineB pushed to chore/sonarqube-fixes at Louvorg/ReaderForSelfoss-multiplatform 2022-08-17 19:01:00 +00:00
e9cb3d2f37 Fixing some sonarqube issues.
AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:35:26 +00:00
network

The else block would have the BD fetching that'll assign the DB items to fetchedItems.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network

I think that this should be the only place where the connectivity check should stay like this.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network

Same here.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network

Same here. We are fetching data from an api, and we there is no need to do try anything if there is no network available.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network

It's weird to have this here. offlineOverride shouldn't be overridden from inside the repository.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network

isConnectionAvailable.value && !offlineOverride should be refactored inside a method named isNetworkAvailable()

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network

This should be moved after the else block

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network

This should be moved after the else block

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network

This should be removed.

AmineB suggested changes for Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:34:19 +00:00
network
AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 18:29:24 +00:00
network

This should be done when the app is sent to the background or closed.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 14:33:39 +00:00
network

@davidoskky can you please rebase your branch ? I just merged the last changed that I wanted on yesterday's PR.

AmineB pushed to master at Louvorg/ReaderForSelfoss-multiplatform 2022-08-17 14:31:12 +00:00
dec620a409 Merge pull request 'Changed ids to items.' (#29) from id-to-int into master
4d29ee0b92 Last fixes.
Compare 2 commits »
AmineB deleted branch id-to-int from Louvorg/ReaderForSelfoss-multiplatform 2022-08-17 14:31:12 +00:00
AmineB merged pull request Louvorg/ReaderForSelfoss-multiplatform#29 2022-08-17 14:31:11 +00:00
Changed ids to items.
AmineB created pull request Louvorg/ReaderForSelfoss-multiplatform#29 2022-08-17 14:30:50 +00:00
Changed ids to items.
AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 14:18:53 +00:00
network

The error message should be displayed when the network status change, not after every api call.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 14:18:53 +00:00
network

This block should be after the else, since the db will work as a fallback and we'll get the items from there.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#28 2022-08-17 14:18:53 +00:00
network

This should be a todo