Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ export const ProjectPickerSettings = ({ onResetToDefaults }: ProjectPickerSettin
closePopover();
},
},
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should commented out code just be removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather keep it - they have be suported for GA so it's gonna be just one - two month of this code to live as a comment and less work in the future. It's not like the feature that we'll forget about, it is planned to add this (just not ready from cloud side).

isSeparator: true as const,
},
{
name: strings.getManageCrossProjectSearchLabel(),
icon: 'gear',
'data-test-subj': 'projectPickerManageSettingsMenuItem',
onClick: closePopover, // TODO: redirect to CPS management - UI not ready yet
},
// TODO: Enable this when cloud CPS management link is ready: https://github.com/elastic/kibana/issues/257859
// {
// isSeparator: true as const,
// },
// {
// name: strings.getManageCrossProjectSearchLabel(),
// icon: 'gear',
// 'data-test-subj': 'projectPickerManageSettingsMenuItem',
// onClick: closePopover, // TODO: redirect to CPS management - UI not ready yet
// },
],
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ async function getTile({
method: 'POST',
path,
body,
querystring: { project_routing: '_alias:_origin' },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What Rudolf did in his PR (linked in the description) is patching all the routes that should have project_routing always set on _alias:_origin. But patching this one was a mistake - we actually don't want this route to be set to local, because maps support cps so the setting should be instead taken from cps picker and then propagated down to body of this request. This has already been working, but the change from the linked PR broke it (I didn't notice when approving).

},
{
signal: abortController.signal,
Expand Down
Loading