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
path: root/spec
AgeCommit message (Collapse)Author
2016-10-26Finish updates to use JIRA gemFelipe Artur
Code improvements, bug fixes, finish documentation and specs
2016-10-26Merge branch 'eslint' into 'master' Fatih Acet
Add ESLint ## What does this MR do? - create `package.json` - add ESLint dependencies to `package.json` - add JavaScript linting to CI - add Rake task `lint:javascript`as alias for `eslint` (which itself is an alias for `npm run eslint`) ## Are there points in the code the reviewer needs to double check? Probably not. ## Why was this MR needed? My hovercraft was full of eels. ## What are the relevant issue numbers? - https://gitlab.com/gitlab-org/gitlab-ce/issues/13224#note_12537431 - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5006#note_13255658 See merge request !5445
2016-10-26Merge branch 'issue-board-sidebar' into 'master' Fatih Acet
Issue board sidebar ## What does this MR do? Adds a sidebar when clicking an issue in the issue boards lists. This allows user to easily update other parts of the issue details without having to visit the issue itself. Same functionality as on issue page. When creating a new issue the sidebar automatically opens. ## Screenshots (if relevant) ![Screen_Shot_2016-10-07_at_13.10.16](/uploads/ad08785f407d8ac3fe9cb078868a7839/Screen_Shot_2016-10-07_at_13.10.16.png) ## What are the relevant issue numbers? Closes #21219 See merge request !6690
2016-10-26Escape quotes in gl_dropdown values to prevent exceptionsAirat Shigapov
2016-10-26Fixes various errors when adding deploy keys caused by not exiting the ↵Joshua Welsh
control flow. When adding a deploy key that already exists in the project the existing key would not be returned, resulting in an attempt to create a new one, which in turn caused a 500 error due to an ActiveRecord exception. When adding a deploy key that exists within another project the key would be joined to the project, but would also attempt to create a new one, which resulted in a 400 error due to the key already existing. Fixes #22741 Fixes #21754 Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-26disable ESLint for all JavaScript fileswinniehell
2016-10-26Merge branch 'master' into issue-board-sidebarPhil Hughes
2016-10-26Merge branch 'sh-fix-ajax-spec-failure' into 'master' Stan Hu
Remove use of wait_for_ajax since jQuery was removed Fixes #23812 See merge request !7111
2016-10-26Merge branch 'replace-jquery-cookie-plugin' into 'master' Alfredo Sumaran
Replace jquery-cookie plugin with js-cookie ## What does this MR do? Removes an outdated and unmaintained dependency [jquery.cookie](https://github.com/carhartl/jquery-cookie) with its successor [js.cookie](https://github.com/js-cookie/js-cookie) which is not dependent on jQuery. Also this MR adds a global default cookie `path` setting which defaults to the GitLab root directory. Now, setting a cookie to any path other than `gon.relative_url_root` requires an explicit opt-out. This is a sensible default and should prevent accidental omission going forward. ## Are there points in the code the reviewer needs to double check? Double check that all instances of `$.cookie(x)` have been replaced by `Cookies.get(x)` and all instances of `$.cookie(x, y, z)` are replaced with `Cookies.set(x, y, z)`. All javascripts which set or retrieve cookie values should function just as before. ## Why was this MR needed? One more step toward shaking off jQuery as a dependency (#23022), also [jquery.cookie](https://github.com/carhartl/jquery-cookie) is no longer maintained and hasn't seen an update in 2+ years. ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added - Tests - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? #23022 See merge request !7085
2016-10-26Remove use of wait_for_ajax since jQuery was removedStan Hu
Fixes #23812
2016-10-25Merge branch 'fix-events-api' into 'master' Rémy Coutable
Fix events order in users/:id/events endpoint ## What does this MR do? Order of events in contributions API is currently being lost, though docs are saying: > Get the contribution events for the specified user, sorted **from newest to oldest**. Order becomes different after `.merge(ProjectsFinder.new.execute(current_user))` call, so I moved ordering below this line. This MR also removes extra `.page(params[:page])` call in the method chain, since [`paginate(events)` already does it](https://gitlab.com/airat/gitlab-ce/blob/master/lib/api/helpers.rb#L112). See merge request !7039
2016-10-25Merge branch 'project-cache-worker-scheduling' into 'master' Rémy Coutable
Don't schedule ProjectCacheWorker unless needed ## What does this MR do? This MR changes `ProjectCacheWorker.perform_async` so scheduling only takes place when needed. See the commits for more details. See merge request !7099
2016-10-25Merge branch ↵Alfredo Sumaran
'temporarily-revert-appending-templates-before-long-term-ux-fix' into 'master' Stop appending templates - Temporary fix ## What does this MR do? This is the temporary fix for #23315. This stops the templates appending to any existing text. ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? Temporary fix for #23315. ## Screenshots (if relevant) ![2016-10-21_21.58.55](/uploads/ba54d89fcb2fb9cf99ff24c8623ae413/2016-10-21_21.58.55.gif) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if it does - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? See merge request !7050
2016-10-25Merge branch 'add-test-for-snippet-download' into 'master' Rémy Coutable
Adds test for feature in this MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6720 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6720 See merge request !6854
2016-10-25Don't schedule ProjectCacheWorker unless neededYorick Peterse
This changes ProjectCacheWorker.perform_async so it only schedules a job when no lease for the given project is present. This ensures we don't end up scheduling hundreds of jobs when they won't be executed anyway.
2016-10-25Merge branch 'board-dragging-disabled' into 'master' Sean McGivern
Stop unauthorized users dragging on issue boards Closes #23763 See merge request !7096
2016-10-25Stop unauthized users dragging on issue boardsPhil Hughes
Closes #23763
2016-10-25Merge branch 'show-commit-status-from-source-project' into 'master' Douwe Maan
Show commits from source project. Be consistent with pipeline ## What does this MR do? Show commits from source project instead of target project. ## Why was this MR needed? To be consistent. ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - Tests - [x] Added for this feature/bug ## What are the relevant issue numbers? Closes #3596 See merge request !6658
2016-10-25Merge branch '23662-issue-move-user-reference-exception' into 'master' Douwe Maan
Fix `User#to_reference` ## What does this MR do? Fix the method signature of `User#to_reference` so that moving an issue with a user reference does not throw a "invalid number of arguments" exception. ## Why was this MR needed? 1. Changes in 8.13 require `Referable`s that don't have a project reference to accept two arguments - `from_project` and `target_project`. 2. `User#to_reference` was not changed to accept the `target_project` (even though it is not used). Moving an issue containing a user reference would throw a "invalid number of arguments" exception. 3. The regression was introduced in [c8b2b3f7](https://gitlab.com/gitlab-org/gitlab-ce/commit/c8b2b3f7c32db873f1bebce3e3b1847ea24d235f#91fabb7ad88bd2fde6fef1c100a719c00e503047_75_79), which expects all `Referable`s that don't respond to `:project` to have a `to_reference` method that takes two arguments. ## Does this MR meet the acceptance criteria? - Tests - [x] Added for this feature/bug - [ ] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? - Closes #23662 See merge request !7088
2016-10-25Merge branch 'escape-relative-links' into 'master' Sean McGivern
Escape `ref` and `path` in `RelativeLinkFilter`. fixes #21420 See merge request !6050
2016-10-25Merge branch 'scope-input-errors' into 'master' Fatih Acet
Stop injecting field errors where they won't be used. ## What does this MR do? Filters the form elements which gl_field_errors validates, excluding input types button, submit and checkbox. ## Why was this MR needed? This won't make a difference in UX, but I just noticed that we are currently validating and injecting errors into the DOM for all non-hidden inputs. Doing so is unnecessary, and could introduce performance problems on forms with larger numbers of inputs. ## Does this MR meet the acceptance criteria? - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !6929
2016-10-25Merge branch 'sh-fix-labels-move-issue' into 'master' Rémy Coutable
Fix bug where labels would be assigned to issues that were moved If you attempt to move an issue from one project to another and leave labels blank, LabelsFinder would assign all labels in the new project to that issue. The issue is that :title is passed along to the Finder, but since it appears empty no filtering is done. As a result, all labels in the group are returned. This fix handles that case. Closes #23668 See merge request !7065
2016-10-25Merge branch '23509-remove-redundant-class-name-and-foreign-key' into 'master' Rémy Coutable
Remove redundant overrides in ActiveModel association declarations. Closes #23509 See merge request !6970
2016-10-25Improve readability and add specs for label filteringStan Hu
2016-10-25Allow the use of params[:name] when filtering labelsStan Hu
2016-10-25Fix Rubocop offenses in issue move specsGrzegorz Bizon
2016-10-25Add spec in Issues::MoveService to fix label assignment regressionStan Hu
2016-10-25Fix bug where labels would be assigned to issues that were movedStan Hu
If you attempt to move an issue from one project to another and leave labels blank, LabelsFinder would assign all labels in the new project to that issue. The issue is that :title is passed along to the Finder, but since it appears empty no filtering is done. As a result, all labels in the group are returned. This fix handles that case. Closes #23668
2016-10-25Fix `User#to_reference`Timothy Andrew
1. Changes in 8.13 require `Referable`s that don't have a project reference to accept two arguments - `from_project` and `target_project`. 2. `User#to_reference` was not changed to accept the `target_project` (even though it is not used). Moving an issue containing a user reference would throw a "invalid number of arguments" exception. Fixes #23662
2016-10-25Merge branch 'register-tab' into 'master' Jacob Schatz
Only show register tab if signup enabled. ## What does this MR do? Fixes a regression where the register tab is activated, even if sign-up enabled is not activated in application_settings. ## Screenshots (if relevant) When signup is disabled: ![Screen_Shot_2016-10-22_at_8.56.23_PM](/uploads/bd0fa5f27114779c0d290a8151c1c253/Screen_Shot_2016-10-22_at_8.56.23_PM.png) ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added - [ ] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? https://gitlab.com/gitlab-org/gitlab-ce/issues/23654 See merge request !7058
2016-10-25Fix rubocop build errorJacob Schatz
2016-10-25remove manual Cookie.set "path" option in favor of global settingMike Greiling
2016-10-25replace jquery.cookie vendor script with js.cookieMike Greiling
2016-10-24Remove redundant class_name and foreign_key overridesDavid Wagner
They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
2016-10-24Add failing test for #21420winniehell
2016-10-24Make events order spec deterministic, create only 3 record instead of 5, ↵Airat Shigapov
explicitely check for events order
2016-10-24Rewrite events order spec to simulate wrong order without changing idsAirat Shigapov
2016-10-24Add test for events order in APIAirat Shigapov
2016-10-24Make sure merge request was created before deleting sourceLin Jen-Shin
2016-10-24Merge branch 'grapify-labels-api' into 'master' Rémy Coutable
Grapify the labels API Add the Grape-DSL to the labels API. Since the input validation messages are checked, two tests are modified slightly. ## What are the relevant issue numbers? Related to #22928 See merge request !7070
2016-10-24Use proper tense and spacing in login_specs.Bryce Johnson
2016-10-24Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin
show-commit-status-from-source-project * upstream/master: (368 commits) Use root_url for issue boards user link removes extra line for empty milestone description code formatting corrected Fix reply-by-email not working due to queue name mismatch Remove duplicate code in repository cache clearing Expire and build repository cache after project import refactor(email): use setter method instead AR callbacks Move spec/mailers/shared/notify.rb to spec/support Fix status code expectation Stop clearing the database cache on rake cache:clear Fix error in generating labels Fix bug where e-mails were not being sent out via Sidekiq Document link syntax introduced by !5586 Fix documents and comments on Build API `scope`. #23146 #19131 adds entry in CHANGELOG removes extra line for empty issue description Re-organize queues to use for Sidekiq Fix wrong endpoint in api/users documentation, fix same typo in spec describe blocks Update CHANGELOG Fix object data to be sent to fetch analytics data ...
2016-10-24Test login tab/pane rendering in varying configurations.Bryce Johnson
2016-10-24Grapify the labels APIRobert Schilling
2016-10-24Merge branch 'luishgo/gitlab-ce-18898-filter-commits-per-path'Rémy Coutable
See merge request !4814.
2016-10-24Added path parameter to Commits APILuis HGO
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-24fixes build with cache:clear issuetiagonbotelho
2016-10-24Merge branch 'barthc/gitlab-ce-prevent_authored_vote_from_notes'Rémy Coutable
See merge request !6544.
2016-10-24Fix authored vote from notesbarthc
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-24Merge branch ↵Dmitriy Zaporozhets
'yesbabyyes/gitlab-ce-22967-adding-zero-users-to-group-reports-success' Merge request - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6979