Skip to content
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

Fix fetching Concepts to be conditional #775

Merged
merged 11 commits into from
Jul 3, 2024
Merged

Conversation

AndyRae
Copy link
Member

@AndyRae AndyRae commented Jun 30, 2024

Changes

Fixes fetching Scan Report Concepts at Scan Reports Fields/Values page level, to be conditional based on if fields/values exist.
The issue was that if no fields/values existed, Concepts would still be fetched without the filtering, resulting in long running queries. A few of these in succession (for example, through revalidation) could slow the API down to a halt.

Additionally adding pagination to the endpoints used, and therefore updating the client to fetch all pages where necessary.
We will probably now upgrade any unpaginated endpoint to a v2 with pagination, this is a general concern across every endpoint.

Additionally adds a Forbidden layout - if the user does not have permission to see the Scan Report.

Related #761

Checks

Important: please complete these before merging.

  • Run migrations, if any.
  • Update changelog.md, including migration instructions if any.
  • Run unit tests.

Copy link

github-actions bot commented Jun 30, 2024

Tests Skipped Failures Errors Time
25 1 💤 1 ❌ 0 🔥 4.337s ⏱️

@AndyRae AndyRae marked this pull request as ready for review July 2, 2024 19:35
Dev-Akashili
Dev-Akashili previously approved these changes Jul 3, 2024
@AndyRae AndyRae merged commit f324313 into master Jul 3, 2024
14 checks passed
@AndyRae AndyRae deleted the fix/671/concepts-conditional branch July 3, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants