-
Notifications
You must be signed in to change notification settings - Fork 90
Display Feed Publish Status on List of Feeds #1044
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
base: dev
Are you sure you want to change the base?
Conversation
binh-dam-ibigroup
left a comment
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.
First round of comments, but note that I still need to play around with it.
|
|
||
| // eslint-disable-next-line complexity | ||
| render (): React$Element<"div"> { | ||
| const { |
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.
Set the button's enabled/disabled state, content, and color using the new publishState from FeedVersionSummary? (The variables for the explanation message if publishing is blocked should be retained.)
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.
@binh-dam-ibigroup We would need to either prop drill the new publishState here or a backend change will be necessary to add this data. This page uses the feedversionsummaries?feedSourceId= endpoint. I will reach out about adding the publishState to this endpoint.
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.
@josh-willis-arcadis Okay that's fine, I am going to approve this PR and you can reuse publishState in a subsequent PR.
binh-dam-ibigroup
left a comment
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.
Could you reuse publishState in FeedVersionActionsMTC? (https://github.com/ibi-group/datatools-ui/pull/1044/files#r2665403992)
|
@josh-willis-arcadis Branch |
binh-dam-ibigroup
left a comment
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.
Conditional approval, please add the missing entries in the other language files.
| this.setState({ elapsed: '' }) | ||
| return | ||
| } | ||
| const human = humanizeDuration(Date.now() - ms, { largest: 2 }) |
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.
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.
yeah! addressed in 504f284
daniel-heppner-ibigroup
left a comment
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.
Okay this looks good! I was caught up on the interval setup in the new component but now I'm seeing the reason you have that is to get Date.now() again

Checklist
devbefore they can be merged tomaster)Description
Uses new data contained in
FeedSourceSummaryto display the publish status of a feed in theFeedSouceTablecomponent. Uses ibi-group/datatools-server#634German and Polish language files have been added back after a git error on my end.
