Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-20Create protected branches bundleAlfredo Sumaran
2016-08-06Update layout and JS for create protected branch.Alfredo Sumaran
Also updates protect branch list
2016-07-29Implement final review comments from @rymai.Timothy Andrew
1. Instantiate `ProtectedBranchesAccessSelect` from `dispatcher` 2. Use `can?(user, ...)` instead of `user.can?(...)` 3. Add `DOWNTIME` notes to all migrations added in !5081. 4. Add an explicit `down` method for migrations removing the `developers_can_push` and `developers_can_merge` columns, ensuring that the columns created (on rollback) have the appropriate defaults. 5. Remove duplicate CHANGELOG entries. 6. Blank lines after guard clauses.
2016-07-29Use `Gitlab::Access` to protected branch access levels.Timothy Andrew
1. It makes sense to reuse these constants since we had them duplicated in the previous enum implementation. This also simplifies our `check_access` implementation, because we can use `project.team.max_member_access` directly. 2. Use `accepts_nested_attributes_for` to create push/merge access levels. This was a bit fiddly to set up, but this simplifies our code by quite a large amount. We can even get rid of `ProtectedBranches::BaseService`. 3. Move API handling back into the API (previously in `ProtectedBranches::BaseService#translate_api_params`. 4. The protected branch services now return a `ProtectedBranch` rather than `true/false`. 5. Run `load_protected_branches` on-demand in the `create` action, to prevent it being called unneccessarily. 6. "Masters" is pre-selected as the default option for "Allowed to Push" and "Allowed to Merge". 7. These changes were based on a review from @rymai in !5081.
2016-07-29Implement review comments from @axil.Timothy Andrew
1. Align "Allowed to Merge" and "Allowed to Push" dropdowns. 2. Don't display a flash every time a protected branch is updated. Previously, we were using this so the test has something to hook onto before the assertion. Now we're using `wait_for_ajax` instead.
2016-07-29Favor labels like `Allowed to push` over `Allowed To Push`.Timothy Andrew
- Based on feedback from @axil - http://docs.gitlab.com/ce/development/ui_guide.html#buttons
2016-07-29Allow setting "Allowed To Push/Merge" while creating a protected branch.Timothy Andrew
1. Reuse the same dropdown component that we used for updating these settings (`ProtectedBranchesAccessSelect`). Have it accept options for the parent container (so we can control the elements it sees) and whether or not to save changes via AJAX (we need this for update, but not create). 2. Change the "Developers" option to "Developers + Masters", which is clearer. 3. Remove `developers_can_push` and `developers_can_merge` from the model, since they're not needed anymore.
2016-07-22Refactor protected branches documentationAchilleas Pipinellis
2016-07-18Revert "Revert "Merge branch '18193-developers-can-merge' into 'master' ""Rémy Coutable
This reverts commit 530f5158e297f3cde27f3566cfe13bad74ba3b50. See !4892. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-14Update permissons links to new pageSean McGivern
permissions/permissions just links to user/permissions since https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5210
2016-07-13Revert "Merge branch '18193-developers-can-merge' into 'master' "Robert Speicher
This reverts commit 9ca633eb4c62231e4ddff5466c723cf8e2bdb25d, reversing changes made to fb229bbf7970ba908962b837b270adf56f14098f.
2016-07-13Added "developers can merge" setting to protected branchesMathias Vestergaard
- Cherry-picked from `mvestergaard:branch-protection-dev-merge` - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4220
2016-07-12Fix failing tests.Connor Shea
2016-07-11Update the help_page_path route to accept paths directly instead of using ↵Connor Shea
parameters.
2016-07-07Use the `GLDropdown` component to select protected branches.Timothy Andrew
1. Modify the component to support a callback for every key press in the filter. We need this so we can update the "Create: <branch_name" label. 2. Modify the component to use `$(<selector>).first().click()` instead of `$(selector)[0].click()`, because the latter is non-standard, and doesn't work in PhantomJS.
2016-07-05Add documentation for wildcard protected branches.Timothy Andrew
2016-07-05Improve the error message displayed when branch creation fails.Timothy Andrew
Note: This feature was developed independently on master while this was in review. I've removed the conflicting bits and left the relevant additions, mainly a test for `Gitlab::Git::Hook`. The original commit message follows: 1. `gitlab-shell` outputs errors to `stderr`, but we weren't using this information, prior to this commit. Now we capture the `stderr`, and display it in the flash message when branch creation fails. 2. This can be used to display better errors for other git operation failures with small tweaks. 3. The return value of `Gitlab::Git::Hook#trigger` is changed from a simple `true`/`false` to a tuple of `[status, errors]`. All usages and tests have been updated to reflect this change. 4. This is only relevant to branch creation _from the Web UI_, since SSH and HTTP pushes access `gitlab-shell` either directly or through `gitlab-workhorse`. 5. A few minor changes need to be made on the `gitlab-shell` end. Right now, the `stderr` message it outputs is prefixed by "GitLab: ", which shows up in our flash message. This is better removed.
2016-07-05Modify the frontend for wildcard protected branches.Timothy Andrew
1. Allow entering any branch name for a protected branch. - Either pick from a list of options, or enter it manually - You can enter wildcards. 2. Display branches matching a protected branch. - Add a `ProtectedBranches#show` page that displays the branches matching the given protected branch, or a message if there are no matches. - On the `index` page, display the last commit for an exact match, or the number of matching branches for a wildcard match. - Add an `iid` column to `protected_branches` - this is what we use for the `show` page URL. - On the off chance that this feature is unnecessary, this commit encapsulates it neatly, so it can be removed without affecting anything else. 3. Remove the "Last Commit" column from the list of protected branches. - There's no way to pull these for wildcard protected branches, so it's best left for the `show` page. - Rename the `@branches` instance variable to `@protected_branches` - Minor styling changes with the "Unprotect" button - floated right like the "Revoke" button for personal access tokens 4. Paginate the list of protected branches. 5. Move the instructions to the left side of the page.
2016-04-26Protected branches UIPhil Hughes
Closes #14027
2016-04-05Standardize the way we check for and display form errorsRobert Speicher
- Some views had a "Close" button. We've removed this, because we don't want users accidentally hiding the validation errors and not knowing what needs to be fixed. - Some views used `li`, some used `p`, some used `span`. We've standardized on `li`. - Some views only showed the first error. We've standardized on showing all of them. - Some views added an `#error_explanation` div, which we've made standard.
2015-12-08Fix padding around protected branches wellDouwe Maan
2015-12-02Use select2 placeholder instead of blank optionDouwe Maan
2015-04-30Add a page title to every page.Douwe Maan
2015-03-26Replace alerts with well where alert is not neededDmitriy Zaporozhets
2015-03-19Refactor select css. Make selects same widthDmitriy Zaporozhets
2015-03-07Replace bs-callout with alertDmitriy Zaporozhets
2015-02-14Upgrade to Rails 4.1.9Vinnie Okada
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
2014-12-26Move protected branches list to a partial.Marin Jankovski
2014-12-26Add option to disable/enable developers push to already protected branches.Marin Jankovski
2014-12-26Add checkbox for protected branch developer can push to.Marin Jankovski
2014-10-12Merge pull request #7915 from bbodenmiller/patch-12Sytse Sijbrandij
improve wording on protected branches page
2014-10-12improve wording on protected branches pageBen Bodenmiller
2014-10-03Upgrade to Font Awesome v4.2Sullivan SENECHAL
2014-09-22Improve the wording explaining protected branches.Sytse Sijbrandij
2014-08-05make bullet punctuation consistentBen Bodenmiller
2014-05-29Replace existing links to help pages with the new ones.Marin Jankovski
2014-05-23Move protected branches to Project settingsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-22Improve protected branch explanationDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-03Mention protected branch force pushDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-20Refactor scssDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-30Fix protected branches page UIDmitriy Zaporozhets
2014-01-11Replace chosen with select2Dmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-31alert-error to alert-dangerDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-31Convert span into col-mdDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-30Remove unnecessary ago keywordDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-15Add time ago tooltips to show actual date/timeDrew Blessing
Clean up admin dashboad tooltips Clean up admin dashboad tooltips Clean up admin dashboad tooltips Add helper method change to use app helper Modify tooltips to use new helper Convert remaining times Adjust one tooltip
2013-12-10Fixed all the confirm: deprecation warningsJeroen van Baarsen
2013-08-05Refactor recent branches pageDmitriy Zaporozhets
2013-07-18Fix testsDmitriy Zaporozhets
2013-07-18better ui for protected branches pageDmitriy Zaporozhets