Closed attie-argentum closed 4 years ago
I've only tested the plugin with Redmine 3.4. I did some quick research and found out that Rails 5 has deprecated the use of attr_protected
. I think this will take a while to fix. I'll probably need to change the versioning scheme as well and have a Redmine 3.x
branch and a 4.x
branch.
Hi! Thanks for getting back to me - that's a shame.
I'll leave the ticket open for others, but please don't feel any pressure to look into it further for me - I think I've come up with an alternate solution that will work for my use case.
:+1:
Done! Here's what I did:
ActiveRecord:Migration
. Hence, the code now specifies that the migrations were written for Rails 4.2 like ActiveRecord:Migration[4.2]
.attr_protected
method was replaced with attr_readonly
.init.rb
.
Just need to test this once and it can be closed.Great job, Jigar!
Thanks for putting in the effort to make this plugin compatible with newer versions of Redmine / Rails.
I checked out the 4.x-dev
branch and unfortunately it didn’t work. Whenever I try to select another day in the importer that has entries in Toggl, there is a 500
error response logged:
"GET /toggl2redmine/toggl_time_entries?from=2019-10-22T22%3A00%3A00.000Z&till=2019-10-23T21%3A59%3A59.000Z HTTP/1.0" 500
Are there more changes required for the plugin to be compatible with newer versions or did I miss something?
This is my environment:
Redmine version 4.0.5.stable
Ruby version 2.6.5-p114 (2019-10-01) [x86_64-linux]
Rails version 5.2.3
Thanks for sharing the information. I was afraid this might happen, that's why I haven't created the 4.x release tag yet. I'll take a look at this is this weekend, make sure it works with Redmine 4.x and create a tag.
Finally test the plugin with Redmine 4.x and it works fine. It'll be good if someone could test the 4.1.2-rc1
branch and confirm that it works for them.
Thanks for putting out a patch so fast. I just smoke-tested the latest version and everything seems to work as expected.
This is a great project.
Thanks for the quick confirmation. I'm marking this as done and creating the tag v4.1.2
.
When installing in the
redmine:latest
docker container, I get the following error:My
Dockerfile
looks like this:/admin/info
shows the following (without this plugin installed):Any ideas?