firedart icon indicating copy to clipboard operation
firedart copied to clipboard

Started the transformation to use the auth from firebase_auth_rest.

Open guyluz11 opened this issue 4 years ago • 5 comments

Need more changes but this is start.

#66

guyluz11 avatar Jun 13 '21 13:06 guyluz11

Tests faile

I have tested only changing data and listening to changes (on native dart), other functionality might work too. In #65 the streams stop working after couple of hours, here (for now) there is error thrown out instead

Error

guyluz11 avatar Jun 13 '21 13:06 guyluz11

Add fix for issue #51. All tests are now passing.

@cachapa can you go through the pull request and tell me what you think?. Note: firedart had class named FirebaseAuth that was removed, firebase_auth_rest have class with the same name FirebaseAuth that is now replacing it.

guyluz11 avatar Jun 13 '21 22:06 guyluz11

Hey sorry for the delay, things have been quite hectic lately. I'll try to find some time to look at this over the weekend and report back.

cachapa avatar Jun 29 '21 13:06 cachapa

Great, I decided to move to other technology so I am not in a harry with this pull request. Nevertheless I will try to fix any errors and changes that will come up just for the sake of helping this package.

guyluz11 avatar Jun 29 '21 13:06 guyluz11

@cachapa Any update on merge?

kekko7072 avatar Mar 18 '22 15:03 kekko7072

@cachapa Can you merge this PR, this literally brings the syntax of default firebase packages to firedart.

prateekmedia avatar Mar 11 '23 16:03 prateekmedia

Sorry but this is a huge PR that changes too many things for me to be comfortable just blindly merging it. It also looks like it's a breaking change from the current API which I'm uncomfortable doing without a lot of thought.

I'm not sure copying the default Firebase package syntax is such a worthy goal anyway. I remember the last time I used it explicitly disliking a lot of their design choices - TBF this was many years ago so I have no idea if/how it's changed meanwhile.

In any case the reality is that I currently don't have the free time to maintain this package, so until that changes I would encourage you to use a fork.

cachapa avatar Mar 11 '23 16:03 cachapa

Sorry but this is a huge PR that changes too many things for me to be comfortable just blindly merging it. It also looks like it's a breaking change from the current API which I'm uncomfortable doing without a lot of thought.

I'm not sure copying the default Firebase package syntax is such a worthy goal anyway. I remember the last time I used it explicitly disliking a lot of their design choices - TBF this was many years ago so I have no idea if/how it's changed meanwhile.

In any case the reality is that I currently don't have the free time to maintain this package, so until that changes I would encourage you to use a fork.

Can you stat what API does it breaks?.

Suggestion in general, you can use the checkbox at the top column of each file to signal what files you went through and they are okay. It's good process both to yourself and for others

guyluz11 avatar Mar 11 '23 17:03 guyluz11

Can you stat what API does it breaks?.

Changing the initialize method signature, moving auth and user methods to the Firedart class, are the ones I noticed immediately. There are reasons why auth was made a separate and optional component.

Suggestion in general, you can use the checkbox at the top column of each file to signal what files you went through and they are okay. It's good process both to yourself and for others

I'm aware of how PR reviews work, thanks.

It's not about looking at the code, but the time it takes to test it to make sure it does what's expected without introducing errors or unwanted behavioural changes. That takes time and becomes exponentialy harder with the amount of code being reviewed.

In general it's bad form to perform large changes or to refactor code without discussing it beforehand since you put the maintainer in a difficult position: I'm not comfortable throwing away your effort but also do not appreciate having my API design changed without consultation.

It also pressures me to spend my free time reviewing this code which I currently do not really have. Remember that with very few exceptions, open source contributors aren't paid for their work.

cachapa avatar Mar 12 '23 11:03 cachapa

@cachapa Do you feel that this project needs a maintainer? I think @guyluz11 might volunteer for that.

prateekmedia avatar Mar 12 '23 12:03 prateekmedia

@cachapa Do you feel that this project needs a maintainer? I think @guyluz11 might volunteer for that.

I prefer not. I stopped using this package.

guyluz11 avatar Mar 12 '23 14:03 guyluz11