- 04 4月, 2016 10 次提交
-
-
由 Yorick Peterse 提交于
[ci skip]
-
由 Douwe Maan 提交于
Improve rendering performance of Banzai Related issues: * gitlab-org/gitlab-ce#14315 * gitlab-org/gitlab-ce#13651 TODO: * [x] `Banzai::Filter::ExternalIssueReferenceFilter#call` calls `Project#default_issues_tracker?` which runs a query on every call. Memoizing this only works if the `Project` instance is shared between instances of this filter. Either way it should at most only run this method once. * [x] Fix the two failing specs * [x] Clean of the various `call` methods in the filters where I inlined methods * [x] Remove the `replace_XXX` methods in ReferenceFilter now that they're no longer used. See merge request !3389
-
由 Yorick Peterse 提交于
Cleaning this up any further is a bit tricky as the caches in question should only be evaluated if RequestStore is actually enabled.
-
由 Yorick Peterse 提交于
Fix bug related to filtering Issues by Label/Milestone. See merge request !3499
-
由 Yorick Peterse 提交于
-
由 Yorick Peterse 提交于
Every object processed by ExternalIssueReferenceFilter can return a different Project instance when calling "project". For example, every note processed will have it's own associated Project. If we were to cache Project#default_issues_tracker? on Project level this would have no impact on Markdown rendering timings as the cache would have to be built for every Project instance without it ever being re-used. To work around this we cache Project#default_issues_tracker? in Banzai::Filter::ExternalIssueReferenceFilter using the project's _id_ instead of the whole object. This setup allows re-using of the cached data even when the Project instances used are different, as long as the actual project IDs are the same.
-
由 Yorick Peterse 提交于
For an issue with around 200 notes this cuts down timings by around 150 milliseconds.
-
由 Yorick Peterse 提交于
These methods always return the same data for every class so there's no point in computing their values on every call.
-
由 Yorick Peterse 提交于
These filters now use a single iteration over all the document nodes instead of multiple ones. This in turn allows variables to be re-used (e.g. links only have to be unescaped once). Combined with some other refactoring this can drastically reduce render timings.
-
由 Yorick Peterse 提交于
This was originally suggested by @ayufan and modified to be a bit cleaner and use RequestStore instead of a regular Hash. By caching the output of the two methods involved the number of queries is reduced significantly. For example, for an issue with 200 notes (of which 100 reference a number of merge requests) this cuts down the amount of queries from around 6300 to around 3300.
-
- 03 4月, 2016 3 次提交
-
-
由 Douwe Maan 提交于
Build updates Fixes #10851 ![build-updates](/uploads/52e09e679ca457f3d818f9a12fd8382b/build-updates.gif) See merge request !2604
-
由 Douwe Maan 提交于
Add endpoints for archiving and unarchiving Closes #14296 See merge request !3372
-
由 Douwe Maan 提交于
Don't fetch any tags from a forked repo Closes #13957 See merge request !3504
-
- 02 4月, 2016 17 次提交
-
-
由 Rubén Dávila 提交于
This problem only was affecting the dev env.
-
由 Dmitriy Zaporozhets 提交于
Two level hierarchy in navigation sidebar Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !3494
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
由 Stan Hu 提交于
Closes #13957
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
由 Jacob Schatz 提交于
Remove 1px whitespace between nav tabs and underline when form present Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !3489
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
由 Jacob Schatz 提交于
Notes/discussions header Part way towards getting the design for issues/merge requests to look more like the design in #3401 - I have standardised the headers for both issues & merge requests comments and discussions. See merge request !3441
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
-
由 Robert Speicher 提交于
Added & use Gitlab::Routing for URL helpers Extracted from !3389 See merge request !3486
-
由 Rémy Coutable 提交于
[ci skip] Signed-off-by: NRémy Coutable <remy@rymai.me>
-
由 Robert Speicher 提交于
Memoize reference_pattern/link_reference_pattern Extracted from !3389 See merge request !3485
-
由 Robert Speicher 提交于
spec and fix for fogbugz lonely user problem Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/14766 I encountered this issue while manually testing all import types for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3066 This is really due to a horrible API ``` { 'people' => { 'person' => array_of_people_or_single_person_as_hash } } ``` See merge request !3457
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
- 01 4月, 2016 10 次提交
-
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
由 Jacob Schatz 提交于
Revert "Merge branch 'users_should_not_be_able_upvote_downvote' into 'master'" This reverts merge request !3406 See merge request !3491
-
由 Rémy Coutable 提交于
Allow temp-oauth-email as notification email Closes #14559 /cc @dblessing @rymai See merge request !3477
-
由 Jacob Schatz 提交于
This reverts merge request !3406
-
由 Jacob Schatz 提交于
Prevent users from being able to both upvote and downvote closes #14480 ![thumbs](/uploads/d0d64f08dbf271fe969b44c68f424123/thumbs.gif) See merge request !3406
-
由 Jacob Schatz 提交于
Fix divider in dropdown when not needed closes #14533 ## Before ![Screen_Shot_2016-03-25_at_12.35.21_AM](/uploads/20f386c9c45c9ee8716835ccfa0066ed/Screen_Shot_2016-03-25_at_12.35.21_AM.png) ## After ![Screen_Shot_2016-03-25_at_12.37.27_AM](/uploads/22db62db920017da5fe1da7670fbbb0e/Screen_Shot_2016-03-25_at_12.37.27_AM.png) See merge request !3394
-
由 Dmitriy Zaporozhets 提交于
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-
由 Yorick Peterse 提交于
Rails' "url_helpers" method creates an anonymous Module (which a bunch of methods) on every call. By caching the output of this method in a dedicated method we can shave off about 10 seconds of loading time for an issue with around 200 comments.
-
由 Yorick Peterse 提交于
These methods are called quite often in loops so by memoizing their output we can reduce timings a bit.
-
由 Rémy Coutable 提交于
Fixes issue with dropdowns not selecting values Fixes issue with dropdowns not selecting when navigating between tabs Closes #14813 See merge request !3478
-