Basic support for external issues tracker
Created by: Andrew8xx8
Implementation of feature discussed there https://github.com/gitlabhq/gitlabhq/issues/97#issuecomment-9193798
Looks like this:
Merge request reports
Activity
93 96 scope :joined, ->(user) { where("namespace_id != ?", user.namespace_id) } 94 97 scope :public_only, -> { where(public: true) } 95 98 99 enumerize :issues_tracker, :in => (Gitlab.config.issues_tracker.keys).append(:gitlab), :default => :gitlab Created by: dzaporozhets
I suggest to use
Gitlab.config
variable instead ofSettings
. LikeGitlab.config.issue_tracker_keys
with default value so it does not end up withundefined method keys for nil
By Administrator on 2013-02-28T12:32:45 (imported from GitLab project)
By Administrator on 2013-02-28T12:32:45 (imported from GitLab)
Created by: Andrew8xx8
I tried to implement this advices.
And I have a problem with tests. For the test environment I need to use some fake data that remote issue trackers, and this setting must be initialized before Project model to be loading. I need to use a better configuration support.
For example configus supports inherited configuration for different environments.
I can do a pull request with best configure support.
By Administrator on 2013-02-14T07:06:47 (imported from GitLab project)
By Administrator on 2013-02-14T07:06:47 (imported from GitLab)
Created by: Andrew8xx8
UPD: I see that settingslogic gem supports environments. It's better to use it features.
Please check out https://github.com/gitlabhq/gitlabhq/pull/2987
By Administrator on 2013-02-14T07:45:29 (imported from GitLab project)
By Administrator on 2013-02-14T07:45:29 (imported from GitLab)
Created by: Andrew8xx8
I added default values for setting.
Also in #2987 I have made a mistake with default section name in YAML config that is fixes here.
By Administrator on 2013-02-14T14:31:06 (imported from GitLab project)
By Administrator on 2013-02-14T14:31:06 (imported from GitLab)
Created by: dzaporozhets
Basically this PR do next:
- add ability to specify external issue tracker
- patch gitlab markdown to render
#123
as link to this external tracker
@Andrew8xx8 am I right?
By Administrator on 2013-02-14T16:10:10 (imported from GitLab project)
By Administrator on 2013-02-14T16:10:10 (imported from GitLab)
Created by: dzaporozhets
Few suggestion from usability:
- I guess when you select redmine for example we need to hide issues tab or redirect it to external tracker
- When I select redmine - it should enable text field with js so I can put project id without page reloading
- It should show Issue tracker selectbox only if more then one tracker exists
By Administrator on 2013-02-14T16:14:47 (imported from GitLab project)
By Administrator on 2013-02-14T16:14:47 (imported from GitLab)