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

Web: export decodeUrlQueryParam function #42597

Merged
merged 3 commits into from
Jun 11, 2024
Merged

Web: export decodeUrlQueryParam function #42597

merged 3 commits into from
Jun 11, 2024

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Jun 7, 2024

No description provided.

@@ -90,7 +90,7 @@ export default function useServersideSearchPanel({
};
}

function decodeUrlQueryParam(param: string) {
export function decodeUrlQueryParam(param: string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we want to export this function, I think that we should find a better place for it.
The e code that is going to relay on this function doesn't use the serverside search panel, so I think it's better to export it from a more generic place.
I'm thinking about web/packages/teleport/src/components/hooks/useUrlFiltering/decodeUrlQueryParam.ts (and then re-export from its index.ts).
Then I'd add a proper JSDoc comment to it.

@kimlisa kimlisa enabled auto-merge June 11, 2024 18:51
@kimlisa kimlisa added this pull request to the merge queue Jun 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 11, 2024
@kimlisa kimlisa enabled auto-merge June 11, 2024 20:57
@kimlisa kimlisa added this pull request to the merge queue Jun 11, 2024
Merged via the queue into master with commit 14c30b3 Jun 11, 2024
37 checks passed
@kimlisa kimlisa deleted the lisa/web-export branch June 11, 2024 22:09
@public-teleport-github-review-bot

@kimlisa See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v15 backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry size/sm ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants