roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Rails 6 Tasks (to-do list)

Open gjacob24 opened this issue 3 years ago • 8 comments

Creating this ticket to add tasks to it that need to be completed before the release with the upgrade to 6.1 (including any manual testing required, issues found while testing etc.)

gjacob24 avatar Jun 13 '22 16:06 gjacob24

please use https://dmproadmap.uc3dev.cdlib.org/ for testing this new codebase and then lets document any issues we uncover here.

briri avatar Jul 06 '22 19:07 briri

Note that the new underlying AWS environment for https://dmproadmap.uc3dev.cdlib.org/ is not sending out emails and logos are not persistent (they're stored on the local disk, so get lost when a new instance of the application is created).

briri avatar Jul 06 '22 19:07 briri

Receive an error when trying to change a plan's visibility. The error from the logs is:

I, [2022-07-06T12:45:42.494139 #158]  INFO -- : [30320f2d-4da4-409e-afdc-0ff4faae80e8] Completed 500 Internal Server Error in 75ms (ActiveRecord: 29.7ms | Allocations: 12075)
F, [2022-07-06T12:45:42.495232 #158] FATAL -- : [30320f2d-4da4-409e-afdc-0ff4faae80e8]   
[30320f2d-4da4-409e-afdc-0ff4faae80e8] NoMethodError (undefined method `to_sym' for 0:Integer Did you mean?  to_s):
[30320f2d-4da4-409e-afdc-0ff4faae80e8] app/mailers/user_mailer.rb:148:in `plan_visibility'
[30320f2d-4da4-409e-afdc-0ff4faae80e8] app/controllers/plans_controller.rb:412:in `block in visibility'

briri avatar Jul 06 '22 19:07 briri

test server is reporting an invalid wkpdftohtml path

briri avatar Jul 11 '22 14:07 briri

Receive an error when trying to change a plan's visibility. The error from the logs is:

I, [2022-07-06T12:45:42.494139 #158]  INFO -- : [30320f2d-4da4-409e-afdc-0ff4faae80e8] Completed 500 Internal Server Error in 75ms (ActiveRecord: 29.7ms | Allocations: 12075)
F, [2022-07-06T12:45:42.495232 #158] FATAL -- : [30320f2d-4da4-409e-afdc-0ff4faae80e8]   
[30320f2d-4da4-409e-afdc-0ff4faae80e8] NoMethodError (undefined method `to_sym' for 0:Integer Did you mean?  to_s):
[30320f2d-4da4-409e-afdc-0ff4faae80e8] app/mailers/user_mailer.rb:148:in `plan_visibility'
[30320f2d-4da4-409e-afdc-0ff4faae80e8] app/controllers/plans_controller.rb:412:in `block in visibility'

Came across this issue while conducting UAT for DMPonline. Has a solution been found yet or still in progress?

gjacob24 avatar Oct 21 '22 14:10 gjacob24

I don't think so. It seems like calling an "enum" column returns the integer value, not the value defined in the enum (here 0 instead of "organisationally_visible"), triggering the exception. I'm not sure if it's a Rails 6 problem though. I'll try to find a solution as it could be problematic because roadmap uses a lot of those.

benjaminfaure avatar Oct 24 '22 07:10 benjaminfaure

Thank you, yes, I tried looking at it on Friday but didn't make any progress. Will post here if that changes.

gjacob24 avatar Oct 24 '22 11:10 gjacob24

https://github.com/DMPRoadmap/roadmap/blob/5eff207650cdc0951a9d84982c48e38002cd4c0f/app/models/plan.rb#L78

After some research, our problem seems to be coming from this line. It forces the system to return the visibility as an Integer. By removing this line, the above issue is resolved. That could impact other features though, I'll do some more tests.

There's a similar line in the Template model.

benjaminfaure avatar Oct 24 '22 13:10 benjaminfaure