BigW Consortium Gitlab
Automatically fork a project when not allowed to edit a file. Fixes #3215. To do: - [ ] Add tests ----- ## "Edit" button on file in a project the user does NOT have write access to ![edit_file](/uploads/7602157420768aef483a6586bba2d164/edit_file.png) ## Clicking will automatically create a fork ![during_fork](/uploads/32f4f5dff9f24ea99522000b0bf881c5/during_fork.png) ## When the fork has been created, the user is returned to the edit page on the original project with a notice ![edit_notice](/uploads/94ed1319404370ff1e9c0d672fb41e03/edit_notice.png) ## The user cannot change the target branch and is informed that editing will start an MR ![edit_footer](/uploads/4da68d4795c7177e575b7c434d16eeae/edit_footer.png) ## Hitting "Commit changes" will commit and start an MR from my fork to the origin project ![Screen_Shot_2015-12-17_at_23.38.08](/uploads/d777a4db6f38a5a1be84031694465bc1/Screen_Shot_2015-12-17_at_23.38.08.png) ----- ## "Create file, "Upload file" and "New directory" buttons in a project the user does NOT have write access to ![new_directory](/uploads/72f556248f30d6652523bbb4be01b3e0/new_directory.png) ## Clicking any of these options will automatically create a fork ![during_fork](/uploads/32f4f5dff9f24ea99522000b0bf881c5/during_fork.png) ## When the fork has been created, the user is returned to the tree page on the original project with a notice ![new_directory_notice](/uploads/a1a3e11308ae0e8f0913fae6813a37ed/new_directory_notice.png) ## Clicking "New directory" again will show the modal. The user cannot change the target branch and is informed that editing will start an MR ![new_dir](/uploads/99ca8cbfb2f70603e352b3fdf67b6281/new_dir.png) ## Hitting "Create directory" will commit and start an MR from my fork to the origin project ![Screen_Shot_2015-12-17_at_23.39.19](/uploads/3713d0235abf831361b803a6198c5bc1/Screen_Shot_2015-12-17_at_23.39.19.png) cc @dzaporozhets @skyruler See merge request !2145
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
behaviors | Loading commit data... | |
blob | Loading commit data... | |
ci | Loading commit data... | |
commit | Loading commit data... | |
extensions | Loading commit data... | |
lib | Loading commit data... | |
activities.js.coffee | Loading commit data... | |
admin.js.coffee | Loading commit data... | |
api.js.coffee | Loading commit data... | |
application.js.coffee | Loading commit data... | |
aside.js.coffee | Loading commit data... | |
autosave.js.coffee | Loading commit data... | |
awards_handler.coffee | Loading commit data... | |
branch-graph.js.coffee | Loading commit data... | |
calendar.js.coffee | Loading commit data... | |
commit.js.coffee | Loading commit data... | |
commits.js.coffee | Loading commit data... | |
confirm_danger_modal.js.coffee | Loading commit data... | |
copy_to_clipboard.js.coffee | Loading commit data... | |
dashboard.js.coffee | Loading commit data... | |
diff.js.coffee | Loading commit data... | |
dispatcher.js.coffee | Loading commit data... | |
dropzone_input.js.coffee | Loading commit data... | |
flash.js.coffee | Loading commit data... | |
gfm_auto_complete.js.coffee | Loading commit data... | |
group_avatar.js.coffee | Loading commit data... | |
groups.js.coffee | Loading commit data... | |
groups_select.js.coffee | Loading commit data... | |
importer_status.js.coffee | Loading commit data... | |
issuable_context.js.coffee | Loading commit data... | |
issuable_form.js.coffee | Loading commit data... | |
issue.js.coffee | Loading commit data... | |
issues.js.coffee | Loading commit data... | |
labels.js.coffee | Loading commit data... | |
line_highlighter.js.coffee | Loading commit data... | |
markdown_preview.js.coffee | Loading commit data... | |
merge_request.js.coffee | Loading commit data... | |
merge_request_tabs.js.coffee | Loading commit data... | |
merge_request_widget.js.coffee | Loading commit data... | |
merge_requests.js.coffee | Loading commit data... | |
milestone.js.coffee | Loading commit data... | |
namespace_select.js.coffee | Loading commit data... | |
network.js.coffee | Loading commit data... | |
new_branch_form.js.coffee | Loading commit data... | |
new_commit_form.js.coffee | Loading commit data... | |
notes.js.coffee | Loading commit data... | |
pager.js.coffee | Loading commit data... | |
profile.js.coffee | Loading commit data... | |
project.js.coffee | Loading commit data... | |
project_avatar.js.coffee | Loading commit data... | |
project_fork.js.coffee | Loading commit data... | |
project_import.js.coffee | Loading commit data... | |
project_members.js.coffee | Loading commit data... | |
project_new.js.coffee | Loading commit data... | |
project_select.js.coffee | Loading commit data... | |
project_show.js.coffee | Loading commit data... | |
projects_list.js.coffee | Loading commit data... | |
protected_branches.js.coffee | Loading commit data... | |
search_autocomplete.js.coffee | Loading commit data... | |
shortcuts.js.coffee | Loading commit data... | |
shortcuts_dashboard_navigation.js.coffee | Loading commit data... | |
shortcuts_issuable.coffee | Loading commit data... | |
shortcuts_navigation.coffee | Loading commit data... | |
shortcuts_network.js.coffee | Loading commit data... | |
sidebar.js.coffee | Loading commit data... | |
stat_graph.js.coffee | Loading commit data... | |
stat_graph_contributors.js.coffee | Loading commit data... | |
stat_graph_contributors_graph.js.coffee | Loading commit data... | |
stat_graph_contributors_util.js.coffee | Loading commit data... | |
subscription.js.coffee | Loading commit data... | |
syntax_highlight.coffee | Loading commit data... | |
tree.js.coffee | Loading commit data... | |
user.js.coffee | Loading commit data... | |
users_select.js.coffee | Loading commit data... | |
wikis.js.coffee | Loading commit data... | |
zen_mode.js.coffee | Loading commit data... |