-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(aci): Add project filter to connect monitors list #101200
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
base: master
Are you sure you want to change the base?
Conversation
On step 1 and in the drawer, adds the project selector. Preserves the project id when making a new automation.
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
const organization = useOrganization(); | ||
const {selection} = usePageFilters(); | ||
|
||
let project: number | undefined; |
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.
Can you just do const project = selection.projects?.find(...)
?
to={`${makeAutomationBasePathname(organization.slug)}new/`} | ||
to={{ | ||
pathname: `${makeAutomationBasePathname(organization.slug)}new/`, | ||
query: project ? {project} : undefined, |
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.
Is it necessary to change the link? Wouldn't the page filters store hydrate from localstorage?
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.
that's true
On step 1 and in the drawer, adds the project selector. Preserves the project id when making a new automation.