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
2017-04-04Incorporate Gitaly client for refs serviceAlejandro Rodríguez
2017-04-04Remove useless queries with false conditions (e.g 1=0)mhasbini
2017-03-17Add a new have_html_escaped_body_text that match an HTML-escaped textRémy Coutable
This solves transient failures when a text contains HTML-escapable characters such as `'`. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-06Fix wrong image src with cached gl-emoji and relative rootEric Eastwood
2017-03-06Use native unicode emojisEric Eastwood
- gl_emoji for falling back to image/css-sprite when the browser doesn't support an emoji - Markdown rendering (Banzai filter) - Autocomplete - Award emoji menu - Perceived perf - Immediate response because we now build client-side - Update `digests.json` generation in gemojione rake task to be more useful and include `unicodeVersion` MR: !9437 See issues - #26371 - #27250 - #22474
2017-03-02Add internal endpoint to notify post-receive to GitalyAlejandro Rodríguez
2017-02-23Enable Style/ClassCheckDouwe Maan
2017-02-16Add a custom pagination matcherRobert Schilling
2017-02-10Remove a transient failure from spec/requests/api/groups_spec.rbRobert Speicher
2017-02-05Ensure the right content is served for the build artifacts APIRobert Schilling
2017-01-05Absorb gitlab_gitRobert Speicher
2016-12-06Use :maximum instead of :within for length validators with a 0..N rangeRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-01Merge branch '22781-user-generated-permalinks' into 'master' Fatih Acet
Resolve "User-generated permalink IDs collide with GitLab interface" ## What does this MR do? Prevents ID values automatically generated by headers in [GitLab Flavored Markdown](https://github.com/gitlabhq/gitlabhq/blob/master/doc/user/markdown.md#header-ids-and-links) from colliding with IDs used elsewhere in the GitLab interface. This can cause confusion when, for instance, a selector looks for a merge request tab with `id="pipelines"` and there is a header with the same ID earlier in the DOM. How this works: * All header IDs generated with GitLab Flavored Markdown are namespaced with `id="user-content_foo"` * All anchor links which point to these IDs continue to use the non-namespaced hash `<a href="#foo">...</a>` * When a page is loaded or when the `hashchange` event is triggered, javascript will automatically search for `#user-content_foo` if `#foo` cannot be found, and scroll to that position instead. ## Before ![2016-11-21-13.00.28](/uploads/e3be2cd6a9142dfd6e64db5462a6aa76/2016-11-21-13.00.28.gif) ## After: ![2016-11-21-13.12.45](/uploads/f7ae3f3a30c91325eaa3665591b6a850/2016-11-21-13.12.45.gif) ![2016-11-21-13.03.00](/uploads/3a6a782c081ecaa05b8781548d794909/2016-11-21-13.03.00.gif) ## Does this MR meet the acceptance criteria? - [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - 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 #22781 See also prior attempts to address this issue: #3908, !2023, !2024 See merge request !7631
2016-12-01Fix have_issuable_counts matcher on failureSean McGivern
2016-12-01remove underscore from user-content id namespaceMike Greiling
2016-12-01update gitlab flavored markdown tests to reflect namespaced idsMike Greiling
2016-11-30Speed up Group security access specsRobert Speicher
This is the Group equivalent of 13ad9a745a392e0bf0cedd0e1f318c1acee9b969
2016-11-28Speed up Project security access specsRobert Speicher
Prior, every single test was creating four `ProjectMember` objects, each of which created one `User` record, even though each test only used _one_ of those Users, if any. Now each test only creates the single user record it needs, if it needs one. This shaves minutes off of each spec file changed here.
2016-11-17Improve code design after code reviewKamil Trzcinski
2016-10-17Add a be_like_time matcher and use it in specsNick Thomas
The amount of precision times have in databases is variable, so we need tolerances when comparing in specs. It's better to have the tolerance defined in one place than several.
2016-09-30Small improvements thanks to Robert's feedbackRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-20Remove VideoJS and clean the integrationRémy Coutable
Handle videos in: - MD preview in notes: commit, issue/MR, MR diff - New notes in: commit, issue/MR, MR diff - Persisted notes in: commit, issue/MR, MR diff Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-21Merge branch 'adambutler/gitlab-ce-feature/support-diff-of-issue-title-rename'Douwe Maan
# Conflicts: # app/services/system_note_service.rb
2016-05-18Create DiffFilter and change SystemNoteService#change_title to use ↵Adam Butler
Gitlab::Diff::InlineDiff
2016-04-21Transforming milestones link references to the short reference formAlejandro Rodríguez
2016-04-21Implementing special GitLab markdown reference for milestonesAlejandro Rodríguez
Using the syntax proposed in #13829 [project_reference]%(milestone_id | milestone_name) to get a link to the referred milestone.
2016-04-06Fix a few edited references from WikiLinkFilter and specsGabriel Mazetto
2016-03-20Tweaks, refactoring, and specsDouwe Maan
2016-03-13External UsersZeger-Jan van de Weg
The user has the rights of a public user execpt it can never create a project, group, or team. Also it cant view internal projects.
2016-03-10Removed benchmark suite and its documentationYorick Peterse
The rationale for this can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/13718 but in short the benchmark suite no longer serves a good purpose now that we have proper production monitoring in place. Fixes gitlab-org/gitlab-ce#13718
2016-01-14Fix parse_gollum_tags matcherDouglas Barbosa Alexandre
2016-01-14Add tests for the wiki pipelineDouglas Barbosa Alexandre
2015-12-24Render milestone links as referencesDouwe Maan
2015-12-01Add new references to markdown feature spec.Douwe Maan
2015-10-05Evaluate benchmark blocks in the proper contextYorick Peterse
This ensures that blocks defines using "benchmark_subject" have access to methods defined using let/subject & friends.
2015-10-05Added benchmark_subject method for benchmarksYorick Peterse
This class method can be used in "describe" blocks to specify the subject of a benchmark. This lets you write: benchmark_subject { Foo } instead of: benchmark_subject { -> { Foo } }
2015-10-02Basic setup for an RSpec based benchmark suiteYorick Peterse
This benchmark suite uses benchmark-ips (https://github.com/evanphx/benchmark-ips) behind the scenes. Specs can be turned into benchmark specs by setting "benchmark" to "true" in the top-level describe block like so: describe SomeClass, benchmark: true do end Writing benchmarks can be done using custom RSpec matchers, for example: describe MaruTheCat, benchmark: true do describe '#jump_in_box' do it 'should run 1000 iterations per second' do maru = described_class.new expect { maru.jump_in_box }.to iterate_per_second(1000) end end end By default the "iterate_per_second" expectation requires a standard deviation under 30% (this is just an arbitrary default for now). You can change this by chaining "with_maximum_stddev" on the expectation: expect { maru.jump_in_box }.to iterate_per_second(1000) .with_maximum_stddev(10) This will change the expectation to require a maximum deviation of 10%. Alternatively you can use the it block style to write specs: describe MaruTheCat, benchmark: true do describe '#jump_in_box' do subject { -> { described_class.new } } it { is_expected.to iterate_per_second(1000) } end end Because "iterate_per_second" operates on a block, opposed to a static value, the "subject" method must return a Proc. This looks a bit goofy but I have been unable to find a nice way around this.
2015-09-06Fix emoji URLs in Markdown when relative_url_root is usedStan Hu
Also adds the ability to run rspecs with relative_url_defined on the enviornment. For example: RELATIVE_URL_ROOT=/gitlab rspec Closes #1728
2015-07-29Update Markdown feature to allow for multiple pipelinesRobert Speicher
2015-07-22Move custom matchers to their own files under spec/support/matchersRobert Speicher
2015-07-22Move access-related matchers to their own moduleRobert Speicher