Skip to content

DCC Bug 698 - Fix for broken Template History functionality. - #3154

Merged
briri merged 1 commit into
developmentfrom
dcc_bug_698_Template_history_view_all_broken
Apr 13, 2022
Merged

DCC Bug 698 - Fix for broken Template History functionality.#3154
briri merged 1 commit into
developmentfrom
dcc_bug_698_Template_history_view_all_broken

Conversation

@johnpinto1

Copy link
Copy Markdown
Contributor

DCC Issue https://github.com/DigitalCurationCentre/DMPonline-Service/issues/698

Changes:

  • added
    format: json
    and
    changed sort option to
    sort_field: 'templates.version', sort_direction: :desc
    to the paginable_renderise call in the history() method of
    paginable/templates_controller.

NOTE:
This fixes issue. But to see results you will need to change

The largest page size allowed in requests to the API (all versions)
config.x.application.api_max_page_size = 100

which I have done
config.x.application.api_max_page_size = 5

to see
Selection_030

Selection_031

Selection_032

Otherwise with
config.x.application.api_max_page_size = 100
you see the same set of Templates for "View less" and "View all"

Selection_034
Selection_033

DCC Issue https://github.com/DigitalCurationCentre/DMPonline-Service/issues/698

Changes:
 - added
    format: json
   and
    changed sort option to
    sort_field: 'templates.version', sort_direction: :desc
  to the paginable_renderise call in the history() method of
paginable/templates_controller.

@briri briri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks @johnpinto1 for digging into this one!
It's amazing how much debugging and research one has to do with this paginable_renderise methods for such a small change.

@briri
briri merged commit c1b946b into development Apr 13, 2022
@briri
briri deleted the dcc_bug_698_Template_history_view_all_broken branch April 13, 2022 14:17
@briri briri mentioned this pull request May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants