brandedcrate / errbit_gitlab_plugin Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
the reason is, that next_page in gitlab-3.7.0/lib/gitlab/paginated_response.rb
replace the enpoint part in @links.next
with an empty string to get the path without domain.
If the GITLAB URL is saved with trailing slash (e.g. https://gitlab.example.com/) gitlab_endpoint in errbit_gitlab_plugin-1.0.1/lib/errbit_gitlab_plugin/issue_tracker.rb
will format the endpoint as https://gitlab.example.com//api/v3 and this can not be found in the @links.next
string
When updating an App trying to add Gitlab issue tracker:
undefined local variable or method `params' for #<ErrbitGitlabPlugin::IssueTracker:0x00000007b6b708>
errbit_gitlab_plugin (0.1.0) lib/errbit_gitlab_plugin/issue_tracker.rb:67:in `block in errors'
errbit_gitlab_plugin (0.1.0) lib/errbit_gitlab_plugin/issue_tracker.rb:67:in `each'
errbit_gitlab_plugin (0.1.0) lib/errbit_gitlab_plugin/issue_tracker.rb:67:in `detect'
errbit_gitlab_plugin (0.1.0) lib/errbit_gitlab_plugin/issue_tracker.rb:67:in `errors'
app/models/issue_tracker.rb:22:in `validate_tracker'
#67 if self.class.fields.detect {|f| params[f[0]].blank? }
Trying to fix it but failing miserably, any advice?
How am I supposed to use this? I installed the gem, but I do not know what to do next. How am I supposed to integrate this? In fact, the only thing I get is an error when running rails console or rails server:
$ rails c
/Users/myuser/.rvm/gems/ruby-2.1.2@core/gems/errbit_gitlab_plugin-0.1.0/lib/errbit_gitlab_plugin/issue_tracker.rb:4:in <module:ErrbitGitlabPlugin>': uninitialized constant ErrbitGitlabPlugin::ErrbitPlugin (NameError) from /Users/myuser/.rvm/gems/ruby-2.1.2@core/gems/errbit_gitlab_plugin-0.1.0/lib/errbit_gitlab_plugin/issue_tracker.rb:3:in
<top (required)>'
Errbit version: 0.8.0-dev
rails version : Rails 4.2.10
ruby version : ruby 2.3.0p0
What i did
below error returned
# Extracted source (around line #32):
# Allow the tracker to validate its own params
def validate_tracker
(tracker.errors || {}).each do |k, v|
errors.add k, v
end
end
Rails.root: /home/user/errbit
Application Trace | Framework Trace | Full Trace
app/models/issue_tracker.rb:32:in validate_tracker' app/controllers/apps_controller.rb:67:in
update'
Request
Parameters:
{"utf8"=>"โ",
"_method"=>"patch",
"authenticity_token"=>"",
"app"=>{"name"=>"",
"repository_branch"=>"",
"github_repo"=>"",
"bitbucket_repo"=>"",
"asset_host"=>"",
"current_app_version"=>"",
"notify_on_errs"=>"1",
"use_site_fingerprinter"=>"1",
"notice_fingerprinter_attributes"=>{"error_class"=>"1",
"message"=>"1",
"backtrace_lines"=>"-1",
"component"=>"1",
"action"=>"1",
"environment_name"=>"1",
"id"=>""},
"notify_all_users"=>"1",
"issue_tracker_attributes"=>{"type_tracker"=>"gitlab",
"options"=>{"endpoint"=>"",
"api_token"=>"",
"path_with_namespace"=>""},
"id"=>""},
"notification_service_attributes"=>{"type"=>"NotificationServices::SlackService",
"service_url"=>"https://hooks.slack.com/services/",
"room_id"=>"",
"id"=>""}},
"commit"=>"Update App",
"id"=>""}
hope someone will help me.. thank you
Project_ids presumably don't change very often or ever, so it's not efficient to fetch the project_id every time we create an issue. But that's what we're doing. We should stop doing this and set the project_id once instead.
In order to not need a migration, we should make it set the project_id when saving the issue tracker (to make future errbits more efficient), and also fetch the project_id live (to keep already configured errbits working).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.