-
Notifications
You must be signed in to change notification settings - Fork 431
Refactor Django ORM #494
Comments
I am all for removing code. That entire file seems ill-conceived. I had a hard time figuring out many of the design decisions when I tried to test it a while back. |
@waprin can we close this in favor of the new plan for Django stuff? |
This is basically the tracking issue for that work, although the scope of changes is somewhat bigger then just killing that field. |
Retitle this issue to better summarize the intended improvements? |
Retitled, basic plan is:
|
I know this is closed and I'm late to the game, but I'm not sure this was thought through. I can only relate my experience, not that it matters as its too late but still might be helpful:
Many thanks regardless. I'll figure all this out - just thought its good to mention. |
@harel thanks for feedback, some of it could have been better. Seemed like it needed updating, I tried to gather feedback on how it was being used but didn't get much. Now your explanation of how you're using things makes sense, I shouldn't have killed FlowField. There are docs and samples in this repo's docs. Apologies if it caused you any pain. |
Tha'ts fine @waprin. For posterity, what i did was simple enough and can be replicated by anyone:
All is good - complaining about OS work done for free by good people is a cardinal ethics sin. So yes - its all good. |
Thank you @harel , I just got the code from release 2.2.0, grabbing the FlowField did the job it for me. |
I was hoping to refactor some of django_orm into django_util. This also ties into #319. There are currently 3 classes:
CredentialsField - It makes sense to me for this to exist if you want to store the oauth credential as part of some sort of UserModel. You sometimes interact with the credential directly, and you might want to use it to do an oauth call in a background process outside of the session context, for example, in which case you want a credential in the database rather then only in a session.
Storage - This is a storage class that uses the CredentialField as the storage object. This will be one of the Storage options for our helpers to use.
The one that I think we should maybe get rid of is
My inclination is just to remove FlowField but I'm not sure if people use it. I guess it comes down to whether people are still rolling their own flows and if we need to still support those use cases, even though we're now providing the view logic to do it for them.
What do people think?
The text was updated successfully, but these errors were encountered: