Giter VIP home page Giter VIP logo

Comments (6)

dblock avatar dblock commented on July 17, 2024

What are the versions of mongoid* gems, including mongoid_history? Does it work without?

from mongoid-history.

ashokmiryal avatar ashokmiryal commented on July 17, 2024

from mongoid-history.

ashokmiryal avatar ashokmiryal commented on July 17, 2024

Hi,

Sorry in above reply I have mentioned only mongoid-history gem.We are using 'mongoid', '> 6.2.0' gem and for rails using 'rails', '> 5.2.3' version.

Thanks &Regards,
Ashok Miryala
9502703143

from mongoid-history.

ashokmiryal avatar ashokmiryal commented on July 17, 2024

Hi, Please find the error log below.
mongoid-history (0.8.1) lib/mongoid/history/trackable.rb:157:in related_scope' mongoid-history (0.8.1) lib/mongoid/history/trackable.rb:233:in history_tracker_attributes'
mongoid-history (0.8.1) lib/mongoid/history/trackable.rb:290:in track_history_for_action' mongoid-history (0.8.1) lib/mongoid/history/trackable.rb:245:in track_create'
activesupport (5.2.3) lib/active_support/callbacks.rb:118:in block in run_callbacks' activesupport (5.2.3) lib/active_support/callbacks.rb:136:in run_callbacks'
mongoid (6.2.1) lib/mongoid/interceptable.rb:132:in run_callbacks' mongoid (6.2.1) lib/mongoid/persistable/creatable.rb:117:in block in prepare_insert'
activesupport (5.2.3) lib/active_support/callbacks.rb:132:in run_callbacks' mongoid (6.2.1) lib/mongoid/interceptable.rb:132:in run_callbacks'
mongoid (6.2.1) lib/mongoid/persistable/creatable.rb:116:in prepare_insert' mongoid (6.2.1) lib/mongoid/persistable/creatable.rb:23:in insert'
mongoid (6.2.1) lib/mongoid/persistable/savable.rb:23:in save' mongoid (6.2.1) lib/mongoid/relations/auto_save.rb:77:in block (4 levels) in autosave'
mongoid (6.2.1) lib/mongoid/clients/options.rb:25:in with' mongoid (6.2.1) lib/mongoid/relations/auto_save.rb:76:in block (3 levels) in autosave'
mongoid (6.2.1) lib/mongoid/relations/auto_save.rb:74:in each' mongoid (6.2.1) lib/mongoid/relations/auto_save.rb:74:in block (2 levels) in autosave'
mongoid (6.2.1) lib/mongoid/relations/auto_save.rb:30:in __autosaving__' mongoid (6.2.1) lib/mongoid/relations/auto_save.rb:65:in block in autosave'
activesupport (5.2.3) lib/active_support/callbacks.rb:426:in block in make_lambda' activesupport (5.2.3) lib/active_support/callbacks.rb:236:in block in halting_and_conditional'
activesupport (5.2.3) lib/active_support/callbacks.rb:517:in block in invoke_after' activesupport (5.2.3) lib/active_support/callbacks.rb:517:in each'
activesupport (5.2.3) lib/active_support/callbacks.rb:517:in invoke_after' activesupport (5.2.3) lib/active_support/callbacks.rb:133:in run_callbacks'
mongoid (6.2.1) lib/mongoid/interceptable.rb:132:in run_callbacks' mongoid (6.2.1) lib/mongoid/persistable/updatable.rb:110:in prepare_update'
mongoid (6.2.1) lib/mongoid/persistable/updatable.rb:132:in update_document' mongoid (6.2.1) lib/mongoid/persistable/savable.rb:25:in save'
app/controllers/projects_controller.rb:121:in create_variation' actionpack (5.2.3) lib/action_controller/metal/basic_implicit_render.rb:6:in send_action'
actionpack (5.2.3) lib/abstract_controller/base.rb:194:in process_action' actionpack (5.2.3) lib/action_controller/metal/rendering.rb:30:in process_action'
actionpack (5.2.3) lib/abstract_controller/callbacks.rb:42:in block in process_action' activesupport (5.2.3) lib/active_support/callbacks.rb:132:in run_callbacks'
actionpack (5.2.3) lib/abstract_controller/callbacks.rb:41:in process_action' actionpack (5.2.3) lib/action_controller/metal/rescue.rb:22:in process_action'
actionpack (5.2.3) lib/action_controller/metal/instrumentation.rb:34:in block in process_action' appsignal (2.6.1) lib/appsignal/hooks/active_support_notifications.rb:21:in block in instrument'
activesupport (5.2.3) lib/active_support/notifications/instrumenter.rb:23:in instrument' appsignal (2.6.1) lib/appsignal/hooks/active_support_notifications.rb:38:in instrument'
appsignal (2.6.1) lib/appsignal/hooks/active_support_notifications.rb:20:in instrument' actionpack (5.2.3) lib/action_controller/metal/instrumentation.rb:32:in process_action'
actionpack (5.2.3) lib/action_controller/metal/params_wrapper.rb:256:in process_action' actionpack (5.2.3) lib/abstract_controller/base.rb:134:in process'
actionview (5.2.3) lib/action_view/rendering.rb:32:in process' actionpack (5.2.3) lib/action_controller/metal.rb:191:in dispatch'
actionpack (5.2.3) lib/action_controller/metal.rb:252:in dispatch' actionpack (5.2.3) lib/action_dispatch/routing/route_set.rb:52:in dispatch'
actionpack (5.2.3) lib/action_dispatch/routing/route_set.rb:34:in serve' actionpack (5.2.3) lib/action_dispatch/journey/router.rb:52:in block in serve'
actionpack (5.2.3) lib/action_dispatch/journey/router.rb:35:in each' actionpack (5.2.3) lib/action_dispatch/journey/router.rb:35:in serve'
actionpack (5.2.3) lib/action_dispatch/routing/route_set.rb:840:in call' pdfkit (0.8.2) lib/pdfkit/middleware.rb:16:in call'
warden (1.2.7) lib/warden/manager.rb:36:in block in call' warden (1.2.7) lib/warden/manager.rb:35:in catch'
warden (1.2.7) lib/warden/manager.rb:35:in call' rack (2.0.7) lib/rack/tempfile_reaper.rb:15:in call'
rack (2.0.7) lib/rack/etag.rb:25:in call' rack (2.0.7) lib/rack/conditional_get.rb:38:in call'
rack (2.0.7) lib/rack/head.rb:12:in call' actionpack (5.2.3) lib/action_dispatch/http/content_security_policy.rb:18:in call'
rack (2.0.7) lib/rack/session/abstract/id.rb:232:in context' rack (2.0.7) lib/rack/session/abstract/id.rb:226:in call'
actionpack (5.2.3) lib/action_dispatch/middleware/cookies.rb:670:in call' actionpack (5.2.3) lib/action_dispatch/middleware/callbacks.rb:28:in block in call'
activesupport (5.2.3) lib/active_support/callbacks.rb:98:in run_callbacks' actionpack (5.2.3) lib/action_dispatch/middleware/callbacks.rb:26:in call'
actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in call' appsignal (2.6.1) lib/appsignal/rack/rails_instrumentation.rb:32:in call_with_appsignal_monitoring'
appsignal (2.6.1) lib/appsignal/rack/rails_instrumentation.rb:17:in call' actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:61:in call'
web-console (3.5.1) lib/web_console/middleware.rb:135:in call_app' web-console (3.5.1) lib/web_console/middleware.rb:28:in block in call'
web-console (3.5.1) lib/web_console/middleware.rb:18:in catch' web-console (3.5.1) lib/web_console/middleware.rb:18:in call'
actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in call' railties (5.2.3) lib/rails/rack/logger.rb:38:in call_app'
railties (5.2.3) lib/rails/rack/logger.rb:26:in block in call' activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in block in tagged'
activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in tagged' activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in tagged'
railties (5.2.3) lib/rails/rack/logger.rb:26:in call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in call'
actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in call' actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in call'
rack (2.0.7) lib/rack/method_override.rb:22:in call' rack (2.0.7) lib/rack/runtime.rb:22:in call'
activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call' actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in call'
actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in call' rack (2.0.7) lib/rack/sendfile.rb:111:in call'
railties (5.2.3) lib/rails/engine.rb:524:in call' puma (3.11.3) lib/puma/configuration.rb:225:in call'
puma (3.11.3) lib/puma/server.rb:624:in handle_request' puma (3.11.3) lib/puma/server.rb:438:in process_client'
puma (3.11.3) lib/puma/server.rb:302:in block in run' puma (3.11.3) lib/puma/thread_pool.rb:120:in block in spawn_thread'
Request

from mongoid-history.

dblock avatar dblock commented on July 17, 2024

I suggest upgrading to 0.8.2 since there were a few bug fixes, and debugging afterwards. The method

tries to figure out relationships and it looks like it can't.

If you put up a project or a spec that reproduces this I can try to take a look.

from mongoid-history.

ashokmiryal avatar ashokmiryal commented on July 17, 2024

from mongoid-history.

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.