Commit graph

2760 commits

Author SHA1 Message Date
Robb Kidd
378fe076b6 Reduce complexity: replace case statement with method lookup. 2012-10-11 13:27:58 -04:00
Dmitriy Zaporozhets
baf94bd732 Merge pull request #1675 from robbkidd/separate_mr_observer
Separate observing of Note and MergeRequests
2012-10-11 09:35:21 -07:00
Robb Kidd
d32a5d7eef Clean up indenting in new observer. 2012-10-11 11:05:13 -04:00
Valeriy Sizov
9168cd6a00 Fix starting gitlab after reboot server 2012-10-11 16:55:11 +03:00
Valeriy Sizov
12434cb7fd Merge pull request #1672 from tsigo/milestone_closed_issues
Milestone "All Issues" filter
2012-10-11 03:21:08 -07:00
Robb Kidd
16ceae895e Separate observing of Note and MergeRequests
* Move is_assigned? and is_being_xx? methods to IssueCommonality

  This is behavior merge requests have in common with issues. Moved
  methods to IssueCommonality role. Put specs directly into
  merge_request_spec because setup differs for issues and MRs
  specifically in the "closed" factory to use.

* Add MergeRequestObserver. Parallels IssueObserver in almost every way.

  Ripe for refactoring.

* Rename MailerObserver to NoteObserver

  With merge request observing moved out of MailerObserver, all that
  was left was Note logic. Renamed to NoteObserver, added tests and
  updated application config for new observer names. Refactored
  NoteObserver to use the note's author and not rely on current_user.

* Set current_user for MergeRequestObserver

  IssueObserver and MergeRequestObserver are the only observers that
  need a reference to the current_user that they cannot look up on
  the objects they are observing.
2012-10-10 17:59:25 -04:00
Robert Speicher
bf1554f8c4 Add Feature for milestone issue filter
Closes #1167
2012-10-10 13:08:36 -04:00
Robert Speicher
7d145adf35 Move 'closed' attribute to the row instead of the cell 2012-10-10 13:06:34 -04:00
Robert Speicher
ce6e5f34d5 Remove unused li classes from milestone issue filter 2012-10-10 12:43:59 -04:00
Robert Speicher
ace816354f Add toggle to show closed issues on Milestones#show
Progress on #1167
2012-10-10 12:43:59 -04:00
Dmitriy Zaporozhets
2b7fd29b1a hardware requirements 2012-10-10 17:17:23 +03:00
Dmitriy Zaporozhets
b2f5740993 Updated installation docs with better db origanisation 2012-10-10 15:45:19 +03:00
Dmitriy Zaporozhets
4a535e17c9 Merge pull request #1630 from riyad/show-commit-notes-with-mr-notes
Mix commit notes with merge request notes on MR show page
2012-10-10 04:47:43 -07:00
Dmitriy Zaporozhets
2d2ffc6f5c Merge pull request #1666 from zzet/feature/postgres
Postgresql
2012-10-10 04:47:05 -07:00
Riyad Preukschas
81ee69381d Add links to the note source if the note is mixed in 2012-10-10 12:14:48 +02:00
Riyad Preukschas
fb0279f311 Fix vote counting to only count main target notes (not mixed in ones) 2012-10-10 12:09:45 +02:00
Riyad Preukschas
3f72af9994 Make notes for merge requests include commit notes and add helpers 2012-10-10 12:06:30 +02:00
Andrey Kumanyaev
8402bca735 travis 2012-10-10 13:48:30 +04:00
Andrey Kumanyaev
92ac42a27c update doc 2012-10-10 13:48:14 +04:00
Andrey Kumanyaev
75e6eb59ec patch rails to ignore text limit 2012-10-10 13:17:48 +04:00
Dmitriy Zaporozhets
dda852a0d5 Merge pull request #1629 from riyad/show-notes-indicator-for-commits-and-merge-requests
Show numer of notes for commits and merge requests
2012-10-10 01:45:39 -07:00
Dmitriy Zaporozhets
60b4c88e3a Merge pull request #1664 from riyad/auto-complete-everywhere
Cleanup auto-completion and add it to all GFM inputs
2012-10-10 01:45:03 -07:00
Dmitriy Zaporozhets
a100c57831 Merge pull request #1665 from tsigo/history_js
Fix forward/back while browsing Tree hierarchy
2012-10-10 01:44:25 -07:00
Andrey Kumanyaev
4eb7d82ae7 add support use string FK with integer PK 2012-10-10 03:58:34 +04:00
Andrey Kumanyaev
3e1d52f4b7 add default postgres config 2012-10-10 03:58:34 +04:00
Andrey Kumanyaev
41afd3bf16 add pg gem 2012-10-10 03:58:34 +04:00
Riyad Preukschas
6dc8c0eac2 Make MRs also count and display its commits' notes 2012-10-10 01:31:36 +02:00
Riyad Preukschas
77bde9a0e4 Add notes count to commits in lists. 2012-10-10 01:31:36 +02:00
Riyad Preukschas
4d843d2ce1 Fix auto-completion for forms that are inserted with JS 2012-10-10 00:53:57 +02:00
Riyad Preukschas
e4aa5a5c8f Extract and split GFM auto-completion setup JS
* static initialization and setup moved to assets
* per request initialization moved to layout partial
2012-10-10 00:53:55 +02:00
Riyad Preukschas
eb92813757 Move emoji auto-complete helper to ApplicationHelper 2012-10-10 00:53:42 +02:00
Robert Speicher
702133c0e2 Remove unused history_path instance variable 2012-10-09 18:39:03 -04:00
Robert Speicher
cda5e66d7c Use History.js for better Tree browsing
Closes #1578
2012-10-09 18:38:59 -04:00
Riyad Preukschas
682f62fd4a Mark all GFM capable inputs 2012-10-09 23:06:33 +02:00
randx
679d0d6d76 Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
randx
63fe042d97 project.issues_labels method 2012-10-09 20:39:06 +03:00
Dmitriy Zaporozhets
fa325ce977 Merge pull request #1597 from riyad/add-completion-for-all-emoji
Improve completion of emoji and team members
2012-10-09 07:21:18 -07:00
Riyad Preukschas
37e579ce10 Redo the auto-completion JS for notes 2012-10-09 14:48:35 +02:00
Riyad Preukschas
3adfbe3e81 Mark inputs for notes with GFM capabilities 2012-10-09 14:48:20 +02:00
Riyad Preukschas
bbd92e57cb Add emoji_for_completion helper 2012-10-09 14:47:42 +02:00
Valeriy Sizov
a54a90188b remove unnecessary task 2012-10-09 14:59:58 +03:00
Dmitriy Zaporozhets
41e53eb980 Annotated 2012-10-09 11:14:17 +03:00
Valeriy Sizov
dc33f71b18 Merge pull request #1656 from zzet/refactoring
Refactoring
2012-10-09 01:17:38 -07:00
randx
c348284fed Reduce count of projects on dashboard to 20 2012-10-09 10:01:07 +03:00
randx
ce1b742b1e Group: new link on dashboard if admin. Fixed people count 2012-10-09 09:46:20 +03:00
Dmitriy Zaporozhets
26045d7a2c Merge pull request #1596 from riyad/fix-messages-for-deleted-things
Fix messages for deleted things on dashboard
2012-10-08 22:27:25 -07:00
Andrey Kumanyaev
a4cd738686 tests fix 2012-10-09 04:10:16 +04:00
Andrey Kumanyaev
df7c52489a simple refactoring 2012-10-09 04:10:04 +04:00
Valeriy Sizov
a635b9da97 Revert "Do not allow removal of a project owner user."
This reverts commit 927d0cc267.
2012-10-08 15:57:30 +03:00
Valeriy Sizov
fc3c0592db Merge pull request #1651 from dosire/user_can_be_removed_if_its_not_a_project_owner
Do not allow removal of a project owner user.
2012-10-08 05:42:47 -07:00