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

fix: remove columns from the search api query #6996

Merged
merged 1 commit into from
May 7, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented May 7, 2024

About the changes

When selecting columns to display in the UI we want to persist them in the URL for sharing but we don't want to send them to the API and generate unnecessary SWR request keys.

Also removed unused project overview component and unused variable.

Important files

Discussion points

Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 0:12am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 0:12am

@@ -86,10 +86,11 @@ export const ProjectFeatureToggles = ({
createdAt: tableState.createdAt,
};

const { columns: _, ...apiTableState } = tableState;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

omit columns and rename to _ to avoid name clash with the existing columns variable

@@ -119,7 +120,6 @@ export const ProjectFeatureToggles = ({
setFeatureArchiveState,
setFeatureStaleDialogState,
} = useRowActions(refetch, projectId);
const [showExportDialog, setShowExportDialog] = useState(false);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unused variable

@kwasniew kwasniew merged commit 843aab7 into main May 7, 2024
13 checks passed
@kwasniew kwasniew deleted the remove-columns-from-search-query branch May 7, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants