Skip to content

feat: SIP-34 table list view for databases#10705

Merged
nytai merged 2 commits into
apache:masterfrom
preset-io:tai/database-list
Sep 2, 2020
Merged

feat: SIP-34 table list view for databases#10705
nytai merged 2 commits into
apache:masterfrom
preset-io:tai/database-list

Conversation

@nytai
Copy link
Copy Markdown
Member

@nytai nytai commented Aug 28, 2020

SUMMARY

  • adds a table view for datasets

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

After:
Screen Shot 2020-08-27 at 10 23 41 PM
Screen Shot 2020-08-27 at 10 23 51 PM
Screen Shot 2020-08-27 at 10 24 08 PM
Screen Shot 2020-08-27 at 10 24 16 PM
Screen Shot 2020-08-27 at 10 24 30 PM

TEST PLAN

-CI (enzyme tests), 👀

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI (behind ENABLE_REACT_CRUD_VIEWS config flag and SIP_34_DATABASE_UI feature flag)
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@nytai nytai force-pushed the tai/database-list branch from 8e8d6c6 to 384706e Compare August 28, 2020 17:02
@nytai nytai marked this pull request as ready for review August 28, 2020 18:40
@nytai nytai changed the title feat: list view table for databases feat: SIP-34 table list view for databases Aug 28, 2020
@nytai
Copy link
Copy Markdown
Member Author

nytai commented Aug 28, 2020

related to #8976

@nytai nytai force-pushed the tai/database-list branch from f9a4309 to dd701f9 Compare August 28, 2020 22:11
@nytai nytai requested review from dpgaspar and rusackas August 29, 2020 21:35
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

question: just wondering what does <DatabaseObject> do here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

Comment thread superset-frontend/src/views/CRUD/data/database/DatabaseList.tsx Outdated
Copy link
Copy Markdown
Contributor

@riahk riahk Aug 31, 2020

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@nytai nytai force-pushed the tai/database-list branch 4 times, most recently from 7a80c53 to dcc389f Compare September 2, 2020 17:08
@pull-request-size pull-request-size Bot added size/XL and removed size/L labels Sep 2, 2020
@nytai nytai force-pushed the tai/database-list branch from dcc389f to 035a282 Compare September 2, 2020 17:11
@pull-request-size pull-request-size Bot added size/L and removed size/XL labels Sep 2, 2020
@nytai nytai force-pushed the tai/database-list branch 2 times, most recently from 94fde9a to 8e1788f Compare September 2, 2020 17:17
Copy link
Copy Markdown
Member

@willbarrett willbarrett left a comment

Choose a reason for hiding this comment

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

LGTM with one nit

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: this ternary is repeated a number of times with the same display element. Is there an easy way to DRY it up?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good suggestion. Fixed!

@nytai nytai force-pushed the tai/database-list branch from 8e1788f to f99e7f2 Compare September 2, 2020 18:15
@nytai nytai merged commit 7bccb38 into apache:master Sep 2, 2020
@nytai nytai deleted the tai/database-list branch September 2, 2020 18:48
amitmiran137 pushed a commit to ofekisr/incubator-superset that referenced this pull request Sep 7, 2020
…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)
  ...
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.38.0 First shipped in 0.38.0 labels Mar 12, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 0.38.0 First shipped in 0.38.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants