-
Notifications
You must be signed in to change notification settings - Fork 356
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
Introducing workflow status list in request's show page #8782
Conversation
Looks good for a start - let's get a live session going and we can collaborate on the design and details - not sure it should live on this page specifically, or perhaps it should replace the logging that David did. |
2f5c7cb
to
403ee67
Compare
Screen.Recording.2023-08-09.at.2.32.48.PM.mov
|
78e4a86
to
54d62db
Compare
This looks fantastic! A few questions
|
@Fryguy , these are the things implemented as per our initial discussions.. I have suggested using a refresh button instead of polling (for improved performance) to update the status dynamically .. Hope the design looks ok.
2.The request without provisioning worklfows attached will work as earlier i.e no information for the workflows status.. OR we can show the text displaying "No workflows attached". 3.If there is a place where we show ansible states that ll be good , we can show the worklfow status there itself instead of the request page , I was not aware so I have asked @jeffibm to include in the Request page itself . |
duration: duration(item.StartTime, item.FinishedTime), | ||
})); | ||
|
||
/** Dummy data received from api response. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking this PR as WIP until we remove all the dummy data and it's actually using proper API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Fryguy, from where can we extract the configuration_script_id
that can be passed to the api.
the recordId
passed into this component is the MiqRequest's id.
4e968c8
to
26bd830
Compare
@jeffibm Merged ManageIQ/manageiq#22714 which should give you the id that you need. |
ad482d5
to
fd1665c
Compare
} | ||
const rows = response.context ? rowData(response.context) : []; | ||
const headers = headerData(); | ||
const name = response.name || response.description || `ConfigurationScript#${response.id}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed we should drop the ConfigurationScript#${response.id}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const name = response.name || response.description || `ConfigurationScript#${response.id}`; | |
const name = response.name || response.description; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if another piece of code needs to change if name is null / undefined.
/** Component to render the Workflow status in /miq_request/show/#{id} page */ | ||
const RequestWorkflowStatusItem = ({ recordId }) => { | ||
const RELOAD = 2000; // Time interval to reload the RequestWorkflowStatus component. | ||
const reloadLimit = 5; // This is to handle the Auto refresh issue causing the the server to burn out with multiple requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder for us to come back to this in a follow up - we shouldn't need this.
app/javascript/components/request-workflow-status/request-workflow-status-item.jsx
Outdated
Show resolved
Hide resolved
app/javascript/components/request-workflow-status/request-workflow-status-item.jsx
Outdated
Show resolved
Hide resolved
app/javascript/components/request-workflow-status/request-workflow-status-item.jsx
Show resolved
Hide resolved
Checked commits jeffbonson/manageiq-ui-classic@5fe3ef2~...6ab1930 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint app/views/miq_request/_st_prov_show.html.haml
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Also want @agrare approval before merge.
Nevermind I nuked my overrides while testing something else and forgot about it 🤦 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backported to
|
Introducing workflow status list in request's show page (cherry picked from commit cf29c3a)
edit[:new] is always ===================={:new=>{:available_dialogs=>{}}} ===================={:new=>{:available_dialogs=>{}}} ===================={:new=>{:available_dialogs=>{}}} .===================={:new=>{:available_dialogs=>{}}} ===================={:new=>{:available_dialogs=>{}}} ===================={:new=>{:available_dialogs=>{}}} Finished in 1.9 seconds (files took 5.32 seconds to load) I tried adding the value for type, |
@jeffibm okay so what do you see when you hit this line? https://github.com/ManageIQ/manageiq-ui-classic/pull/8928/files#diff-fe38c2f9cecf78cbae1c519ca7881982dbf556e342a3f04e732b7c17eecdaab2L13 |
when |
If |
Note: Using dummy data
Related PR-
NotificationMessage components issues have been solved here - #8894