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
2019-09-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-04Create an event on epic actionsJan Provaznik
Creates new event when an epic is created, closed, reopened or commented.
2019-08-28Add Issue and Merge Request titles to Todo itemsArun Kumar Mohan
Only displays the todo body if the todo has a note. This is to avoid redundant Issue or Merge Request titles displayed both in the Todo title and body.
2019-06-24Rename Todos.with_api_entity_associations to with_entity_associationsStan Hu
Since this scope is used in both the controller and the API, we rename it to make it clear that it's used for both.
2019-06-05Delete unauthorized Todos when project is privateFelipe Artur
Delete Todos for guest users when project visibility level is updated to private.
2019-03-28Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas
2019-03-06Significantly reduce N+1 queries in /api/v4/todos endpointStan Hu
By preloading associations and batching issuable metadata lookups, we can significantly cut the number of SQL queries needed to load the Todos API endpoint. On GitLab.com, my own tests showed my user's SQL queries went from 365 to under 60 SQL queries. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/40378
2018-12-14Delete confidential issue todos for guestsFelipe Artur
Fix leaking information of confidential issues on TODOs when user is downgraded to guest access.
2018-10-08Clean up ActiveRecord code in TodoServiceYorick Peterse
This refactors the TodoService class according to our code reuse guidelines. The resulting code is a wee bit more verbose, but it allows us to decouple the column names from the input, resulting in fewer changes being necessary when we change the schema. One particular noteworthy line in TodoService is the following: todos_ids = todos.update_state(state) Technically this is a violation of the guidelines, because `update_state` is a class method, which services are not supposed to use (safe for a few allowed ones). I decided to keep this, since there is no alternative. `update_state` doesn't produce a relation so it doesn't belong in a Finder, and we can't move it to another Service either. As such I opted to just use the method directly. Cases like this may happen more frequently, at which point we should update our documentation with some sort of recommendation. For now, I want to refrain from doing so until we have a few more examples.
2018-10-08Clean up ActiveRecord code in TodosFinderYorick Peterse
This refactors the TodosFinder finder according to the new code reuse rules, as enforced by the CodeReuse cops. I also changed some of the methods to use regular if statements, instead of assignments and/or early returns. This results in a more natural flow when reading the code, and it makes it harder to accidentally return the wrong result.
2018-09-17Added FromUnion to easily select from a UNIONYorick Peterse
This commit adds the module `FromUnion`, which provides the class method `from_union`. This simplifies the process of selecting data from the result of a UNION, and reduces the likelihood of making mistakes. As a result, instead of this: union = Gitlab::SQL::Union.new([foo, bar]) Foo.from("(#{union.to_sql}) #{Foo.table_name}") We can now write this instead: Foo.from_union([foo, bar]) This commit also includes some changes to make this new setup work properly. For example, a bug in Rails 4 (https://github.com/rails/rails/issues/24193) would break the use of `from("sub-query-here").includes(:relation)` in certain cases. There was also a CI query which appeared to repeat a lot of conditions from an outer query on an inner query, which isn't necessary. Finally, we include a RuboCop cop to ensure developers use this new module, instead of using Gitlab::SQL::Union directly. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
2018-08-07Merge branch 'group-todos' into 'master'Sean McGivern
Group todos See merge request gitlab-org/gitlab-ce!20675
2018-08-02Revert "Revert "Merge branch 'ee-5481-epic-todos' into 'master'""Jarka Kadlecová
This reverts commit 8717c7dad9b5a8fa21ec9a652c54718a6b4c2175.
2018-07-27Enable frozen string in app/models/*.rbgfyoung
Partially addresses #47424.
2018-07-11Revert "Merge branch 'ee-5481-epic-todos' into 'master'"Jarka Kadlecová
This reverts commit 4d9a3f42f1fd3be21555e19872b7121cca65015e, reversing changes made to ecf9c145f6e4d170cd059df88743393d9e63c489.
2018-07-03More EE->CE fixesJan Provaznik
2018-07-03[backend] Addressed review commentsJan Provaznik
* Group filtering now includes also issues/MRs from subgroups/subprojects * fixed due_date * Also DRYed todo controller specs
2018-07-03Support todos for epics backportJarka Kadlecová
2018-04-18Revert the addition of goldiloaderYorick Peterse
This reverts the addition of the "goldiloader" Gem and all use of it. While this Gem is very promising it's causing a variety of problems on GitLab.com due to it eager-loading too much data in places where we don't expect/can handle this. At least for the time being this means we have to go back to manually fixing N+1 query problems, but at least those should not cause a negative impact on availability.
2018-04-09Use Goldiloader for handling N+1 queriesYorick Peterse
Goldiloader (https://github.com/salsify/goldiloader) can eager load associations automatically. This removes the need for adding "includes" calls in a variety of different places. This also comes with the added benefit of not having to eager load data if it's not used.
2018-04-04[Rails5] Rename `sort` methods to `sort_by_attribute`blackst0ne
2018-03-05Remove default scope from todosSean McGivern
This was causing todo priority sorting to fail.
2018-02-05Set todos#author_id to NOT NULL.Andreas Brandl
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-07Added Cop to blacklist polymorphic associationsYorick Peterse
One should really use a separate table instead of using polymorphic associations. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11168 for more information.
2017-04-28Improve text on todo list when the todo action comes from yourselfJacopo
Improved todo message when an issue is assigned to yourself. - The new message when an user assign to himself an issue or a mr is: "You assigned issue xx to yourself" - The new message when an user adds a todo to himself is: "You added a todo for issue xx" - The new message when and user mention himself is: "You mentioned yourself on issue xx" - The new message when an user directly address himself is: "You directly addressed yourself on issue xx" - The new message when an user mark himself as an approver is: "You set yourself as an approver for merge request xx"
2017-03-15Allow sorting by due date and label prioritySean McGivern
2017-02-23Revert "Prefer leading style for Style/DotPosition"Douwe Maan
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23Prefer leading style for Style/DotPositionDouwe Maan
2017-02-23Enable Style/MutableConstantDouwe Maan
2017-02-08Create directly_addressed Todos when mentioned in beginning of a lineErshad Kunnakkadan
2017-01-28Present TODO's list without grouping by projectOswaldo Ferreira
2017-01-14Notify the user who set auto-merge when merge conflict occurstwonegatives
2016-10-28Fix and improve `Sortable.highest_label_priority`Alejandro Rodríguez
2016-10-19Use keyword arguments on Sortable#highest_label_priorityDouglas Barbosa Alexandre
2016-10-19Fix sorting by label prioritiesDouglas Barbosa Alexandre
2016-08-19Todos sorting dropdownFelipe Artur
2016-07-12Add approval required todosSean McGivern
2016-07-04Don't garbage collect commits that have related DB records like commentsDouwe Maan
2016-07-01Expose action_nameRobert Schilling
2016-07-01Move to helper, no instance variablesRobert Schilling
2016-07-01Add Todos APIDouglas 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-05-17Create a todo on failing MR buildSean McGivern
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.
2016-05-09Remove the annotate gem and delete old annotationsJeroen van Baarsen
In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
2016-03-18Refactor `Todo#target`Douglas Barbosa Alexandre
2016-03-18Rename `Todo#to_reference` to `Todo#target_reference`Douglas Barbosa Alexandre
Since we're not actually returning a todo reference.
2016-03-18Use `Commit#short_id` instead of `Commit.truncate_sha`Douglas Barbosa Alexandre
2016-03-18Reuse `for_commit?` on conditional validationsDouglas Barbosa Alexandre