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-12-03Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-21Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-08-23Send TODOs for comments on commits correctlyNick Thomas
At present, the TodoService uses the `:read_project` ability to decide whether a user can read a note on a commit. However, commits can have a visibility level that is more restricted than the project, so this is a security issue. This commit changes the code to use the `:read_commit` ability in this case instead, which ensures TODOs are only generated for commit notes if the users can see the commit.
2019-04-09[CE] Support multiple assignees for merge requestsOswaldo Ferreira
Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
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-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-08-02Revert "Revert "Merge branch 'ee-5481-epic-todos' into 'master'""Jarka Kadlecová
This reverts commit 8717c7dad9b5a8fa21ec9a652c54718a6b4c2175.
2018-07-16Enable frozen string in apps/uploaders/*.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-03Use for_issuable? instead of for_issuable_with_ability?Jarka Kadlecová
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-05-17Create TODO when MR became unmergeablelulalala
Old behavior of creating TODO when “Merge When Pipeline Succeeds” service fails, is generalized to: Create a TODO whenever MR became unmergeable (and similar to notification, MR author and merge_user are both applicable)
2018-03-07Add discussion APIJan Provaznik
* adds basic discussions API for issues and snippets * reorganizes notes specs (so same tests can be used for all noteable types - issues, MRs, snippets)
2017-12-18Reset todo counters when the target is deletedSean McGivern
When the target is deleted, todos are destroyed, but we did not reset the todo cache for users with todos on the deleted target. This would only update after the next time the todo cache was updated for that user.
2017-11-16Adds Rubocop rule for line break after guard clauseJacopo
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-06Refactor issuable destroy actionJarka Kadlecova
2017-10-09Don't create todos for old issue assigneesJarka Kadlecova
2017-08-03Avoid plucking Todo ids and use sub-queries insteadToon Claes
TodoService should not call `.select(&:id)` on todos, because this is bad performance. So instead use sub-queries, which will result in a single SQL query to the database. https://docs.gitlab.com/ee/development/sql.html#plucking-ids
2017-05-04Backport of multiple_assignees_feature [ci skip]Valery Sizov
2017-05-02Display comments for personal snippetsJarka Kadlecova
2017-04-29Revert "Merge branch 'tc-no-todo-service-select' into 'master'"Stan Hu
This reverts merge request !10845
2017-04-27Avoid plucking Todo ids and use sub-queries insteadToon Claes
TodoService should not call `.select(&:id)` on todos, because this is bad performance. So instead use sub-queries, which will result in a single SQL query to the database. https://docs.gitlab.com/ee/development/sql.html#plucking-ids
2017-04-02Remove unnecessary ORDER BY clause when updating todosmhasbini
2017-03-29Create todos only for new mentionsJarka Kadlecova
2017-03-16Add 'Undo mark all as done' to TodosJacopo
Added the ability to 'Undo mark all as done' todos marked as complete with 'Mark all as done' in the 'Todo' tab of the Todo dashboard. The operation undos only the todo previously marked as done with the 'Mark al as done' button.
2017-03-01Update occurrences of MWBS to MWPSJames Lopez
Rename column in the database Rename fields related to import/export feature Rename API endpoints Rename documentation links Rename the rest of occurrences in the code Replace the images that contain the words "build succeeds" and docs referencing to them Make sure pipeline is green and nothing is missing. updated doc images renamed only_allow_merge_if_build_succeeds in projects and fixed references more updates fix some spec failures fix rubocop offences fix v3 api spec fix MR specs fixed issues with partials fix MR spec fix alignment add missing v3 to v4 doc wip - refactor v3 endpoints fix specs fix a few typos fix project specs copy entities fully to V3 fix entity error more fixes fix failing specs fixed missing entities in V3 API remove comment updated code based on feedback typo fix spec
2017-02-18Todo done clicking is kind of unusable.Jacopo
The Done button will change to an Undo button and the line item will be greyed out. Bold links will be unbolded. The user can undo the task by clicking the Undo button.
2017-02-08Create directly_addressed Todos when mentioned in beginning of a lineErshad Kunnakkadan
2017-01-14Notify the user who set auto-merge when merge conflict occurstwonegatives
2016-12-16Notify the user who set auto-merge when a build failstwonegatives
2016-10-11Make guests unable to view MRsValery Sizov
2016-09-08Refresh todos count cache when an Issue/MR is deletedDouglas Barbosa Alexandre
2016-08-25Add specs to ensure a successful return Paco Guzman
on the UI when mark as done a already done todo.
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-18Rename TodoService#mark_todos_as_done_by_id{,s}Ahmad Sherif
2016-08-18Implement TodoService#mark_todos_as_done_by_idAhmad Sherif
Follow-up on 52b0c26
2016-08-17Merge branch 'master' into 4273-slash-commandsDouwe Maan
# Conflicts: # app/services/issues/create_service.rb
2016-08-13New TodoService#todo_exists? methodRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-08-12Recover usage of Todos counter cachePaco Guzman
We’re being kept up to date the counter data but we’re not using it. The only thing which is not real if is the number of projects that the user read changes the number of todos can be stale for some time. The counters will be sync just after the user receives a new todo or mark any as done
2016-07-14When Issue author assign or mention himself Todos are createdKatarzyna Kobierska
2016-06-30Ensure logged-out users can't see private refsSean McGivern
2016-06-27Correctly returns todo ID after creating todoPhil Hughes
2016-06-17Cache todo counters (pending/done)Paco Guzman
- As todos are created/updated inside the TodoService we repopulate the cache just there for both pending/done todos - Todos as mark as done from the TodosController we update cache there too - All the added methods are kept in the User class for cohesion
2016-06-17Fix error when editing an issuable with a task listDouglas Barbosa Alexandre
2016-06-14Returns created todos to control rather than re-queryPhil Hughes
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