Closed (fixed)
Project:
Project Browser
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Sep 2024 at 16:20 UTC
Updated:
18 Dec 2024 at 18:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
anjali rathodComment #3
anjali rathodComment #5
narendrarComment #6
narendrarChanges looks good to me, but it needs to be done in different file due to #3330887: GUI install multiple modules at once.. Also instead of patch, it will be good if we use MR.
Comment #7
anish.a commentedWe are taking up this issue in DrupalCampPune2024
Comment #8
sudhanshu0542 commentedComment #9
sudhanshu0542 commentedComment #12
utkarsh_33 commentedRebased to latest 2.0.x and It's ready for review.
Comment #13
narendrarComment #14
phenaproximaI don't think this actually solves the problem. Here's why.
If the
err.unlock_urlproperty looks like this:/admin/modules/browse/unlock, then the current code will generate this:/admin/modules/browse/unlock&destination=my+current+url. That's an invalid URL which will lead to a 404 or worse.What we need here is:
/admin/modules/browse/unlock?some_param=foo, then the generated URL has to look like:/admin/modules/browse/unlock?some_param=foo&destination=my+current+url. This, to be fair, is what the code in HEAD already does.Comment #15
utkarsh_33 commentedComment #16
phenaproximaLooks fine to me!
Comment #17
chrisfromredfinWe have native JS API's for this now, so we don't need to do our own string concat. I think something like this would make the code more readable. (Bear in mind this is GPT-generated and untested, but point being we should use URL - https://developer.mozilla.org/en-US/docs/Web/API/URL )
Comment #18
utkarsh_33 commentedIt is ready for a review.
Comment #19
narendrarChanges not implemented as suggested in #17
Comment #20
chrisfromredfinComment #21
utkarsh_33 commentedComment #22
phenaproximaFound something that is suspicious at best, wrong at worst, and probably needs test coverage. But I may be wrong. If I am, great - let's just add a comment to clarify and it's full steam ahead.
Comment #23
utkarsh_33 commentedComment #24
phenaproximaReviewed. I'm still not sure we are doing this correctly, which is why I think adding some functional JS test coverage is a good idea.
Comment #25
utkarsh_33 commented@phenaproxima I added functional js tests as you suggested and i think those are taking care of sub directory issue that you were mentioning in this as tests were initially failing here because of the sub directory path was appended correctly in the code but we were not taking that into account for tests.
Marking it NR again.
Comment #26
narendrarComment #27
utkarsh_33 commentedResolved all the open threads and addressed feedbacks as well.Marking it NR again.
Comment #28
narendrarLooks good to me, except some minor suggestions.
Comment #29
shalini_jha commentedComment #30
narendrarChanges looks good to me.
Comment #32
chrisfromredfin