-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Display only name instead of name with link for node in message details. #20505
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
def42c0
Fixing node details in message details on input extractor page.
linuspahl 0a4c74d
Display only name instead of name with link for node in message details.
linuspahl 70424f9
Use `NodeName` component for message details on input extractor page.
linuspahl a2f5c51
Adding changelog
linuspahl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type="f" | ||
message="In cloud env display only node name instead of name with link in message details on the search page." | ||
|
||
issues=["20464"] | ||
pulls=["20505"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,10 @@ import StringUtils from 'util/StringUtils'; | |
|
||
import MessageDetail from './MessageDetail'; | ||
|
||
const getImmutableProps = (props) => ({ | ||
streams: props.streams ? Immutable.Map(props.streams) : props.streams, | ||
}); | ||
|
||
class MessageShow extends React.Component { | ||
static propTypes = { | ||
message: PropTypes.object.isRequired, | ||
|
@@ -40,18 +44,14 @@ class MessageShow extends React.Component { | |
constructor(props) { | ||
super(props); | ||
|
||
this.state = this._getImmutableProps(props); | ||
this.state = getImmutableProps(props); | ||
} | ||
|
||
UNSAFE_componentWillReceiveProps(nextProps) { | ||
this.setState(this._getImmutableProps(nextProps)); | ||
this.setState(getImmutableProps(nextProps)); | ||
} | ||
|
||
// eslint-disable-next-line class-methods-use-this | ||
_getImmutableProps = (props) => ({ | ||
streams: props.streams ? Immutable.Map(props.streams) : props.streams, | ||
nodes: props.nodes ? Immutable.Map(props.nodes) : props.nodes, | ||
}); | ||
|
||
renderForDisplay = (fieldName) => { | ||
// No highlighting for the message details view. | ||
|
@@ -62,7 +62,7 @@ class MessageShow extends React.Component { | |
|
||
render() { | ||
const { inputs, message } = this.props; | ||
const { streams, nodes } = this.state; | ||
const { streams } = this.state; | ||
|
||
return ( | ||
<Row className="content"> | ||
|
@@ -71,7 +71,6 @@ class MessageShow extends React.Component { | |
message={message} | ||
inputs={inputs} | ||
streams={streams} | ||
nodes={nodes} | ||
renderForDisplay={this.renderForDisplay} | ||
showTimestamp /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I did not migrate it to TS, because I want to keep the backport simple. |
||
</Col> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Here we were already considering the cloud env.