-
Notifications
You must be signed in to change notification settings - Fork 807
Fix plugin type value in grid #3649
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 plugin type value in grid #3649
Conversation
@@ -34,6 +34,13 @@ const getPluginsGridHeaders = (getRowActions) => [ | |||
} | |||
] | |||
|
|||
enum pluginTypeHumanReadable { |
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.
Do we need an enum for that?
Is there a chance that the type coming from the server will have a different name without the underscore?
E.g.:
from server --> Credentials_Collector
in ui --> Credentials Collector
can't we just replace the underscore with space and cap each word?
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.
Since these are values that aren't expected to change, I'd rather skip the extra logic. Even if something about how we display the name ever changes, this is easier to rework than trying to modify and debug the logic.
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.
Aren't expected by who? The table is a display element, nothing should expect it's columns to correspond to the plugin data.
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.
Hack. We need to use plugin data, not table row data for actions. I'm working on fixing this
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.
Hack. We need to use plugin data, not table row data for actions. I'm working on fixing this
Example: Credentials_Collector -> Credentials Collector
5ac46d3
to
b2e4044
Compare
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.
Fixed
What does this PR do?
Make plugin type values human readable in plugin grid (removes underscores)
#3418
PR Checklist
Was the CHANGELOG.md updated to reflect the changes?Was the documentation framework updated to reflect the changes?Testing Checklist
Added relevant unit tests?Do all unit tests pass?Do all end-to-end tests pass?