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-06-19Merge branch 'tc-fix-group-finder-subgrouping' into 'master'Douwe Maan
Show private subgroups if member of parent group Closes #32135 See merge request !11764
2017-06-06Introduce an Events APIMark Fletcher
* Meld the following disparate endpoints: * `/projects/:id/events` * `/events` * `/users/:id/events` + Add result filtering to the above endpoints: * action * target_type * before and after dates
2017-06-02Enable the Style/PreferredHashMethods copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-30Add :owned param to ProjectFinderToon Claes
And use it in the API.
2017-05-30Make it possible to combine :trending with other paramsToon Claes
Now it is possible to combine the :non_public parameter. This might be useful when a user wants to know the trending projects they are member of.
2017-05-30UNION of SELECT/WHERE is faster than WHERE on UNIONToon Claes
Instead of applying WHERE on a UNION, apply the WHERE on each of the seperate SELECT statements, and do UNION on that. Local tests with about 2_000_000 projects: - 1_500_000 private projects - 40_000 internal projects - 400_000 public projects For the API endpoint `/api/v4/projects?visibility=private` the slowest query was: ```sql SELECT "projects".* FROM "projects" WHERE ... ``` The original query took 1073.8ms. The query refactored to UNION of SELECT/WHERE took 2.3ms. The original query was: ```sql SELECT "projects".* FROM "projects" WHERE "projects"."pending_delete" = $1 AND (projects.id IN (SELECT "projects"."id" FROM "projects" INNER JOIN "project_authorizations" ON "projects"."id" = "project_authorizations"."project_id" WHERE "projects"."pending_delete" = 'f' AND "project_authorizations"."user_id" = 23 UNION SELECT "projects"."id" FROM "projects" WHERE "projects"."visibility_level" IN (20, 10))) AND "projects"."visibility_level" = $2 AND "projects"."archived" = $3 ORDER BY "projects"."created_at" DESC LIMIT 20 OFFSET 0 [["pending_delete", "f"], ["visibility_level", 0], ["archived", "f"]] ``` The refactored query: ```sql SELECT "projects".* FROM "projects" WHERE "projects"."pending_delete" = $1 AND (projects.id IN (SELECT "projects"."id" FROM "projects" INNER JOIN "project_authorizations" ON "projects"."id" = "project_authorizations"."project_id" WHERE "projects"."pending_delete" = 'f' AND "project_authorizations"."user_id" = 23 AND "projects"."visibility_level" = 0 AND "projects"."archived" = 'f' UNION SELECT "projects"."id" FROM "projects" WHERE "projects"."visibility_level" IN (20, 10) AND "projects"."visibility_level" = 0 AND "projects"."archived" = 'f')) ORDER BY "projects"."created_at" DESC LIMIT 20 OFFSET 0 [["pending_delete", "f"]] ```
2017-05-30Change ProjectFinder so starred can be combined with other filtersToon Claes
The `starred` parameter couldn't be used in combination with `trending` or `non_public`. But this is changed now.
2017-05-15Create a Users FinderGeorge Andrinopoulos
2017-05-10Merge branch 'tc-fix-private-subgroups-shown' into 'security' Douwe Maan
Use GroupsFinder to find subgroups the user has access to See merge request !2096
2017-05-10Merge branch 'snippets-finder-visibility' into 'security'Douwe Maan
Refactor snippets finder & dont return internal snippets for external users See merge request !2094
2017-05-08Add Pipeline Schedules that supersedes experimental Trigger ScheduleZeger-Jan van de Weg
2017-05-04Backport of multiple_assignees_feature [ci skip]Valery Sizov
2017-05-02Add constant as ALLOWED_INDEXED_COLUMNSShinya Maeda
2017-05-02Use HasStatus::AVAILABLE_STATUSES instead of hard codingShinya Maeda
2017-05-02Add a blank line between blocksShinya Maeda
2017-05-02Revert "Use JSON type for sorting parameter (halfway)"Shinya Maeda
This reverts commit 34127cb13ad72f65a24bdc8fc051363d3edd77cb.
2017-05-02Use JSON type for sorting parameter (halfway)Shinya Maeda
2017-05-02Use order instead of reorder. Improve tests.Shinya Maeda
2017-05-02Fix improper method name and spec descriptionShinya Maeda
2017-05-02Allow only indexed columns in #order_and_sort. Remove present (Because ↵Shinya Maeda
unnecessary) from condition. Added spec just in case.
2017-05-02Avoid hardcode table nameShinya Maeda
2017-05-02Add name. Improve order_and_sort.Shinya Maeda
2017-05-02Add name(User)Shinya Maeda
2017-05-02Change name to usernameShinya Maeda
2017-05-02Fix inappropriate regexShinya Maeda
2017-05-02Use 'case/when/end'Shinya Maeda
2017-05-02Improved CI. Fix yaml_errors boolean evaluation.Shinya Maeda
2017-05-02Fixed the following.Shinya Maeda
- Fix inappropriate evaluation(casecmp) to regex - Fix missed boolean conversion - Improve spec
2017-05-02Fixed SQL injectionShinya Maeda
2017-05-02Fix rubocop offences and rspec failuresShinya Maeda
2017-05-02Add specs. Plus, minor fixes.Shinya Maeda
2017-05-02Fixed those points.Shinya Maeda
- username to user_id - Drop duration - Resolve comments - Add Changelog - Edit docs
2017-05-02Remove unnecessary commentShinya Maeda
2017-05-02- Add new parameters for Pipeline APIShinya Maeda
- Expand PipelinesFinder functions
2017-05-02Display comments for personal snippetsJarka Kadlecova
2017-04-25Ability to filter merge requests by labels and milestonesRobert Schilling
2017-04-06Merge branch 'update-droplab-to-webpack-version' into new-resolvable-discussionLuke "Jared" Bennett
2017-04-06ProjectsFinder should handle more optionsJacopo
Extended ProjectFinder in order to handle the following options: - current_user - which user use - project_ids_relation: int[] - project ids to use - params: - trending: boolean - non_public: boolean - starred: boolean - sort: string - visibility_level: int - tags: string[] - personal: boolean - search: string - non_archived: boolean GroupProjectsFinder now inherits from ProjectsFinder. Changed the code in order to use the new available options.
2017-04-05Fix specsDouwe Maan
2017-04-05Address review commentsDouwe Maan
2017-04-05Add option to start a new discussion on an MRDouwe Maan
2017-04-03Fixes milestone/merge_request API endpoint to really scope the resultsJoren De Groof
The MergeRequestsFinder uses the milestone_title instead of the milestone_id
2017-03-30Merge branch 'jej-group-name-disclosure' into 'security'Sean McGivern
Prevent private group disclosure via parent_id See merge request !2077
2017-03-27Optimize labels finder querymhasbini
Optimize labels finder query when searching for a project with a group
2017-03-21Revert "Merge branch '29534-todos-performance' into 'master'"Sean McGivern
This reverts merge request !10076
2017-03-20Todos performance: Include associations in FinderJarka Kadlecova
2017-03-15Allow filtering by all started milestonesSean McGivern
2017-03-09Show members of parent groups on project members pageDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-03-07Merge remote-tracking branch ↵Douwe Maan
'origin/personal_access_token_api_and_impersonation_token'
2017-03-06apply codestyle and implementation changes to the respective feature codeTiago Botelho