Coder Social home page Coder Social logo

errbit_gitlab_plugin's People

Contributors

2called-chaos avatar marcelloceschia avatar quexpl avatar stevecrozz avatar stex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

errbit_gitlab_plugin's Issues

paginated_response of gitlab-3.7.0 causes an exception, if GITLAB URL was entered with trailing slash

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

Where is params? undefined local variable or method `params' IssueTracker

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?

uninitialized constant ErrbitGitlabPlugin::ErrbitPlugin (NameError)

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)>'

Error when adding gitlab setup to a project

Errbit version: 0.8.0-dev
rails version : Rails 4.2.10
ruby version : ruby 2.3.0p0

What i did

  1. added gem errbit_gitlab_plugin to UserGemfile
  2. bundle install
  3. run server
  4. go to app/show -> edit ( http://myerrbit:3000/apps/[key]/edit)
  5. click on gitlab icon
  6. add url for our company gitlab web
  7. add token
  8. add project/project_name
  9. submit

below error returned

NoMethodError in AppsController#update

undefined method `detect' for nil:NilClass

# 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

fetches project id for every issue creation

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.