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-05Refactor TrendingProjectsFinder to support cachingYorick Peterse
== Public Projects This finder class now _only_ returns public projects. Previously this finder would also return private and internal projects. Including these projects makes caching data much harder and less efficient. Meanwhile including this data isn't very useful as very few users would be interested in seeing projects they have access to as trending. That is, the feature is more useful when you want to see what _other_ popular projects there are. == Caching The data returned by TrendingProjectsFinder is now cached for a day based on the number of months the data should be restricted to. The cache is not flushed explicitly, instead it's rebuilt whenever it expires. == Timings To measure the impact I changed the finder code to use the last 24 months instead of the last month. I then executed and measured 10 requests to the explore page. On the current "master" branch (commit 88fa5916ffa0aea491cd339272ed7437c3f52dc7) this would take an average of 2.43 seconds. Using the changes of this commit this was reduced to around 1.7 seconds. Fixes gitlab-org/gitlab-ce#22164
2016-09-30Take filters in account in issuable countersRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-09-28Use Ability.allowed? instead of current_user.can? in AccessRequestsFinderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-09-28Improve the logic in AccessRequestsFinder#execute & #execute!Rémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-09-28New AccessRequestsFinderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-09-20fix issues mr counterbarthc
2016-09-07Use PipelinesFinder in Pipelines APIZ.J. van de Weg
2016-08-31Merge branch 'refactor/add-policies' into 'master' Robert Speicher
Refactor ability.rb into Policies ## What does this MR do? Factors out `ability.rb` into a new abstraction - the "policy" (stored in `app/policies`). A policy is a class named `#{class_name}Policy` (looked up automatically as needed) that implements `rules` as follows: ``` ruby class ThingPolicy < BasePolicy def rules @user # this is a user to determine abilities for, optionally nil in the anonymous case @subject # this is the subject of the ability, guaranteed to be an instance of `Thing` can! :some_ability # grant the :some_ability permission cannot! :some_ability # ensure that :some_ability is not allowed. this overrides any `can!` that is called before or after delegate! @subject.other_thing # merge the abilities (can!) and prohibitions (cannot!) from `@subject.other_thing` can? :some_ability # test whether, so far, :some_ability is allowed end def anonymous_rules # optional. if not implemented `rules` is called where `@user` is nil. otherwise this method is called when `@user` is nil. end end ``` See merge request !5796
2016-08-31add specs for tags findertiagonbotelho
2016-08-30remove Ability.abilitieshttp://jneen.net/
2016-08-20Merge branch 'issue_18135' into 'master' Douwe Maan
Todos sorting dropdown Implements #18135 ![todos_sorting](/uploads/bff76827c421628134dfb8b864e47c74/todos_sorting.png) - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [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 you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5691
2016-08-19Todos sorting dropdownFelipe Artur
2016-08-19Merge branch '17932-move-to-project-dropdown' into 'master' Jacob Schatz
Move to project dropdown with infinite scroll for better performance ## What does this MR do? On the Move dropdown on the edit issue page we introduced infinite scrolling to just return a limited number of projects, 50 items. So if the user can move the issue to 50 or more items when scroll down on the list a new set of projects will be requested to the server. ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? See #17932 ## What are the relevant issue numbers? Closes #17932 ## Screenshots (if relevant) ## 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)~~ - ~~[ ] API support added~~ - Tests - [x] Added for this feature/bug - [x] All builds are passing - [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 you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5686
2016-08-19Merge branch '4273-slash-commands' into 'master'Robert Speicher
Support slash commands in issues / MR description & comments See merge request !5021
2016-08-18Move to project dropdown with infinite scroll for better performancePaco Guzman
Use just SQL to check is a user can admin_issue on a project Using offset pagination instead pages to avoid a count query Tradeoff - we duplicate how we check admin_issue in a SQL relation in the Ability class
2016-08-17Move to project dropdown with infinite scroll for better performancePaco Guzman
Use just SQL to check is a user can admin_issue on a project Tradeoff - we duplicate how we check admin_issue in a SQL relation in the Ability class
2016-08-17Merge branch 'master' into 4273-slash-commandsDouwe Maan
# Conflicts: # app/services/issues/create_service.rb
2016-08-15Pass project IDs relation to ProjectsFinder instead of using a blockAhmad Sherif
2016-08-15Speed up todos queries by limiting the projects set we join withAhmad Sherif
Closes #20828
2016-08-13Support slash commands in noteable description and notesRémy Coutable
Some important things to note: - commands are removed from noteable.description / note.note - commands are translated to params so that they are treated as normal params in noteable Creation services - the logic is not in the models but in the Creation services, which is the right place for advanced logic that has nothing to do with what models should be responsible of! - UI/JS needs to be updated to handle notes which consist of commands only - the `/merge` command is not handled yet Other improvements: - Don't process commands in commit notes and display a flash is note is only commands - Add autocomplete for slash commands - Add description and params to slash command DSL methods - Ensure replying by email with a commands-only note works - Use :subscription_event instead of calling noteable.subscribe - Support :todo_event in IssuableBaseService Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-08-01State specific default sort order for issuableszs
Provide more sensible default sort order for issues and merge requests based on the following table: | type | state | default sort order | |----------------|--------|--------------------| | issues | open | last created | | issues | closed | last updated | | issues | all | last created | | merge requests | open | last created | | merge requests | merged | last updated | | merge requests | closed | last updated | | merge requests | all | last created |
2016-07-19implements the basic filter functionalitytiagonbotelho
2016-07-12Merge branch 'approval-required-todo' into 'master' Robert Speicher
Add approval required todos Ports the 'approval required' todo type from EE - https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/547 See merge request !5217
2016-07-12Add approval required todosSean McGivern
2016-07-12Cache todos pending/done dashboard query countsPaco Guzman
2016-07-01Expose target, filter by state as stringRobert Schilling
2016-06-29PipelinesFinder use git cached dataPaco Guzman
2016-06-17Ensure Todos counters doesn't count Todos for projects pending deleteDouglas Barbosa Alexandre
2016-06-15Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets
2016-06-15Merge branch 'manual-todos-issuable-sidebar' into 'master' Stan Hu
Manually create todo for issuable ## What does this MR do? Adds a button to the sidebar in issues & merge requests to allow users to manually create a todo item themselves. ## What are the relevant issue numbers? Closes #15045 ## Screenshots (if relevant) ![Screen_Shot_2016-06-07_at_09.52.14](/uploads/00af70244c0589d19f241c3e85f3d63d/Screen_Shot_2016-06-07_at_09.52.14.png) ![Screen_Shot_2016-06-07_at_09.52.06](/uploads/e232b02208613a4a50cff4d1e6f119ff/Screen_Shot_2016-06-07_at_09.52.06.png) ![Screen_Shot_2016-06-07_at_09.51.14](/uploads/f1d36435d49ab882538ae2252bec8086/Screen_Shot_2016-06-07_at_09.51.14.png) See merge request !4502
2016-06-14Fix notes on confidential issues through JSON to users without accessDouglas Barbosa Alexandre
2016-06-14Manually create todo for issuablePhil Hughes
Added a button into the sidebar for issues & merge requests to allow users to manually create todo items Closes #15045
2016-06-14Project members with guest role can't access confidential issuesDouglas Barbosa Alexandre
2016-06-06Improve Issuable.order_labels_priorityRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-06Sort by label priorityThijs Wouters
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-03Merge branch 'master' into awardablesZ.J. van de Weg
2016-06-03Reorder the todos because the use of the project finder attempts to order ↵DJ Mountney
them differently
2016-06-02Use the project finder in the todos finder to limit todos to just ones ↵DJ Mountney
within projects you have access to.
2016-06-02Move filtering todos by projects not pending deletion into a scope on the ↵DJ Mountney
todo model
2016-06-02Reduce the filters on the todos joins project query by being explicit about ↵DJ Mountney
the join
2016-06-02Ensure we don't show TODOS for projects pending deleteDJ Mountney
By joining the Todos on the project table.
2016-05-31Fix error 500 when sorting issues by milestone due date and filtering by labelsFelipe Artur
2016-05-30Merge branch 'master' into awardablesZJ van de Weg
2016-05-25Merge branch 'fix-issue-17496' into 'master' Douwe Maan
Fix groups API to list only user's accessible projects Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/17496 See merge request !1966
2016-05-25Merge branch 'master' into awardablesZJ van de Weg
2016-05-25Fix groups API to list only user's accessible projectsStan Hu
Closes #17496
2016-05-24Fix outer join when filtering milestonesFelipe Artur
2016-05-24Fix issues/MRs filter when ordering by milestone due dateFelipe Artur
2016-05-20Merge branch 'create-todo-on-failing-build' into 'master' Douwe Maan
Create a todo on failing MR build Implements #14067. I worked on this with @DouweM (any mistakes are mine). When a build fails for a commit, create a todo for the author of the merge request that commit is the HEAD of. If the commit isn't the HEAD commit of any MR, don't do anything. If there already is a todo for that user and MR, don't do anything. Current limitations: - This isn't configurable by project. - The author of a merge request might not be the person who pushed the breaking commit. - I haven't tested this with a working CI setup, just with the unit tests below and by modifying my DB directly. See merge request !3177
2016-05-18Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into awardablesFatih Acet
# Conflicts: # app/controllers/projects/merge_requests_controller.rb # app/models/note.rb # db/schema.rb # spec/models/note_spec.rb