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

Enhancement: Add admin UI for resolving concurrency exceptions #11

Closed
pombredanne opened this issue Jun 7, 2013 · 5 comments
Closed

Comments

@pombredanne
Copy link

It would be great to have a basic admin ui to resolve concurrency exceptions....
Something that could show:

  • The fields before editing by the current user
  • The fields as edited by the current user
  • The fields as they were edited by others
    And provide the ability to resolve and save a new object with the conflicts manually resolved ...
@saxix
Copy link
Owner

saxix commented Jun 8, 2013

Agree, I'm working on the admin integration just now. Just committed the code to handle admin's action. Next release should contains other admin related features. Any help will be appreciated.

@pombredanne
Copy link
Author

I kinda like the diff-match-patch diff displayed by https://github.com/bmihelac/django-import-export when doing imports for existing records
This could allow to show only two things for each field:

  • the concurrent edit diff between the user edit and the conflicting edit made by someone else
  • the editable value (populated with the value the user edited/updated)

@saxix
Copy link
Owner

saxix commented Jun 14, 2013

take a look at https://django-concurrency.readthedocs.org/en/latest/middleware.html if can help in the meantime

@pombredanne
Copy link
Author

Sounds like the proper basis alright

@saxix
Copy link
Owner

saxix commented Jun 15, 2013

added an example of ConcurrencyMiddleware in fbd3762
refer to https://django-concurrency.readthedocs.org/en/latest/middleware.html

In the demo app there is the same code, but the settings required are commented out to allow the tests to pass.

@saxix saxix closed this as completed Jun 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants