Amine Bouabdallaoui AmineB
AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-28 06:47:20 +00:00
Repository Unit Tests

image

There are still multiple failing tests.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-28 06:46:39 +00:00
Repository Unit Tests

Why is this called twice ?

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-28 06:46:39 +00:00
Repository Unit Tests
AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-28 06:46:39 +00:00
Repository Unit Tests

Same for all the other try catch in here.

AmineB suggested changes for Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-28 06:46:39 +00:00
Repository Unit Tests
AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-28 06:42:17 +00:00
Repository Unit Tests

Same for all the other try catch in here.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 19:35:35 +00:00
Repository Unit Tests

Still, db cleaning should be done on setting change.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 19:32:34 +00:00
Repository Unit Tests

Ok.

So getMaxItemsForBackground should be changed, then.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 19:23:01 +00:00
Repository Unit Tests

Alright, so I should verify that the call to the api is performed only once, regardless of how many times this function is called and that tags and sources are correctly stored in the db.

Yep,…

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 19:20:17 +00:00
Repository Unit Tests

If one of those nulls is substituted by another value, it will not be the last 200 articles that will be stored, but 200 articles filtered according to some external factor.

Well, this is…

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:53:08 +00:00
Repository Unit Tests

I don't think sources and tags should be cached if items are not cached; what would be the use of such a function?

As mentionnend by you in a previous comment, it is used to limit the…

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:51:58 +00:00
Repository Unit Tests

I find it useless to test if caching is enabled to check if there is something in the DB.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:50:54 +00:00
Repository Unit Tests

I am confused, as far as I remember update_sources was introduced to limit the amount of api calls to selfoss because that was heavy on the database and created some problems. That is also how…

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:42:27 +00:00
Repository Unit Tests

The setting name IS confusing. But but it handles the tags/sources caching.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:40:41 +00:00
Repository Unit Tests

The network is available. The api call will be done. update_sources handles the tags/sources caching.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:40:06 +00:00
Repository Unit Tests

The network is available. The api call will be done. update_sources handles the tags/sources caching.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:36:45 +00:00
Repository Unit Tests

As above.

I don't know what you wanted to test.

The thing is, passing null, null, null, null in the function will make it fail, because in your calls, you pass data.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:34:44 +00:00
Repository Unit Tests

I don't know what you wanted to test.

The thing is, passing null, null, null, null in the function will make it fail, because in your calls, you pass data.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:32:40 +00:00
Repository Unit Tests

Because it's handled separatly, so users can cache the sources/tags without caching anything else.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#50 2022-09-27 18:30:32 +00:00
Repository Unit Tests

Since items caching is disabled I would expect the function not to access items in the database.

I answerd this in another comment.

The DB should be empty when the setting is disabled, so…