feat: SIP-34 table list view for databases#10705
Conversation
8e8d6c6 to
384706e
Compare
|
related to #8976 |
f9a4309 to
dd701f9
Compare
There was a problem hiding this comment.
question: just wondering what does <DatabaseObject> do here
There was a problem hiding this comment.
It allows specifying the generic for the ListView props. This means that props like renderCard are not (data: any) => ReactNode and are instead (data: DatabaseObject) => ReactNode.
You can read more about it here: https://mariusschulz.com/articles/passing-generics-to-jsx-elements-in-typescript
There was a problem hiding this comment.
Not sure how we want to handle the DatabaseObject between the list and the modal; especially since the modal has some extra fields, do we want to include those as optional props or just create a second type to use in the modal?
There was a problem hiding this comment.
Do we expect them to be significantly different? If so we can create separate types, or create a base type and extend it for each of the instances. Ideally they wouldn't be too different.
7a80c53 to
dcc389f
Compare
dcc389f to
035a282
Compare
94fde9a to
8e1788f
Compare
There was a problem hiding this comment.
Nit: this ternary is repeated a number of times with the same display element. Is there an easy way to DRY it up?
8e1788f to
f99e7f2
Compare
…boards_permissions * upstream/master: (32 commits) docs: Add a note to contributing.md on reporting security vulnerabilities (apache#10796) Fix: Include RLS filters for cache keys (apache#10805) feat: filters for database list view (apache#10772) fix: MVC show saved query (apache#10781) added creator column and adjusted order columns (apache#10789) security: disallow uuid package on jinja2 (apache#10794) feat: CRUD REST API for saved queries (apache#10777) fix: disable domain sharding on explore view (apache#10787) fix: can not type `0.05` in `TextControl` (apache#10778) fix: pivot table timestamp grouping (apache#10774) fix: add validator information to email/slack alerts (apache#10762) More Label touchups (margins) (apache#10722) fix: dashboard extra filters (apache#10692) fix: re-installing local superset in cache image (apache#10766) feat: SIP-34 table list view for databases (apache#10705) refactor: convert DatasetList schema filter to use new distinct api (apache#10746) chore: removing fsevents dependency (apache#10751) Fix precommit hook for docs/installation.rst (apache#10759) feat(database): POST, PUT, DELETE API endpoints (apache#10741) docs: Update OAuth configuration in installation.rst (apache#10748) ...
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
After:





TEST PLAN
-CI (enzyme tests), 👀
ADDITIONAL INFORMATION
ENABLE_REACT_CRUD_VIEWSconfig flag andSIP_34_DATABASE_UIfeature flag)