-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update: Remove path awareness from data-views specific code. #55695
Update: Remove path awareness from data-views specific code. #55695
Conversation
Size Change: -11 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in a6adbad. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6691812336
|
Merging this as it is a simple change that will be part of a bigger follow-up PR. |
This PR addresses a comment by @ntsekouras at #55465 (comment), and removes path awareness from dataviews-specific code (e.g: code inside packages/edit-site/src/components/dataviews/).
After this change, the provider only receives a type of dataview e.g.: page or product. The edit site code using the provider is the one that checks the path and depending on the path passes the correct type.
Testing
Verify data views continue to work as expected and are correctly persisted.