Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch Endpoint #73

Open
roger254 opened this issue Jun 9, 2021 · 10 comments
Open

Patch Endpoint #73

roger254 opened this issue Jun 9, 2021 · 10 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@roger254
Copy link

roger254 commented Jun 9, 2021

Amazing Framework, really love it,
please update or place the patch endpoint to update certain data that have been passed while leaving the unspecified data intact in the database..

@olgeni
Copy link

olgeni commented Jul 22, 2021

PATCH is more or less the same as UPDATE, but with exclude_unset ☺️

for key, value in model.dict(exclude={self._pk}, exclude_unset=True).items()

@awtkns awtkns added the enhancement New feature or request label Sep 15, 2021
@awtkns awtkns added this to the V0.10 milestone Sep 15, 2021
@awtkns
Copy link
Owner

awtkns commented Sep 15, 2021

@olgeni or @roger254 is this something you would like to PR, if not I would be happy to implement it.

@theultimate1
Copy link

I think this is a good issue to implement as the patch endpoint. Had to go down a pydantic rabbithole before I came to the same answer as the one give above by @olgeni.

@satodaiki
Copy link

I'm very interested in this issue.
I'll send you a PR as soon as I find some free time.

@awtkns
Copy link
Owner

awtkns commented Jan 26, 2022

Looking forward to it @satodaiki! 🚀

@Carsondraper
Copy link

Did anyone end up following through with this issue? I myself would love to have this feature

@awtkns
Copy link
Owner

awtkns commented Feb 19, 2022

Not that I know of, this may be something I can pick up if there is no interest.

@theultimate1
Copy link

hey i sorta have this update on my end. Probably put in a pull request this week or so.

@theultimate1
Copy link

Update : Had some work. Finished the patch endpoint for both sql alchemy and Ormar. Will try to get to it this week

@ulasozguler
Copy link

Relevant #168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants