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

Update database only after confirmation? #20

Open
LonnyX opened this issue Mar 3, 2017 · 1 comment
Open

Update database only after confirmation? #20

LonnyX opened this issue Mar 3, 2017 · 1 comment

Comments

@LonnyX
Copy link

LonnyX commented Mar 3, 2017

I was thinking about writing a package like this one but with one additional feature : update the model table only when the changes are confirmed.

Problem

Imagine a blog where members can write articles, after the article is confirmed, it will be shown on the homepage.
But what if this member want to edit this article?
He update it and wait for the confirmation before the article will be shown on the homepage again (STRICT MODE).

Solution

In order to avoid this "delay", when the article is updated by the member, into the database it shouldn't be modified before the post is confirmed. Instead, a new table should save the updated object and wait for confirmation.

Hope you understood me.

@hootlex
Copy link
Owner

hootlex commented May 29, 2017

Hello @LonnyX,
Apologies for the delay. I like your suggestion.
Would you be interested in opening a pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants