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

Fetch single artefact on artefact page #210

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

omar-selo
Copy link
Collaborator

Description

Makes artefact page fetch single artefact based on id rather than fetching current arteracts. This is beneficial for the following reasons:

  • Less data is fetched on artefact page
  • Artefact page can show older artefacts even if they aren't on the dashboard (this isn't possible with the old approach)

Resolved issues

First PR towards resolving https://warthogs.atlassian.net/browse/RTW-342

Documentation

Web service API changes

Tests

Tested manually locally. Also tested that updating an artefact's status then going back to dashboard page shows the updated status.

Copy link
Contributor

@andrejvelichkovski andrejvelichkovski left a comment

Choose a reason for hiding this comment

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

Thanks for working on this, but I noticed a small issue while reviewing this, it is that the ratio of completed artefact is not updating as you review environments. It is not a huge issue, but perhaps we can fix it.

Also I think we can clean up some code with this change, in the providers/family_artefacts as we have functions to update the artefact status there, and to update the ratio as well, which we probably want to move here.

@omar-selo
Copy link
Collaborator Author

Ah good point I completely forgot about the ratio of completed artefact being present in two different locations

@omar-selo omar-selo force-pushed the fetch-single-artefact-on-artefact-page branch from 8e909d8 to 86886ea Compare September 11, 2024 08:57
Copy link
Contributor

@andrejvelichkovski andrejvelichkovski left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the follow-up

@omar-selo omar-selo merged commit 037b939 into main Sep 11, 2024
1 of 2 checks passed
@omar-selo omar-selo deleted the fetch-single-artefact-on-artefact-page branch September 11, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants