Code Monkey home page Code Monkey logo

data_fabric's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

data_fabric's Issues

Release new version to RubyGems.org

I've been using "version 1.4.0" for almost a year now and it would be nice to finally kill that last github URL in my Gemfile.

Would it be possible to lock down a release and publish it to RubyGems?

data_fabric causing error to resque-mailer

I am using data_fabric from master branch for database replication and resque mailer for batch email processing. I found that data_fabric is causing below error to the resque-mailer. This error stops the processing of resque mailer and it usually occurs immediately after sending the first mail

PGError: ERROR: prepared statement "a3" already exists
: SELECT DISTINCT(attr.attname)
FROM pg_attribute attr
INNER JOIN pg_depend dep ON attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid
INNER JOIN pg_constraint cons ON attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1]
WHERE cons.contype = 'p'
AND dep.refobjid = $1::regclass

Would you please help me out to resolve the above issue?

Note: The same type of issue I faced earlier and I resolved it using the code mentioned in below URL.
http://stackoverflow.com/questions/6137570/resque-enqueue-failing-on-second-run

Tests fail on a fresh clone on the rails32 branch

I get 8 of these running the tests on a fresh clone on the rails32 branch:

  1) Error:
test_enchilada(ConnectionTest):
NameError: uninitialized constant DataFabric::ConnectionProxy::Rails
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:157:in `connection_name_builder'
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:99:in `connection_name'
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:107:in `block in test_enchilada'
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric.rb:62:in `activate_shard'
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:106:in `test_enchilada'

If I require rails in test_helper.rb I get this failure:

  1) Failure:
test_enchilada(ConnectionTest) [/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:110]:
[ActiveRecord::RecordNotFound] exception expected, not
Class: <NoMethodError>
Message: <"undefined method `accept' for nil:NilClass">
---Backtrace---
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:95:in `method_missing'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `block in find_by_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `block in to_a'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:336:in `find_one'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:312:in `find_with_ids'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:107:in `find'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:5:in `find'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:111:in `block (2 levels) in test_enchilada'
---------------

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.