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(scans) ds-531 Stop showing download button too soon #496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mirekdlugosz
Copy link
Contributor

Scan Download button is displayed when scan has report_id field. However, report_id is assigned as soon as scan finished running, but before fingerprinting phase has finished. And it is not possible to download a scan before fingerprinting phase finished.

Arguably this is API not playing very nice, but it's trivial for UI to wait for end_time field. That field is only present on scans that are all completed and reports can be downloaded.

Also, fix typing warning in the same file.

Relates to JIRA: DISCOVERY-531

@mirekdlugosz mirekdlugosz requested review from a team October 22, 2024 12:22
Scan Download button is displayed when scan has report_id field.
However, report_id is assigned as soon as scan finished running, but
before fingerprinting phase has finished. And it is not possible to
download a scan before fingerprinting phase finished.

Arguably this is API not playing very nice, but it's trivial for UI to
wait for end_time field. That field is only present on scans that are
all completed and reports can be downloaded.

Also, fix typing warning in the same file.

Relates to JIRA: DISCOVERY-531
Copy link
Member

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

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

lgtm

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