-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[APM] Remote Agent Config: Add additional (java) options #59860
[APM] Remote Agent Config: Add additional (java) options #59860
Conversation
), | ||
name: RouteName.AGENT_CONFIGURATION_CREATE, | ||
component: () => { | ||
const { search } = history.location; |
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.
Controversy #1
: retrieving search
from history
singleton. Everywhere else we get it from useLocation
hook.
The problem with hooks is that they only work inside react components (not vanilla js) so in general I think when given the choice it's better to use the singleton approach (for consistency).
afact there are no difference between the two approaches. LMK if there are!
x-pack/legacy/plugins/apm/public/components/app/Main/route_config/index.tsx
Outdated
Show resolved
Hide resolved
...s/app/Settings/AgentConfigurations/AgentConfigurationCreateEdit/ServicePage/CancelButton.tsx
Outdated
Show resolved
Hide resolved
return ( | ||
<EuiFieldNumber | ||
placeholder={setting.placeholder || defaultInputPlaceholder} | ||
value={(value as any) || ''} |
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.
EuiFieldNumber
currently don't accept strings. This will change with this PR
...pp/Settings/AgentConfigurations/AgentConfigurationCreateEdit/SettingsPage/SettingFormRow.tsx
Show resolved
Hide resolved
...c/components/app/Settings/AgentConfigurations/AgentConfigurationCreateEdit/index.stories.tsx
Show resolved
Hide resolved
...y/plugins/apm/public/components/app/Settings/AgentConfigurations/List/ConfirmDeleteModal.tsx
Outdated
Show resolved
Hide resolved
...y/plugins/apm/public/components/app/Settings/AgentConfigurations/List/ConfirmDeleteModal.tsx
Outdated
Show resolved
Hide resolved
...y/plugins/apm/public/components/app/Settings/AgentConfigurations/List/ConfirmDeleteModal.tsx
Outdated
Show resolved
Hide resolved
41032e6
to
259f363
Compare
x-pack/plugins/apm/common/runtime_types/agent_configuration/config_setting_definitions.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/common/runtime_types/agent_configuration/config_setting_definitions.ts
Outdated
Show resolved
Hide resolved
b8cab16
to
44f18c8
Compare
x-pack/plugins/apm/common/runtime_types/agent_configuration/config_setting_definitions.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Main/route_config/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Main/route_config/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Main/route_config/index.tsx
Outdated
Show resolved
Hide resolved
...ts/app/Settings/AgentConfigurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx
Show resolved
Hide resolved
...ts/app/Settings/AgentConfigurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx
Outdated
Show resolved
Hide resolved
...ts/app/Settings/AgentConfigurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx
Outdated
Show resolved
Hide resolved
...ts/app/Settings/AgentConfigurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx
Outdated
Show resolved
Hide resolved
...n/runtime_types/agent_configuration/config_setting_definitions/config_setting_definitions.ts
Outdated
Show resolved
Hide resolved
...pp/Settings/AgentConfigurations/AgentConfigurationCreateEdit/SettingsPage/SettingFormRow.tsx
Show resolved
Hide resolved
.../app/Settings/AgentConfigurations/AgentConfigurationCreateEdit/SettingsPage/SettingsPage.tsx
Show resolved
Hide resolved
.../app/Settings/AgentConfigurations/AgentConfigurationCreateEdit/SettingsPage/SettingsPage.tsx
Outdated
Show resolved
Hide resolved
…Configurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx Co-Authored-By: Casper Hübertz <casper@formgeist.com>
…Configurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx Co-Authored-By: Casper Hübertz <casper@formgeist.com>
…Configurations/AgentConfigurationCreateEdit/ServicePage/ServicePage.tsx Co-Authored-By: Casper Hübertz <casper@formgeist.com>
cc73feb
to
cb51fcc
Compare
I'll change the Cancel button to be a Discard button while in edit mode. It will behave as described above. WDYT should happen when creating a new config? |
If we're keeping the "discard" changes button even on a new config, the user would have to go back to the overview page via the sidenav to "cancel", as there's no specified cancel option. I don't think that's too big of an issue. |
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 👍🏻
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
Closes: elastic/apm#214
TODO:
EuiBottomBar
andEuiNavDrawer
eui#3146)Review page (not for 7.7)Config per agent name(not for 7.7)Categories: list options under categories(not for 7.7)Highlight previously edited options(not for 7.7)Questions: