Robert Speicher
5ada96db54
Fix Note model spec
2015-04-28 16:01:34 -04:00
Dmitriy Zaporozhets
2e243fc321
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
README.md
VERSION
app/controllers/projects/services_controller.rb
app/controllers/projects/uploads_controller.rb
app/services/test_hook_service.rb
db/schema.rb
features/steps/admin/settings.rb
lib/gitlab/reference_extractor.rb
spec/models/note_spec.rb
2015-04-27 11:53:31 +03:00
Douwe Maan
889832578a
Fix small issues.
2015-04-24 12:31:16 +02:00
Douwe Maan
2456695422
Fix errors.
2015-04-24 12:30:37 +02:00
Douwe Maan
e739eb036d
Move participants method to shared Participable concern.
2015-04-24 12:30:36 +02:00
Douwe Maan
0ff778c0f4
Link cross-project cross-reference notes to correct project.
2015-04-24 12:30:36 +02:00
Douwe Maan
8ed7ac9d44
Use project.commit convenience method.
2015-04-24 12:29:36 +02:00
Dmitriy Zaporozhets
f502b293e5
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
db/schema.rb
spec/helpers/gitlab_markdown_helper_spec.rb
2015-04-24 11:22:54 +03:00
Dmitriy Zaporozhets
c30079f3f4
Merge branch 'rs-mentionable-examples-refactor' into 'master'
...
Update mentionable shared examples to be (a bit) more understandable
These shared examples were super confusing, and honestly still kind of are, but they should be a bit better now.
I encountered a bunch of headaches in these examples while refactoring ReferenceExtractor, so that's how I ended up changing it.
See merge request !1780
2015-04-23 20:50:48 +00:00
Dmitriy Zaporozhets
5b10796235
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
app/models/project.rb
db/schema.rb
2015-04-20 19:19:27 +03:00
Dmitriy Zaporozhets
a4006a6b48
Merge branch 'better-commit-mentions' into 'master'
...
Clean up code around commit mentions.
Builds upon !527 .
See merge request !528
2015-04-20 12:42:31 +00:00
Robert Speicher
2dace3679f
Note#cross_reference_exists? should be checking the noteable_type also
2015-04-16 16:30:15 -04:00
Dmitriy Zaporozhets
0df63b727a
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
2015-04-16 11:53:32 +03:00
Dominik Sander
d4fec49abc
Fix merge request comments on files with multiple commits
...
Having a merge request with a comments on a line which is then changed
in a later commit prevented new comments from properly showing up in the
merge request show page.
* `Note#set_diff` do not use stored the diff when creating a new note
in merge requests (we can not be sure the diff did not changed since
the last comment on that line)
* Do not rely just on `outdated?` of the first note when displaying
comments of a MR in the discussion tab, but partition the
active/outdated notes and display them all
* In the inline changes tab just select the active notes, so an
outdated note does not prevent an active one from being rendered
* Just show active comments in the side-by-side changes tab
2015-04-15 18:23:57 +02:00
Dmitriy Zaporozhets
d01d0c02b7
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
app/controllers/admin/application_settings_controller.rb
app/controllers/groups/group_members_controller.rb
app/controllers/projects/deploy_keys_controller.rb
app/controllers/projects/project_members_controller.rb
app/models/concerns/mentionable.rb
app/models/project.rb
app/models/project_team.rb
app/models/service.rb
app/views/admin/application_settings/_form.html.haml
app/views/admin/groups/show.html.haml
app/views/groups/group_members/_new_group_member.html.haml
config/initializers/1_settings.rb
db/schema.rb
lib/gitlab/reference_extractor.rb
spec/lib/gitlab/reference_extractor_spec.rb
2015-04-15 19:22:57 +03:00
Douwe Maan
959ebbcade
Clean up code around commit mentions.
2015-04-15 17:57:31 +02:00
Stan Hu
dfd256f29e
Support configurable attachment size via Application Settings
...
Fix bug where error messages from Dropzone would not be displayed on the issues page
Closes #1258
2015-04-02 00:04:08 -07:00
Dmitriy Zaporozhets
3840549566
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
...
Conflicts:
app/assets/javascripts/dispatcher.js.coffee
features/admin/settings.feature
features/steps/admin/settings.rb
features/steps/user.rb
features/user.feature
lib/gitlab/git_access.rb
2015-03-25 09:16:09 -07:00
Douwe Maan
6b92236eeb
Don't include system notes in issue/MR comment count.
2015-03-23 16:43:08 +01:00
Dmitriy Zaporozhets
31af3f4003
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
...
Conflicts:
spec/models/note_spec.rb
2015-03-19 23:21:50 -07:00
Stan Hu
fad71576f9
Fix cross references when usernames, milestones, or project names contain underscores.
...
Remove emphasis from system notes to avoid Markdown conflicts in names.
2015-03-19 07:07:30 -07:00
Dmitriy Zaporozhets
3c0284d95a
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
2015-03-18 14:10:16 -07:00
Dmitriy Zaporozhets
0eaabc2708
Revert "Note: add default_scope { order(created_at: :asc, id: :asc) }"
...
This reverts commit 7602cef572 .
2015-03-18 11:42:03 -07:00
Dmitriy Zaporozhets
b5e961eb4c
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
2015-03-18 11:15:27 -07:00
Samuel Bernard
7602cef572
Note: add default_scope { order(created_at: :asc, id: :asc) }
2015-03-18 17:06:17 +01:00
Douwe Maan
ebfc7d052b
Fix condensed range in MR push comment.
2015-03-18 16:37:29 +01:00
Dmitriy Zaporozhets
be4d340381
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-to-ee
...
Conflicts:
Gemfile.lock
app/controllers/uploads_controller.rb
app/models/application_setting.rb
app/models/project_services/issue_tracker_service.rb
app/views/projects/services/_form.html.haml
db/schema.rb
doc/integration/README.md
features/steps/groups.rb
2015-03-11 18:41:41 -07:00
Dmitriy Zaporozhets
7dadd423d5
Merge branch 'condensed-mr-commits' into 'master'
...
Condense commits already in target branch when updating merge request source branch.
Resolves https://dev.gitlab.org/gitlab/gitlabhq/issues/2043 .

(Not shown in screenshot, but works fine with rebases as well)
See merge request !1648
2015-03-07 00:13:10 +00:00
Douwe Maan
84ebc22ad2
Use 2 periods instead of 3 to signify inclusive range.
2015-03-06 23:12:26 +01:00
Douwe Maan
663b3c968f
Condense commits already in target branch when updating merge request source branch.
2015-03-06 18:09:00 +01:00
Stan Hu
7e204cf389
Added comment notification events to HipChat and Slack services.
...
Supports four different event types all bundled under the "note" event type:
- comments on a commit
- comments on an issue
- comments on a merge request
- comments on a code snippet
2015-03-06 06:54:00 -08:00
Dmitriy Zaporozhets
976e18bb33
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into 7-9-pre
...
Conflicts:
app/views/groups/show.html.haml
app/views/projects/team_members/index.html.haml
config/routes.rb
2015-02-23 23:56:59 -08:00
Douwe Maan
0632e85c82
Fix commit comments on first line of diff not rendering in Merge Request Discussion view.
2015-02-20 10:23:34 +01:00
Marin Jankovski
7d9ef1124e
Merge remote-tracking branch 'ce/master' into merge_ce
...
Conflicts:
README.md
app/assets/javascripts/project.js.coffee
app/models/concerns/mentionable.rb
app/models/project.rb
app/models/project_services/jira_service.rb
app/models/service.rb
app/models/user.rb
app/services/git_push_service.rb
config/initializers/1_settings.rb
config/routes.rb
db/schema.rb
doc/integration/README.md
doc/integration/external-issue-tracker.md
doc/integration/github.md
spec/controllers/import/github_controller_spec.rb
spec/helpers/merge_requests_helper.rb
spec/lib/gitlab/upgrader_spec.rb
spec/models/note_spec.rb
spec/requests/api/groups_spec.rb
spec/services/git_push_service_spec.rb
2015-02-16 11:50:30 -08:00
Nikita Verkhovin
8681cb3137
Add labels notes
2015-02-08 22:35:41 +06:00
Marin Jankovski
a7ae2679d4
Put the call for external tracker mention in the same place as gitlab default mention. Add git push service spec.
2015-02-06 10:31:00 -08:00
Marin Jankovski
cab34dfbb2
When JIRA issue is mentioned, add a reference comment to the issue.
2015-02-06 10:31:00 -08:00
Dmitriy Zaporozhets
3e97ac2022
Add index on order columns
2015-02-06 10:21:48 -08:00
Dmitriy Zaporozhets
a5b255fbdf
Code improvements according to styleguide
2015-01-22 09:37:47 -08:00
Dmitriy Zaporozhets
7d1e6f1546
Merge pull request #8607 from skburgart/fix-typos
...
Fix various typos
2015-01-21 23:02:48 -08:00
Michael Clarke
505a492cd8
Only count the user's last vote
2015-01-19 21:18:36 +00:00
Steven Burgart
5c80160218
Fix various typos
...
signe-in -> signed-in
go_to_gihub_for_permissions -> go_to_github_for_permissions
descendand -> descendant
behavour -> behaviour
recepient_email -> recipient_email
generate_fingerpint -> generate_fingerprint
dependes -> depends
Cant't -> Can't
wisit -> visit
notifcation -> notification
sufficent_scope -> sufficient_scope?
levet -> level
2015-01-18 10:29:37 -05:00
Dmitriy Zaporozhets
b758b4c80b
If noteable is nil - make discussion outdated
2015-01-10 19:26:00 -08:00
Dmitriy Zaporozhets
4ab728bfe8
Fix random Argument error when update note
...
In some strange cases Ruby thinks `system` is not AR field but
Kernel.system call and raises exception during save. It should prevent
this random wierd behaviour
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-12-15 16:31:23 +02:00
Dmitriy Zaporozhets
940ed58e76
Merge branch 'commit-comments' of https://gitlab.com/jeroenj/gitlab-ce into jeroenj/gitlab-ce-commit-comments
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
CHANGELOG
2014-11-12 13:19:35 +02:00
Dmitriy Zaporozhets
95e8f9797a
Merge pull request #7617 from pkill/issue-280-commit-note-notifications
...
Issue-280 Send notifications when a note is added to a commit and author...
2014-11-12 12:17:27 +02:00
Alex Elman
383ac10ca5
Issue-280 Send notifications when a note is added to a commit and author is a group member
...
This fixes a bug where commit authors weren't receiving email notifications for notes added to their commits and their membership was in the group but not the project. The fix is to look up membership via the team object which accounts for both project and group members.
2014-11-05 10:28:59 -06:00
Marin Jankovski
2ee1ec4300
Do not allow cross reference note in a mr if a mr contains mentioned commit.
2014-11-05 12:53:10 +01:00
Ciro Santilli
f808ecf11e
DRY mentioned in magic note constant
2014-10-19 22:19:56 +02:00
Dmitriy Zaporozhets
46b7a3f8f5
Prevent PG::Error exception when check commit reference on commit
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-10-06 15:07:36 +03:00