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

🐛 Adjust Tags tab on Application Details Drawer when a Task is running #1191

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Jul 21, 2023

When an analysis task is running, and the application drawer is open, show both loading text and spinner and the existing tags. Once the analysis is complete, the loading text/spinner will be removed and any new tags will be shown.

Bug-Url: https://issues.redhat.com/browse/MTA-465

The Reports tab is also mentioned on MTA-465. This was already addressed with #1103.

@sjd78
Copy link
Member Author

sjd78 commented Jul 21, 2023

Screen shot with the loading text and spinner visible (see the red highlighting):
screenshot-localhost_9000-2023 07 21-11_46_58

When an analysis task is running, and the application drawer is
open, show both loading text and spinner and the existing tags.
Once the analysis is complete, the loading text/spinner will be
removed and any new tags will be shown.

Bug-Url: https://issues.redhat.com/browse/MTA-465
Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (ba2f5ac) 44.10% compared to head (f0274e3) 44.10%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1191   +/-   ##
=======================================
  Coverage   44.10%   44.10%           
=======================================
  Files         177      177           
  Lines        4501     4501           
  Branches     1007     1007           
=======================================
  Hits         1985     1985           
  Misses       2505     2505           
  Partials       11       11           
Flag Coverage Δ
unitests 44.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sjd78 sjd78 merged commit aaa75e3 into konveyor:main Jul 21, 2023
8 checks passed
@sjd78 sjd78 deleted the app-tags-task-running branch July 21, 2023 18:28
sjd78 added a commit to sjd78/tackle2-ui that referenced this pull request Jul 21, 2023
Backport of konveyor#1191

When an analysis task is running, and the application drawer is open,
show both loading text and spinner and the existing tags. Once the
analysis is complete, the loading text/spinner will be removed and any
new tags will be shown.

Bug-Url: https://issues.redhat.com/browse/MTA-465

The Reports tab is also mentioned on MTA-465. This was already addressed
with konveyor#1103 (backported with konveyor#1190)

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
sjd78 added a commit to sjd78/tackle2-ui that referenced this pull request Jul 21, 2023
Backport of konveyor#1191

When an analysis task is running, and the application drawer is open,
show both loading text and spinner and the existing tags. Once the
analysis is complete, the loading text/spinner will be removed and any
new tags will be shown.

Bug-Url: https://issues.redhat.com/browse/MTA-465

The Reports tab is also mentioned on MTA-465. This was already addressed
with konveyor#1103 (backported with konveyor#1190)

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
sjd78 added a commit that referenced this pull request Jul 21, 2023
…r when a Task is running (#1192)

Backport of #1191

When an analysis task is running, and the application drawer is open,
show both loading text and spinner and the existing tags. Once the
analysis is complete, the loading text/spinner will be removed and any
new tags will be shown.

Bug-Url: https://issues.redhat.com/browse/MTA-465

The Reports tab is also mentioned on MTA-465. This was already addressed
with #1103 (backported with #1190)

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
sjd78 added a commit that referenced this pull request Jul 28, 2023
The motivation for this refactoring came while working on #1191 and
trying to understand what tasks were given to the analysis table. The
select function used by `useFetchTasks()` to filter by addon and to keep
only the newest tasks per application id was confusing to read as
written. This refactor simplifies the steps involved to use a typical
stream processing approach.

Output of the refactored function is functionally identical to the
original implementation.

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
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