Skip to content
Snippets Groups Projects

103 rucio next page

Merged Gareth Hughes requested to merge 103_RucioNextPage into master
All threads resolved!

Fixed pagination in Rucio search results:

esap-general#103 (closed)

Merge request reports

Approved by

Merged by Klaas KliffenKlaas Kliffen 2 years ago (Jun 17, 2022 7:13am UTC)

Merge details

  • Changes merged into master with 6853ff42.
  • Deleted the source branch.

Pipeline #31938 passed

Pipeline passed for 6853ff42 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • Resolved by Fanna Lautenbach

      Thanks for this!

      My immediate reaction is that I don't really know what's happening here. That's fine — I'm happy to admit my ignorance — but it suggests that perhaps a bit more explanation (a comment, or whatever) would help.

      My other reaction: I'm sure you've deployed & tested this locally, but given the current ASTRON enthusiasm for CI/CD I'm wondering if there's a way we can deploy this branch to sdc-dev.astron.nl for testing before merging? That would be a neat trick. @kliffen or @lautenbach might know...

  • Gareth Hughes added 1 commit

    added 1 commit

    • be550ac2 - better code clean up and comment

    Compare with previous version

  • John Swinbank resolved all threads

    resolved all threads

  • John Swinbank approved this merge request

    approved this merge request

  • Klaas Kliffen resolved all threads

    resolved all threads

  • Klaas Kliffen added 1 commit

    added 1 commit

    • da35043d - Reformatting + better event handling

    Compare with previous version

  • I did quite a rigorous refactoring. The useEffect was not needed, because it would trigger the first query to be executed twice when you click submit. Hence I moved it to a regular function which only gets triggered on a click of the pagination.

    I also discovered a bug in the Paginate.js, where it would fire an event with undefined text for the current page since the element is disabled. I put a workaround for it now, since I am not sure if other components rely on this behavior.

    Additionally I moved the "failure" states earlier in the component, which perform a small check (for loading, error etc.) and then render their respective component and then leave the complex constructing of the table at the end. Added also comments to make it more clear what each part renders.

  • Klaas Kliffen requested review from @lautenbach

    requested review from @lautenbach

  • Fanna Lautenbach approved this merge request

    approved this merge request

  • Klaas Kliffen added 1 commit

    added 1 commit

    Compare with previous version

  • Klaas Kliffen approved this merge request

    approved this merge request

  • Klaas Kliffen resolved all threads

    resolved all threads

  • merged

  • Klaas Kliffen mentioned in commit 6853ff42

    mentioned in commit 6853ff42

  • Please register or sign in to reply
    Loading