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
[Workflow management UI changes 3] Reduce usage of edit handlers for workflow management #6172
Merged
zerolab
merged 6 commits into
wagtail:feature/workflow
from
kaedroho:feature/workflow-reduce-edit-handlers
Jun 25, 2020
Merged
[Workflow management UI changes 3] Reduce usage of edit handlers for workflow management #6172
zerolab
merged 6 commits into
wagtail:feature/workflow
from
kaedroho:feature/workflow-reduce-edit-handlers
Jun 25, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Manage this branch in SquashTest this branch here: https://kaedrohofeatureworkflow-reduce-4o3jq.squash.io |
kaedroho
changed the title
[Workflow management UI changes 3/n] Reduce usage of edit handlers for workflow management
[Workflow management UI changes 3] Reduce usage of edit handlers for workflow management
Jun 23, 2020
kaedroho
force-pushed
the
feature/workflow-reduce-edit-handlers
branch
3 times, most recently
from
June 23, 2020 14:37
c10b1a8
to
1e1882f
Compare
kaedroho
force-pushed
the
feature/workflow-reduce-edit-handlers
branch
2 times, most recently
from
June 25, 2020 11:02
2baef25
to
9b1bc7b
Compare
zerolab
requested changes
Jun 25, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for moving away internalizing the workflow edit_handlers.
The documentation does need updating to reflect the changes, though!
wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html
Outdated
Show resolved
Hide resolved
…cific fields when bound to an existing instance rather than creating a new one" This reverts commit 62961b7.
Only advantage of having it the way it was before is that allows overriding the edit handler in subclasses. But nobody will be doing this with workflows. I've added a note into the code pointing out that we might want to rethink using edit handlers if: - It gets easier to style formsets without using InlinePanel - We want to allow customisation of the form (the use of edit handlers should be considered an internal implementation detail at the moment)
…cludes/create_form.html Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Dan Braghis <dan@zerolab.org>
kaedroho
force-pushed
the
feature/workflow-reduce-edit-handlers
branch
from
June 25, 2020 12:45
3243655
to
ea8c5ba
Compare
zerolab
approved these changes
Jun 25, 2020
zerolab
added a commit
to zerolab/wagtail
that referenced
this pull request
Jun 26, 2020
* Use plain old Django forms for tasks * Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one" This reverts commit 62961b7. * Move Workflow edit handler creation into Workflow forms Only advantage of having it the way it was before is that allows overriding the edit handler in subclasses. But nobody will be doing this with workflows. I've added a note into the code pointing out that we might want to rethink using edit handlers if: - It gets easier to style formsets without using InlinePanel - We want to allow customisation of the form (the use of edit handlers should be considered an internal implementation detail at the moment) * Make task name readonly but groups editable * Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html Co-authored-by: Dan Braghis <dan@zerolab.org> * Update wagtail/admin/forms/workflows.py Co-authored-by: Dan Braghis <dan@zerolab.org> Co-authored-by: Dan Braghis <dan@zerolab.org>
zerolab
added a commit
that referenced
this pull request
Jun 26, 2020
* Use plain old Django forms for tasks * Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one" This reverts commit 62961b7. * Move Workflow edit handler creation into Workflow forms Only advantage of having it the way it was before is that allows overriding the edit handler in subclasses. But nobody will be doing this with workflows. I've added a note into the code pointing out that we might want to rethink using edit handlers if: - It gets easier to style formsets without using InlinePanel - We want to allow customisation of the form (the use of edit handlers should be considered an internal implementation detail at the moment) * Make task name readonly but groups editable * Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html Co-authored-by: Dan Braghis <dan@zerolab.org> * Update wagtail/admin/forms/workflows.py Co-authored-by: Dan Braghis <dan@zerolab.org> Co-authored-by: Dan Braghis <dan@zerolab.org>
gasman
pushed a commit
that referenced
this pull request
Jul 8, 2020
* Use plain old Django forms for tasks * Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one" This reverts commit 62961b7. * Move Workflow edit handler creation into Workflow forms Only advantage of having it the way it was before is that allows overriding the edit handler in subclasses. But nobody will be doing this with workflows. I've added a note into the code pointing out that we might want to rethink using edit handlers if: - It gets easier to style formsets without using InlinePanel - We want to allow customisation of the form (the use of edit handlers should be considered an internal implementation detail at the moment) * Make task name readonly but groups editable * Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html Co-authored-by: Dan Braghis <dan@zerolab.org> * Update wagtail/admin/forms/workflows.py Co-authored-by: Dan Braghis <dan@zerolab.org> Co-authored-by: Dan Braghis <dan@zerolab.org>
gasman
pushed a commit
to gasman/wagtail
that referenced
this pull request
Jul 24, 2020
* Use plain old Django forms for tasks * Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one" This reverts commit 62961b7. * Move Workflow edit handler creation into Workflow forms Only advantage of having it the way it was before is that allows overriding the edit handler in subclasses. But nobody will be doing this with workflows. I've added a note into the code pointing out that we might want to rethink using edit handlers if: - It gets easier to style formsets without using InlinePanel - We want to allow customisation of the form (the use of edit handlers should be considered an internal implementation detail at the moment) * Make task name readonly but groups editable * Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html Co-authored-by: Dan Braghis <dan@zerolab.org> * Update wagtail/admin/forms/workflows.py Co-authored-by: Dan Braghis <dan@zerolab.org> Co-authored-by: Dan Braghis <dan@zerolab.org>
gasman
pushed a commit
that referenced
this pull request
Jul 24, 2020
* Use plain old Django forms for tasks * Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one" This reverts commit 62961b7. * Move Workflow edit handler creation into Workflow forms Only advantage of having it the way it was before is that allows overriding the edit handler in subclasses. But nobody will be doing this with workflows. I've added a note into the code pointing out that we might want to rethink using edit handlers if: - It gets easier to style formsets without using InlinePanel - We want to allow customisation of the form (the use of edit handlers should be considered an internal implementation detail at the moment) * Make task name readonly but groups editable * Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html Co-authored-by: Dan Braghis <dan@zerolab.org> * Update wagtail/admin/forms/workflows.py Co-authored-by: Dan Braghis <dan@zerolab.org> Co-authored-by: Dan Braghis <dan@zerolab.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Separated from: #6157
Based on: #6171