Giter Club home page Giter Club logo

Comments (6)

glensc avatar glensc commented on June 8, 2024

also not sure how to get rid of such broken entries

irb(main):039:0> Issue.find_by(id: 7956).delete
NoMethodError: undefined method `state' for #<ActiveRecord::ConnectionAdapters::NullTransaction:0x007f762ba92bc8>
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:238:in `transaction_state'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:335:in `add_to_transaction'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/paranoia-2.2.0/lib/paranoia.rb:96:in `delete'
        from (irb):39
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands/console.rb:110:in `start'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands/console.rb:9:in `start'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:68:in `console'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands.rb:17:in `<top (required)>'
        from bin/rails:9:in `require'
        from bin/rails:9:in `<main>'
irb(main):040:0> 

from tracboat.

glensc avatar glensc commented on June 8, 2024

this will cleanup:

irb(main):052:0> Issue.where(iid: nil).size
=> 520

irb(main):060:0> for issue in Issue.where(iid: nil) do puts issue.destroy end
#<Issue:0x007f7632aec658>
#<Issue:0x007f7632ac5bc0>
...

from tracboat.

crayfishuk avatar crayfishuk commented on June 8, 2024

I'm seeing the same thing. Issues are imported and show against milestones/labels - but any attempt at issue listing causes a 500 error. Cleanup script above deletes all imported issues...

from tracboat.

glensc avatar glensc commented on June 8, 2024

the fix is somewhere here: #48

as i no longer had this error.

from tracboat.

crayfishuk avatar crayfishuk commented on June 8, 2024

Wicked. Thanks - will have a wade through the list :-)

from tracboat.

glensc avatar glensc commented on June 8, 2024

just checkout that branch and things will likely work.

from tracboat.

Related Issues (20)

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.