Skip to content
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

[ui][global search] Set up useAugmentSearchResults in CloudOSSContext #22072

Merged
merged 2 commits into from
May 23, 2024

Conversation

benpankow
Copy link
Member

@benpankow benpankow commented May 23, 2024

Summary

Adds a new entry to CloudOSSContext to let us inject a function which can be used to augment global search results. Used in cloud to display users' full names in the search pane.

This allows you to search by a user's name in addition to (or in place of) their email.

Screenshot 2024-05-23 at 1 49 45 PM

Test Plan

Shadow dagit.

@benpankow
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @benpankow and the rest of your teammates on Graphite Graphite

@benpankow benpankow requested review from salazarm, clairelin135 and hellendag and removed request for salazarm May 23, 2024 20:54
Copy link

github-actions bot commented May 23, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-etwfy5ago-elementl.vercel.app
https://benpankow-owner-full-name.core-storybook.dagster-docs.io

Built with commit c0634a8.
This pull request is being automatically deployed with vercel-action

@@ -12,6 +12,17 @@ type LaunchpadHooksContextValue = {
LaunchRootExecutionButton?: typeof LaunchRootExecutionButton;
useLaunchWithTelemetry?: typeof useLaunchWithTelemetry;
UserDisplay?: typeof UserDisplay;
useAllUserDetails?: () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We have so many contexts that do this kind of injection 😅 . I would recommend CloudOSSContext but uhh it really doesnt matter (Right now). In the future it would matter for page split bundling but there would be other things to figure out then anyways

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh good call, I was blindly following UserDisplay 😅

salazarm
salazarm previously approved these changes May 23, 2024
@benpankow benpankow changed the title [ui][global search] Set up LaunchpadHooksContext for user info, support search by user name [ui][global search] Set up useAugmentSearchResults in CloudOSSContext May 23, 2024
@benpankow benpankow requested a review from salazarm May 23, 2024 21:27
Copy link
Contributor

@salazarm salazarm left a comment

Choose a reason for hiding this comment

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

nice

@benpankow benpankow merged commit 7ddf295 into master May 23, 2024
2 checks passed
@benpankow benpankow deleted the benpankow/owner-full-name branch May 23, 2024 21:44
danielgafni pushed a commit to danielgafni/dagster that referenced this pull request Jun 18, 2024
…ext` (dagster-io#22072)

## Summary

Adds a new entry to `CloudOSSContext` to let us inject a function which
can be used to augment global search results. Used in cloud to display
users' full names in the search pane.

This allows you to search by a user's name in addition to (or in place
of) their email.

<img width="876" alt="Screenshot 2024-05-23 at 1 49 45 PM"
src="https://github.com/dagster-io/dagster/assets/10215173/f204e597-e094-4824-8fb6-a1cf8937e11c">


## Test Plan

Shadow dagit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants