-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paged results of plans does not work on /super_admin/users/:user_id/edit #3069
Comments
@johnpinto1 this might be related to #675 in the DCC Roadmap fork? |
As this a Roadmap issue as well as a DCC issue I have linked to a comment https://github.com/DigitalCurationCentre/DMPonline-Service/issues/675#issuecomment-990906539 |
Please unsubscribe me from your mailing list
…On Mon, Nov 22, 2021, 11:56 AM Nicolas Franck ***@***.***> wrote:
Please complete the following fields as applicable:
*What version of the DMPRoadmap code are you running? (e.g. v2.2.0)*
versions v3.0.2 till v3.0.4
*Expected behaviour:*
*Actual behaviour:*
When you click either view all, a page number, or whatever you'll get a
blank
list of plans.
*Steps to reproduce:*
- go the admin > users page
- click on a user with more than 10 plans (so that paging of plans
applicable)
- click on "next" below the list of plans
Reason: controller DOES return the correct results, but in the wrong
format ("html")
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3069>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSENX64H24F52Y532QKERDUNIASHANCNFSM5IQNPRUA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thanks for helpful comment @ojsmaina . I think you need to unsubscribe from the email yourself. |
@ojsmaina instructions for how to unsubscribe from this repository can be found here: https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/managing-your-subscriptions |
pagination of user's plans broken. Fix for issue #3069 and DCC issue https://github.com/DigitalCurationCentre/DMPonline-Service/issues/675. Changes: - Replaced view files /paginable/plans/org_admin_other_user with /paginable/plans/_index.html.erb with extra checks for plan.owner.present? as missing plan.owner broke a DCC user's plans being render by org_admin. - Replaced partial with '/paginable/plans/org_admin_other_user' with '/paginable/plans/index', replaced action'org_admin_other_user' with 'index' in paginable_renderiser() method in views /org_admin/users/edit.html.erb. /org_admin/users/plans.html.erb and /super_admin/users/edit.html.erb. - In Paginable::PlansController replaced - # GET /paginable/plans/org_admin/:page with # GET /paginable/users/:id/plans associated with method org_admin_other_user() renamed index() - Routes replaced get "org_admin_other_user/:page", action: :org_admin_other_user, on: :collection, as: :org_admin_other_user # Paginable actions for users resources :users, only: [] do get "index/:page", action: :index, on: :collection, as: :index with resources :users, only: %i[index] do member do resources :plans, only: %(index) end end
pagination of user's plans broken. Fix for issue #3069 and DCC issue https://github.com/DigitalCurationCentre/DMPonline-Service/issues/675. Changes: - Replaced view files /paginable/plans/org_admin_other_user with /paginable/plans/_index.html.erb with extra checks for plan.owner.present? as missing plan.owner broke a DCC user's plans being render by org_admin. - Replaced partial with '/paginable/plans/org_admin_other_user' with '/paginable/plans/index', replaced action'org_admin_other_user' with 'index' in paginable_renderiser() method in views /org_admin/users/edit.html.erb. /org_admin/users/plans.html.erb and /super_admin/users/edit.html.erb. - In Paginable::PlansController replaced - # GET /paginable/plans/org_admin/:page with # GET /paginable/users/:id/plans associated with method org_admin_other_user() renamed index() - Routes replaced get "org_admin_other_user/:page", action: :org_admin_other_user, on: :collection, as: :org_admin_other_user # Paginable actions for users resources :users, only: [] do get "index/:page", action: :index, on: :collection, as: :index with resources :users, only: %i[index] do member do resources :plans, only: %(index) end end
This was in the last release. We should check to make sure it's addressed. @raycarrick-ed @briri |
We have closed the corresponding DMPonline issue as this has been fixed on our end, so I will close here assuming John's PR addressed it. |
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
versions
v3.0.2
tillv3.0.4
Expected behaviour:
Actual behaviour:
When you click either
view all
, a page number, or whatever you'll get a blanklist of plans.
Steps to reproduce:
Reason: controller DOES return the correct results, but in the wrong format ("html")
The text was updated successfully, but these errors were encountered: