apipeline icon indicating copy to clipboard operation
apipeline copied to clipboard

Feature/network first option

Open mpatafio opened this issue 6 years ago • 17 comments

Hi @Exilz !

you lib is great!

I was trying to manage a real use case in the mobile world (and not only in it I guess): make a request perform a network first operation rather than check cache availability at the beginning of the flow. This will allow clients to try to refresh cache without altering the service definition, also because it wasn't possibile by defining any kind of middleware. This way clients are able to use the same service (then same cache) and by customising service options they can make the request behave accordingly to the above need.

Hope it makes sense.

Regards

mpatafio avatar Apr 14 '19 14:04 mpatafio

Hi, thanks for the contribution.

This is something I thought about adding, too.

Could you make sure not to commit your .idea folder ? 😅 You can add it to the .gitignore as well.

Exilz avatar Apr 15 '19 07:04 Exilz

Removed idea files 👍 thanks

mpatafio avatar Apr 15 '19 07:04 mpatafio

Hi @Exilz,

I've removed the stuff you suggested, then updated the Readme and bumped the minor version. The PR is ready to be merged if you want.

mpatafio avatar Apr 16 '19 15:04 mpatafio

@Exilz up!

mpatafio avatar May 09 '19 15:05 mpatafio

@Exilz up please)

Villar74 avatar Jul 09 '19 12:07 Villar74

@Exilz up pleasssseeeeeeeee!!!

chicio avatar Jul 22 '19 13:07 chicio

don't leave uuuus XD @Exilz

Villar74 avatar Jul 22 '19 15:07 Villar74

@Exilz merge pls

Villar74 avatar Aug 07 '19 12:08 Villar74

Thanks for the code review @Villar74 . I added some comments, too. I wouldn't change anything on the generated javascript file. Let typescript do its thing.

Once you've made the requested changes, let's squash your commits before merging them.

Exilz avatar Aug 07 '19 12:08 Exilz

Once you've made the requested changes, let's squash your commits before merging them.

@Exilz You talked to @mpatafio here?

Villar74 avatar Aug 07 '19 13:08 Villar74

@Villar74 yes 😄

Exilz avatar Aug 07 '19 13:08 Exilz

Hi guys!

Thank you for the comments! I’ll fix them as soon as I’ll come back from holiday (likely 21st of August)

mpatafio avatar Aug 07 '19 13:08 mpatafio

Hi guys! Thank you for the code review, I've resolved all the comments (apart the generated js files). Now I guess it can be merged. Just one thing for @Exilz: the image showing the flow of the library should be changed according to this new flow (conditioned by network first option), I changed the documentation, cannot do the same for such image. Thank you!

mpatafio avatar Aug 22 '19 08:08 mpatafio

@Exilz up

Villar74 avatar Sep 24 '19 09:09 Villar74

are you still there guys?

mpatafio avatar Oct 16 '19 14:10 mpatafio

@Exilz wake up pls, bro)

Villar74 avatar Nov 05 '19 08:11 Villar74

@Exilz Maxime, merge pls

Villar74 avatar Dec 03 '19 10:12 Villar74