Skip to content

Refactor the way the 'watch' checkbox works. On the UI side this is i…#1

Merged
daniell merged 1 commit into
daniell:add_done_checkbox_to_parent_issue_pagefrom
aliceh75:action_item_done_checkbox
May 21, 2015
Merged

Refactor the way the 'watch' checkbox works. On the UI side this is i…#1
daniell merged 1 commit into
daniell:add_done_checkbox_to_parent_issue_pagefrom
aliceh75:action_item_done_checkbox

Conversation

@daniell
Copy link
Copy Markdown
Owner

@daniell daniell commented May 21, 2015

…mplemented as a checkbox within a link. Clicking on it calls a view on the server, then reloads the existing page with the change applied. This makes it possible to have such action happen on clicking a tick box (rather than then having to press submit) without relying on javascript. So far this approach was only used for the 'watch' box. As we are introducing the same functionality for the 'done' checkbox, there could be a need for some refactoring. This is an experiment at finding a small refactoring, which formalizes this approach without trying to change the way it's implemented. As such it names such 'checkbox' action Single Action Views, and moves them in a file of their own, with their own base class. It may be that this is not the best approach, and either no refactoring, or rethinking the way this is implemented is a more adequate course of action.

…mplemented as a checkbox within a link. Clicking on it calls a view on the server, then reloads the existing page with the change applied. This makes it possible to have such action happen on clicking a tick box (rather than then having to press submit) without relying on javascript. So far this approach was only used for the 'watch' box. As we are introducing the same functionality for the 'done' checkbox, there could be a need for some refactoring. This is an experiment at finding a small refactoring, which formalizes this approach without trying to change the way it's implemented. As such it names such 'checkbox' action Single Action Views, and moves them in a file of their own, with their own base class. It may be that this is not the best approach, and either no refactoring, or rethinking the way this is implemented is a more adequate course of action.
daniell added a commit that referenced this pull request May 21, 2015
Refactor the way the 'watch' checkbox works. On the UI side this is i…
@daniell daniell merged commit 68feede into daniell:add_done_checkbox_to_parent_issue_page May 21, 2015
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

Successfully merging this pull request may close these issues.

2 participants