Add pagination to dependantSecurityPolicies property

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The following discussion from !176727 (merged) should be addressed:

  • @justin_ho started a discussion:

    Question: I don't see any limit added to this query, should we consider adding one here if backend supports it? Without any sort of pagination, we risk adding a query that takes a long time to load (if there are lots of dependentSecurityPolicies) and have UI that breaks (a giant popover maybe?).

    We could consider loading the first 5-10 and adding the last bullet as "and more security policies" as a link when hasNextPage is true.

Edited by 🤖 GitLab Bot 🤖