* Update existing tests
* Add backend test
* feat: add force option to report screenshots
* Add tests
* Rebase fixes
* Do not force screenshot on dashboard alerts
* fix: Select component sort function sorting by label instead of value on numbers
* fix: change select component default sorting to sort by the initial index rather than a property like value or label
* fix: select sorting add sortOptions to select components using sortByProperty
* fix: change select component back, add order to options coming in from SelectControl
* fix: select component options intitial sort bug
* fix: add test cases for select fix
Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>
* Floating nums now sorting correctly with parseFloatingNums function
* Floating numbers AND strings now sorting correctly, +locale comparison
* Added NULL handling back to sort function
* Moved parseFloatingNums outside of sortResults
* Removed localeCompare and added testing
* Add equality check back to sort function
* Added floatValue nit
* Fix NULL styling in gridCell
* removed unnecessary imports
* Added null styling back to renderGridCell
* Cleaned up a little code as per Elizabeth
* Found another little cleanup spot
* fix: Order of Select items when unselecting
* Adds a property comparator that supports strings and numbers
* Uses a named export for propertyComparator
* abstract boilerplate code into class and rename csv to file
* add db migration
* fix some stuff
* more renaming of csv to file
* rename in translations
* update down revision
* update down revision
* bump chart version
* switch to alter column name approach in db migration
* fix db migration for MySQL
* db migration conflict
* Changed SQL Lab result column header-style width to max-content
* Changed .ant-tooltip-open to block and tooltip placement to topLeft
* Moved tooltip style changes to local implementation instead of global
* chore: Change the list views to use the new Select component
* Fix Cypress tests
* Enables search for all controls
* Adjusts controls width
* Removes 'Me' and keeps the logged user on top
* Fixes tests
* Uses the borderless version for the filters
* Fixes the tests
* Reverts the Select theme to the default
* Rebases and fixes js error
* Fixes failing test
* Removes unused withTheme
* chore: Improves the Select component to avoid additional queries when all values have been loaded
* Handles the logic in handlePaginateFetch and removes the use effect
* Clean up and reorganize effects
* Enhance optionFilterProps
* Render custom label
* Remove prop filtering
* Create options
* Create option from value in single mode
* Change to customLabel
* Show search by default
* Update superset-frontend/src/components/Select/Select.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/components/Select/Select.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/components/Select/Select.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Apply minor changes
* Fixes a bug that was failing CI
* Adds more tests to the component
* Apply customLabel in ColorSchemeControl
* Remove customLabel from rendered Option
* Hide No data when allowNewOptions
* Remove unnecessary prop from tests
* Adjust loading height
* Show no data with fetchOnlyOnSearch
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
Co-authored-by: Michael S. Molina <michael.s.molina@gmail.com>
* fix: setupPlugin in chart list page
* fix the order of setupPlugins call
* Fix jest test on loading geojson
* add jest changes
* fix unit tests
Co-authored-by: Jesse Yang <jesse.yang@airbnb.com>
* copy to Clipboard order
* centralized copyToClipboard
* fixed table order
* fixed tests
* added colnames to all viz types
* added colnames to all viz types
* added colnames to all viz types
* Fix style and implement ESC
* Include ESC test case
* Move pagination outside of table
* Update superset-frontend/src/components/OmniContainer/OmniContainer.test.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Enhance
* Handle close
* Localize placeholder
* Fix tests
* Clear input on close
* Destroy modal on close
* Clean up
* Fix tests
Co-authored-by: Evan Rusackas <evan@preset.io>
Co-authored-by: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
* chore: implement new mockup to the new viz gallery
* fix: update package-lock
* fix: add license
* fix: reduce duplication and fit within the sidebar
* fix: ut
* initial commit
* fix theme
* Update superset-frontend/src/SqlLab/components/QueryTable/index.jsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* add modal layout with description, rework styles
* thirty percent
* test correctly
* avoid any changes in modal height
* typescriptify
* feat(viz): add categories to the viz picker (#15304)
* feat(viz): add categories to the viz picker
* fix test types
* add a catch-all category
* tweak layout
* upgrade superset-ui to get new metadata
* do i look like i know what a jpeg is
* fix tests
* lint
* remove script count test requirement
* fix e2e test
* feat(explore): Viz picker search improvements (#15399)
* upgrade superset-ui, install fuse.js
* add metadata to plugin context
* get search working
* layout improvements
* fix tests
* Update superset-frontend/src/explore/components/controls/VizTypeControl/index.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* use typography size instead of grid unit
* comments
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* feat(explore): Examples image gallery in the viz type control (#15489)
* feat(explore): add section for example images in viz type control
* fix jpg webpack config
* formatting
* feat(Explore): Viz gallery component tweaks (#15520)
* separate viz gallery from the modal
* use gallery directly in add slice view
* more formatting on the add slice container
* restyle the thumbnail list
* explicit thumbnail width and height
* remove crappy hack
* remove useless line
* comment
* sort categories
* comments
* tweak search behavior
* fix tests
* open gallery to the currently selected viz type
* null safety
* show all plugins when searching empty string
* get the new metadatas
* adjust categories scrolling behavior
* add time series table metadata
* upgrade superset-ui
* attempt fixing tests
* upgrade descriptions
* fix unit test
* attempt fixing e2e again
* max width for viz gallery
* update package lock
* undo unnecessary webpack changes
* don't show search results until something is entered
* force modal to open to selected viz type
* tweaks to search behavior
* gallery layout tweaks
* enshrine pivot table v2 in a place of honor
* feat(viz): Clear viz gallery when navigating between categories (#15577)
* start viz gallery with null selection, clear when switching categories
* fix AddSliceContainer tests
* show a message when there is no viz type selected
* composition > inheritance
* clarify searching code
* comment
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* split db modal file
* split db modal file
* hook up available databases
* add comment
* split db modal file
* hook up available databases
* use new validation component
* first draft
* use new validation component
* Creating IconButton
* Changed naming: logo is now icon
* Hard-coded inset values for ellipses
* Removed default SVG
* Fixed test
* get tests passing
* Removed logo from test
* split db modal file
* hook up available databases
* use new validation component
* feat(db-connection-ui): Allow users to pick engine (#14884)
* poc picker for db selection
* working select
* setup is loading for available dbs and step1 view
* fix on close
* update on fetch
* remove unneeded code
* add some styls
* saving for now
* revisions
* fix package-lock.json
* update styles
* save
* # This is a combination of 6 commits.
# This is the 1st commit message:
feat: validation db modal (#14832)
* split db modal file
* hook up available databases
* use new validation component
# This is the commit message #2:
feat: Icon Button (#14818)
* Creating IconButton
* Changed naming: logo is now icon
* Hard-coded inset values for ellipses
* Removed default SVG
* Fixed test
* Removed logo from test
# This is the commit message #3:
chore: Improves the native filters UI/UX - iteration 6 (#14932)
# This is the commit message #4:
fix: is_temporal should overwrite is_dttm (#14894)
* fix: is_temporal should overwrite is_dttm
* move up
# This is the commit message #5:
fix: time parser truncate to first day of year/month (#14945)
# This is the commit message #6:
hook up available databases
* fix test for db modal
* feat(db-connection-ui): Allow users to pick engine (#14884)
* poc picker for db selection
* working select
* setup is loading for available dbs and step1 view
* fix on close
* update on fetch
* remove unneeded code
* add some styls
* more revisions
* create 1 function for setting the DB
* add function to preferred section
* small refactor and added styling
* used db.backend
* add new footer buttons
* add finsh buttong
* refactor db modal render
* fix comments issue
* added engine to model
* elizabeth revisions
* add header
* add bottom footer to sqlalchemy form
* # This is a combination of 6 commits.
# This is the 1st commit message:
feat: validation db modal (#14832)
* split db modal file
* hook up available databases
* use new validation component
# This is the commit message #2:
feat: Icon Button (#14818)
* Creating IconButton
* Changed naming: logo is now icon
* Hard-coded inset values for ellipses
* Removed default SVG
* Fixed test
* Removed logo from test
# This is the commit message #3:
chore: Improves the native filters UI/UX - iteration 6 (#14932)
# This is the commit message #4:
fix: is_temporal should overwrite is_dttm (#14894)
* fix: is_temporal should overwrite is_dttm
* move up
# This is the commit message #5:
fix: time parser truncate to first day of year/month (#14945)
# This is the commit message #6:
hook up available databases
* fix test for db modal
* feat(db-connection-ui): Allow users to pick engine (#14884)
* poc picker for db selection
* working select
* setup is loading for available dbs and step1 view
* fix on close
* update on fetch
* remove unneeded code
* add some styls
* elizabeth revisions
* add back headers
* add step
* feat: Dynamic Form for edit DB Modal (#14845)
* split db modal file
* split db modal file
* hook up available databases
* add comment
* split db modal file
* hook up available databases
* use new validation component
* first draft
* use new validation component
* get tests passing
* split db modal file
* hook up available databases
* use new validation component
* feat(db-connection-ui): Allow users to pick engine (#14884)
* poc picker for db selection
* working select
* setup is loading for available dbs and step1 view
* fix on close
* update on fetch
* remove unneeded code
* add some styls
* revisions
* fix package-lock.json
* # This is a combination of 6 commits.
# This is the 1st commit message:
feat: validation db modal (#14832)
* split db modal file
* hook up available databases
* use new validation component
# This is the commit message #2:
feat: Icon Button (#14818)
* Creating IconButton
* Changed naming: logo is now icon
* Hard-coded inset values for ellipses
* Removed default SVG
* Fixed test
* Removed logo from test
# This is the commit message #3:
chore: Improves the native filters UI/UX - iteration 6 (#14932)
# This is the commit message #4:
fix: is_temporal should overwrite is_dttm (#14894)
* fix: is_temporal should overwrite is_dttm
* move up
# This is the commit message #5:
fix: time parser truncate to first day of year/month (#14945)
# This is the commit message #6:
hook up available databases
* fix test for db modal
* feat(db-connection-ui): Allow users to pick engine (#14884)
* poc picker for db selection
* working select
* setup is loading for available dbs and step1 view
* fix on close
* update on fetch
* remove unneeded code
* add some styls
* more revisions
* used db.backend
* added engine to model
* elizabeth revisions
* elizabeth revisions
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
Co-authored-by: hughhhh <hughmil3s@gmail.com>
* address comments
* oops
* # This is a combination of 6 commits.
# This is the 1st commit message:
feat: validation db modal (#14832)
* split db modal file
* hook up available databases
* use new validation component
# This is the commit message #2:
feat: Icon Button (#14818)
* Creating IconButton
* Changed naming: logo is now icon
* Hard-coded inset values for ellipses
* Removed default SVG
* Fixed test
* Removed logo from test
# This is the commit message #3:
chore: Improves the native filters UI/UX - iteration 6 (#14932)
# This is the commit message #4:
fix: is_temporal should overwrite is_dttm (#14894)
* fix: is_temporal should overwrite is_dttm
* move up
# This is the commit message #5:
fix: time parser truncate to first day of year/month (#14945)
# This is the commit message #6:
hook up available databases
* fix test for db modal
* feat(db-connection-ui): Allow users to pick engine (#14884)
* poc picker for db selection
* working select
* setup is loading for available dbs and step1 view
* fix on close
* update on fetch
* remove unneeded code
* add some styls
* remove merge conflicts
* small fix on blocking creating
* feat(db-connection-ui): Big Query Add Database Form (#14829)
* fix(native-filters): Manage default value of filters by superset (#14785)
* fix:fix get permission function
* feat: manage default value in superset
* fix(native-filters): loop bug by simplify state handling (#14788)
* fix: set table name width to not hide icons when name is too long (#14489)
* fix: set table name width to now hide icons when name is too long
* fix: table style
Co-authored-by: einatnielsen <einat.bertenthal@nielsen.com>
* feat(explore): Remove default for time range filter and Metrics (#14661)
* feat(explore): Remove default for time range filter and Metrics
* Merge errors with same messages
* Fix e2e test
* Rename a variable
* Bump packages
* Fix unit tests
* feat: chart gallery search improvement (#14484)
* feat: chart gallery search improvement
* test: adding unit test for VizTypeControl
* fix: lint errors
Co-authored-by: einatnielsen <einat.bertenthal@nielsen.com>
* Update schemas.py
* Update bigquery.py
* Fix tests
* big query form is appearing on the screen
* add name to allow for actions to get picked up
* working post for saving db via paste
* working file upload
* switch to textare
* better styles
* add delete buttong
* save formating
* wrap encrypted_extra
* formatting component
* clear out file input before reloading
* remove default driver
* address comments
* fix things off rebase
* small refactore
* more patches
* checkout space file
* fix variable ref
Co-authored-by: simcha90 <56388545+simcha90@users.noreply.github.com>
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
Co-authored-by: Einat Bertenthal <einatbar@users.noreply.github.com>
Co-authored-by: einatnielsen <einat.bertenthal@nielsen.com>
Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* feat: adding SSL Toggle to Create Database Modal (#14976)
* first draft of SSL Toggle
* added payload data
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* changed tooltips based on stephen advice
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
Co-authored-by: Hugh A. Miles II <hughmil3s@gmail.com>
* feat(database-connection-ui) Allow configuration of Database Images from SupersetText (#15023)
* saving this for now
* fix some styles
* add database images
* fix
* enforce only numbers
* add default iamge
* fix bug
* additional params to the DatabaseConnectionForm (#15071)
* additional params to the DatabaseConnectionForm
* save passing params up to api
* feat: Added Steps and centralized Headers (#15041)
* fix superset_text issue (#15095)
* fix edit issue by returning parameters properly (#15101)
* feat: added alerts (#15103)
* added alerts
* revisions
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
* fix: fixing api tests for database connections (#15124)
* fixing api tests
* added test for no config method on create
* added config method to validation tests
* fix(db-connection-ui): Additional Query Parameters render (#15150)
* working query params
* move condition out before update or create
* fix type script issues
* feat(db-connection-ui): Move fields from Extra section and split engine and metadata (#15143)
* working edit extra options
* acquired most of json
* recontruct json
* add schema array
* add proper styles
* fix tslint issues
* remove console.log
* this is working
* style: Database connect UI Polish - Step 1 (#15119)
* save avg
* Styled step 1
* Remove Alert
* Finished styling, added ellipsis library to IconButton
* Fixed text margin
Co-authored-by: hughhhh <hughmil3s@gmail.com>
* fix app from merge
* fix tslint issues
* fix all tslint issue on feature branch
* catch errors for dialects with no driver set
* fix dremio issue
* fix dialect issue without driver attr
* Styled step 3 (#15187)
* feat: adding server-side validation and unmasked password on create (#15151)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* validation and password masking
* revisions and validation range
* revisions
* added beto revisions
* added tests for port range
* added config to available
* testing, rtl
* made tests always pass
* feat: add Close/Finish buttons to DBModal on Edit (#15199)
* fix(db-connection-ui): Allow Dynamic Big Query Edits (#15185)
* working big query edits
* fix big stoping users from moving to next step
* fix default
* save defaults
* fix tslint
* remove object
* fix styling
* fix: Connect on DB Connection wasn't working (#15201)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* fixed the connect button
* make available alphabetically sort
* make available alphabetically sort II
* fix selection
* remove console.log
* fix styling
* fix: fix api_test and typeScript error (#15202)
* fix big query issue
* allow for query params
* feat: Added Dynamic form link to SQL Alchemy Form (#15208)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* added dynamic form link
* fix: fix api tests for test_available (#15210)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* fixes api tests
* feat: added Spinner to DB Modal (#15229)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* spinner
* Made header sticky (#15204)
* fix: make Edit DB modal look similar to create Modal (#15231)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* spinner
* changed edit
* fix: DB Connection UI R2 Fixes (#15232)
* fix display name refill
* fix order of additional params to always be at the bottom
* remove schema check on validation
* make encryption last
* fix json file upload
* fix additional params issue
* remove comments
* add back validation
* small fixes on bigquery edit
* only wrap encrypted with bigquery
* specific conditions for wrapping big query items
* dix additional params
* fix allow display name in sqlalchemy form
* backend before engine
* fix: do not use Marshmallow validation in partial params validation (#15236)
* fix: do not use Marshmallow validation in partial params validation
* Fix lint
* Update test
* make display name required
* reset validation errors onClose (#15243)
* fix: Edit for all dynamic forms (#15244)
* fix edit for dynamic forms
* fix linting
* fix edit on sqlalchemy forms
* fix big query reference
* remove extra if
* wrap configuration method (#15274)
* add more specific engine elastic search (#15287)
* do a deep copy of obj before POST (#15298)
* feat: add Back button to extra options (#15300)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* spinner
* first draft
* working
* added back button to create modal
* revisions and testing
* chore: Add tooltips and button to Connect Postgresql DB Modal Form (#15179)
* Added tooltips. Still need to place in the right spot.
* Revert to where I started.
* Added 3 tooltips, 1 Button(need link config). BigQuery not added yet.
* Added tooltip BigOuery modal. `span` above upload btn missing `*`
* Added tooltip to `Host` field. Alignment needs to be fixed.
* Stuck trying to add conditional render of tooltip to LabeledErrorBoundInput
* Clean commit for review
* Dynamic tooltip componet created. Needs alignment of SVG still.
* Fixed typo.
* Added line spacing back in
* Changed required props to optional/Remove comment
* Fixed alignment of tooltips & moved 2tooltips outside of Btn
* Added one more line space back in
* Removed Typo
* Removed another typo
* Flixed linter error
* Created test for tooltip.
* Added expectation for visible tooltipIcon
Co-authored-by: andrewbastian <andrewbastian@hosaka-deck.lan>
* style: Database Modal UI Polish (#15234)
* Corrected polishing tasks from Clubhouse ticket
* More UI polish
* Added more polish
* Moved encryption field and created constant value for viewBox in InfoToolTip
* feat: allow editing (#15308)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* spinner
* elizabeth fixed the edit issue
* feat: Added error alert for DB connection Modal (#15242)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* spinner
* added errorAlert
* added revisions
* current work
* revisions
* fix: validation on edit (#15310)
* fix: Big Query Error messaging (#15334)
* remove validation check
* remove validation check
* fix error messaging
* stop validation on big query
* add condition for skipping specific engines for validation
* if no params
* update styles
* feat: big Query using back button (#15338)
* fix: password errors on validation (#15372)
* filter out password supply for validation
* filter password
* feat: updated Error Alert (#15377)
* Updated styling (#15379)
* fix password error filter
* feat: Arash/password field error (#15388)
* fix: Back Button on Create for DB conncetion (#15389)
* fix: add icons (#15122)
* added alerts
* revisions
* added icon
* spinner
* fixing backButton on Create
* fix doc (#15393)
* style: Database Connection Modal UI Polish R5 (#15412)
* Fixed inconsistent header spacing in step 1
* Touched up tooltips
* Added red *s to BigQuery form
* Centered modal window
* make alerts configurable (#15404)
* fix: Allow users to override database connection docs (#15434)
* allow users to override docs
* fix linting issue
* fix: Error Icon not showing up on errored input fieds on validation (#15431)
* Fixed now-show error icon
Signed-off-by: andrewbastian <andrew.bastian@gmail.com>
* Changed `%` to `px`
* Fixed lint error
* Changed units to `theme.gridUnit`
* test: RTL testing on DatabaseModal (#15394)
* RTL testing on DatabaseModal
* Continued RTL testing on DatabaseModal
* Code cleanup
* Removed a comment that missed my radar
* test: Add e2e testing (#15376)
* create boilerplate for cypress test
* added 1 more test
* add more test cases
* saving this for development
* lit
* remove name
* update pass
* remove unused test
* fix merge conflicts
* Fixed "connetion" typo (#15458)
* fix: Database connection modal touch up (#15463)
* Removed unnecessary TODO and named the remaining ones
* Added translation functionality
* Fixed typo in Database Modal RTL test
* Update modal.test.ts
* fix: Showing errors for SQLA forms (#15462)
* fix documentation links
* fix sqlalchemy onCreate
* Fixing SQLA error messaging
* fix logic for extra save
* fix this issue
* fix: Update Invalid Port SIP-40 Reference (#15464)
* Fixed jumpy header text
* fix: Edit Modal not saving properly (#15468)
* Aligned info icons on dynamic form
* fix: merge conflict (#15479)
* chore: simplify errors and issue codes (#15437)
* Fix issue number
* Fix test
* Fixed line-height in header, also fixed translation functions in BigQuery
* Updated placeholder text in additional params field
* Fixed padding in edit form
* Corrected placeholder text in BigQuery > Service Account field
* Make linter happy
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
Co-authored-by: Arash <arash.afghahi@gmail.com>
Co-authored-by: hughhhh <hughmil3s@gmail.com>
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
Co-authored-by: simcha90 <56388545+simcha90@users.noreply.github.com>
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
Co-authored-by: Einat Bertenthal <einatbar@users.noreply.github.com>
Co-authored-by: einatnielsen <einat.bertenthal@nielsen.com>
Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
Co-authored-by: Andrew Bastian <50464395+andrewbastian@users.noreply.github.com>
Co-authored-by: andrewbastian <andrewbastian@hosaka-deck.lan>
* snowflake errors
* added big query
* added to setup error messages, first test
* all big query testing added
* added snowflake test
* added syntax error
* added syntax errors to most used databases
* intial commit
* fix test
* Update superset-frontend/src/components/LastUpdated/index.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Implement initial structure
* Add aria-label
* Rename files
* Refactor single mode new options
* Clean up
* Add select at every corner in storybook
* Clean up
* Add pagination
* Move selected options at the top
* Clean up
* Add license
* Refactor
* Improve pagination
* Fetch when allowNewOptions
* Clean up
* Front end update - modify OPERATORS, to have SQL operation and display value
* Updated tests
* More tests
* Remove OPERATOR imports
* Fix break tests
* PR comments
* fix issue with comparator loading
* rename a variable
* Linting
* Creating IconButton
* Changed naming: logo is now icon
* Hard-coded inset values for ellipses
* Removed default SVG
* Fixed test
* Removed logo from test
* Error Input Form created
* Adjusting styling
* testing complete
* Corrected component naming in Form
* testing complete
* Corrected component naming in Form
* Renamed stories file to appropriate name
* add image for alert
* Fixed test
* Switched from px to theme
* Adjusting LabeledErrorBoundInputProps
* validation now accepts a string
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
* Sqllab limit
* Add migration script
* Set default values
* initial push
* revisions
* moving migration to separate PR
* revisions
* Fix apply_limit_to_sql
* all but tests
* added unit tests
* result set
* first draft
* revisions
* made user required prop, added it to all places ResultSet is imported
* changed QueryTable test to allow for useSelector
* Query Table working
* working with heights
* fixed scrolling
* got rid of animated
* fixed tests, revisions
* revisions
* revisions
* heights
* fun with heights
* alert state
* aaron helped me fix this
* better alert messages
* fixed result set test
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* fix: Adding a little margin under the warning about changing datasets
* feat: moves Alert spacing from a css override to an Alert prop
* fix: prop needs to be optional... proptional
* fix: moving the typing to a better spot, adding the new prop to storybook.
* style: linting
* chore(dashboard): Integrate dashboard app into the SPA bundle
* fix url params
* change variable name
* change title correctly
* custom css
* lint
* remove unused file
* remove content assertions from dashboard tests
* fix case with missing bootstrap data
* fix: respect crud views flag
* crud views -> spa
* remove unused dashboard templates
* fix: remove unused variable
* fix: missed a spot with the crudViews -> spa
* router link to dashboard from dashboard list page
* link using the router when in card mode
* lint
* fix tests, add memory router
* remove dashboard app files
* split up the bundle a little more
* use webpack preload
* Add aria-label and twotone
* Enhance LazyIcon
* Fix tests and solve ject warnings
* Add new line
* Revert package-lock to master
* Fix failing test
* Implement icon overrides
* Fix failing storybook
* Clean up
* Improve var name
* Implement adhoc filters in Range and Select native filters
* Add time picker
* Remove additional filters from datamask
* Create separate stylesheet for AdhocFilterControl in native filters
* Rename Time picker to Time range
* Fix columns in AdhocFilter empty when creating a new filter
* Skip flaky test
* test: add tests for filter bar
* test: merge filter bar tests with master
* test: add test for filter set
* test: filter set tests
* test: merge with master
* test: fix tests for filter bar
* fix: fix CR notes
* fix: fix CR notes
* add hook for future async api calls
* test to see conflict
* add async middleware and update reducers
* working async dashboard load
* implement getcharts api
* add user permissions to explore and dashboard bootstrap data
* integrate api calls with getinitial state
* update namings
* accept an id or a slug in the dashboard charts api
* add permissions function
* fix merge
* update state
* get dashboard charts by id or slug
* fix undefined states
* variable names
* stop using some more bootstrap data
* fix metadata reference
* remove unused bootstrap from the template
* add errorboundry to dashboard
* refactoring, fixing
* update permissions
* add just roles
* id is supposed to be a string
* unused vars
* get datasources from api
* make onError optional
* use resource hooks, better error boundary
* add loading state for dashboardroute
* remove console
* add conditional
* more conditionals
* testing out a possible fix for cypress
* convert edit/standalone test to cypress
* remove bootstrappy assertions
* lint
* fix dashboard edit history issue
* rename stuff
* address recent native filters schema change
* remove unused getInitialState
* remove .only from test
* hooksy redux usage
* Revert "more conditionals"
This reverts commit 25c8ed61b4.
* cleanup
* undo unnecessary change
* actually need conditions here
* certainty
* Revert "certainty"
This reverts commit 77dea1915b.
* more permutations (untested yolo)
* Update superset-frontend/src/chart/chartReducer.ts
Co-authored-by: Evan Rusackas <evan@preset.io>
* import style
* comment
* cleaner dashboardInfo
* remove debug code
* use memo for getPermissions
* fix lint
* adjust name/location of DashboardPage
* move logic for REMOVE_SLICE_LEVEL_LABEL_COLORS to DAO
* stop using full_data()
* remove unused (and now useless) json=true query param
Co-authored-by: David Aaron Suddjian <aasuddjian@gmail.com>
Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com>
Co-authored-by: Evan Rusackas <evan@preset.io>
* replace Well componenet with Card component
* Fix lint errors
* Fix lint
* Addressing comments
* Addressing comments
* Fix lint errors
* Exporting Card from index.tsx and adding storybook variants
* Fix some refactoring
* Fix errors
* solving conflicts and lint errors
* Update superset-frontend/src/common/components/Card.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/common/components/Card.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/common/components/common.stories.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
Co-authored-by: Nikola Gigic <nik.gigic@gmail.com>
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Moving DatabaseSelector to a folder
* Tests for DatabaseSelector
* Using factory for props
* Update superset-frontend/src/components/DatabaseSelector/DatabaseSelector.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/components/DatabaseSelector/DatabaseSelector.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* Update superset-frontend/src/components/DatabaseSelector/DatabaseSelector.test.tsx
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* apply waitFor and remove act
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
* moving Loading.tsx to the Loading folder
* Creating storybook for Loading component
* Creating unit test for Loading component
* fix eof on package.json
* Improving accessibility and interface
* just to run CI again
* fix: fix the untranslated text content of Dashboard page
* fix: add the untranslated text content of Dashboard page in messages.pot
* fix linting error
Co-authored-by: chenx <yuxiang1989>
* chore: migrate all harmless incubator refs like comments and documentation files
* chore: migrate all superset.incubator.apache.org to superset.apache.org to
* chore: migrate dist.apache.org refs
* chore: removing incubating and Disclaimer
* fix: linting issues
* first attempts at dynamic plugin loading
* dynamic import working for explore
* memoize appropriately
* add a backend for dynamic plugins
* hack at getting dynamic plugins working with dashboards
* more work on making it work, + feature flag
* lint
* actions to fix explore state when plugins load
* handle dynamic control panel, functionify ExploreViewContainer
* fix: rearrange migrations branch
* fix: name and key as strings with length 50
* bundle url length 2000
* bundle url to text
for some reason not supported on my sql
* fix: too long varchart
* fix: pre-commit typing
* fix: licenses
* fix: add slice container was not initing feature flags
* fix: undo linting issue
* fix: adjust down revision again
* fix: adjust down revision again
* isort
* pylint
* god damn linters
* remove unnecessary(?) loading message
* only log non-standard errors
* testing
* python is terrible
* see above commit message
* fix imports in DynamicPluginProvider
* fix
* shift migration forward
* lint
* fix form data calculations to handle missing control config
* temp commit - waiting for superset-ui changes and crud fixes
* remove unnecessary todo
* use new superset-ui shared module function
* fetch the plugins instead of hardcoding the test one
* migration sort
* remove duplicated import statement
* format
* try moving the import 🙄
* copy
* fix frontend tests
* safe access
* comment out dead code
* isort
* disable pylint on necessary lines
* use @superset-ui/logging instead of console
* remove temp code
* rearrange some code
* try triggering mouseover in cypress before click
* use loading spinner instead of text
* trying to fix cypress
* attempt cypress fix
* customize permissions
* update package lock
* only admins can write to plugins by default
* better copy
* disable flaky tests
* use makeApi
* flaky tests
* cleanup code
* flaaaakkkyyyyyy
* dry
Co-authored-by: amitNielsen <amit.miran@nielsen.com>
* wip: filter create modal
* add a feature flag
* automatic changes to package lock
* wip
* filter sidebar and basic state management
* move create button to the sidebar
* first step for edit filterconfig
* partially fix tests...
* edits to types and comments
* respect feature flag on the filter sidebar
* add filterconfig form
* get input state working
* feat: tree filter scopes UI
* fix: turn on flag
* sticky filter bar
* stop preferring default export
* feat: finish filter scoping
* fix: under toggle
* fix: title
* fix: add licence
* refactor: update TS
* fix: fix on reopen modal + validation
* new filter bar menu
* adding, but commenting out, bulk scoping action
* adding some placeholder buttons and styles therefor
* feat: add filter chart
* add relative path to package.json
* update modal
* a little input styling... just getting warmed up
* Revert "feat: add filter chart"
This reverts commit b1302d35b6.
* Revert "add relative path to package.json"
This reverts commit 26a7b40e18.
* https package lock idk
* feat: add filter chart
* add relative path to package.json
* flexboxes all the way down
* dynamically generate groupby and datasource in select control
* big wip
* fix target column name
* no importing nonexistent things
* styles and name editing
* Add hook for retrieval of all filter states
* start with a new filter when clicking add filter
* handle removed filters gracefully
* fix incorrect default filter configuration
* add fields to useAllFilterState
* add redux for filterconfigs
* add support for native_filters
* remove consoles
* improve filter removal
* unbreak infinite loop
* basic sidebar toggling working!
* collapsing and menu working more smoothly
* linting
* make dataset and column inputs work
* save filter values properly
* add dashboard event for filter updates
* guarded
* apply filters properly
* fix schema
* making New Filter button a link
* gridunits ftw
* centering modal
* tis not a button anymore! nixing type.
* plus and collapse buttons instead of "more" menu
* updating full size filter icons
* adding icons to filter collapsing/expanding
* turning off animation, but leaving class-based animation css
* fix linting error
* fix native filters for legacy charts
* updates test
* no individual apply buttons
* fix bugs with filter config modal
* remove redundant code
* switch to the filter with validation errors on submit
* separate form validation
* switch config button from add to edit
* switch to the filter with validation errors on submit
* separate form validation
* switch config button from add to edit
* update tests
* oops forgot to add the fancy new useChangeEffect hook
* comments and code reorganization
* rename native_filters to extr_form_data and move hook
* disable native filters in viz selector
* add cascading
* implement new extra form data api
* cleanup
* updates tests
* bump npm packages
* fix bad merge on package.json + lock
* lint
* replace in and not in with uppercase
* lint
* lint
* lint
* lint
* bulk test fix
* Sort select input alphabetically
* Change type for sorting elements
* sleeker filter removal UX
* fix rest of unit tests
* make filter operators all uppercase
* Hide Filter bar when there are no filters
* Show edit button for dashboard owners only
* Add visible argument to filters toggle function to avoid future regression
* Improve Toggle filters bar function
* lint
* fix js lint + set createNewOnOpen
* Handle setting extra form data in Filter Bar instead of Filter Control
* Add Handle apply filter function to Apply button
* Allow applying changes instantly
* Fix types
* remove console logs
* fix package
* Add Error Boundary component to Filter bar and Filter Config Modal
* fix jest tests
* update native filters tests to pass
* reset cypress baseUrl
* remove unnecessary field
* Add Parent Filter input field to Config Modal
* Create Cascade Filter & display children filters
* Add Cascade Popover
* Display Filter value both in Filter Bar and in Cascade Popover
* Display the youngest filter value label in the Filter bar
* Add styles to Cascade Popover and filters
* Force to apply changes instantly for parent filters and refactor styles
* Show error for no cyclical hierarchy and refactor
* Add validation for parent filter to be applied instantly
* Add Error Boundary to Filter Config Modal
* cleanup: remove unused state fields
* move unrelated types to an appropriate location
* remove misplaced resource fetch error logic
* fix cascadeParentIds error
* fix cypress password
* initial attempt at fixing scope issue
* fix bad merge
* fix lint
* trying out makeApi for saving filters
* remove unused import
* fix test
* silence bad test
* Improve styling of Filter Config Modal
* Improve styles for whole native filters feature
* Add styles for active filter tab
* Fix text for scoping
* Clean up Filter Bar and Config Modal styles
* Remove fractional gridUnits. Change name for CheckboxFormItem. Add placeholder to Parent Filter select.
* Remove unnecessary button size for Config Modal
* add native-filter feat flag config
* oops fix here
* remove space
* Update superset-frontend/src/common/components/index.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/cypress-base/cypress/integration/dashboard/nativeFilters.test.ts
Co-authored-by: Evan Rusackas <evan@preset.io>
* Add Cache Wrapper helper to avoid datasets requests deduplication
* Add license to new Cache Wrapper helper
* Add Cache Wrapper tests
* Fix expanding Filter Bar
* use styledMount in tests
* comment
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigForm.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigModal.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigurationLink.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* address PR feedback
* fix package lock
* null guards
* Fix charts resizing
* removing emotion/react and going old school on css animation
* fxing css glitch on scoping disclaimer
* src paths.
* using gridUnits
* nixing unnecessary diamonds
* linting
* fix type errors
* Inverting collapsed icons... closer to data src selector design
* restoring feature flag to proper default setting
* missing condition
* fix tests
* patching test
* just a button
* flaky tests
Co-authored-by: David Aaron Suddjian <aasuddjian@gmail.com>
Co-authored-by: Phillip Kelley-Dotson <pkelleydotson@yahoo.com>
Co-authored-by: Simcha Shats <simcha.shats@nielsen.com>
Co-authored-by: amitNielsen <amit.miran@nielsen.com>
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com>
Co-authored-by: Agata Stawarz-Pastewska <agata.stawarz-pastewska@polidea.com>
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
* wip: filter create modal
* add a feature flag
* automatic changes to package lock
* wip
* filter sidebar and basic state management
* move create button to the sidebar
* first step for edit filterconfig
* partially fix tests...
* edits to types and comments
* respect feature flag on the filter sidebar
* add filterconfig form
* get input state working
* feat: tree filter scopes UI
* fix: turn on flag
* sticky filter bar
* stop preferring default export
* feat: finish filter scoping
* fix: under toggle
* fix: title
* fix: add licence
* refactor: update TS
* fix: fix on reopen modal + validation
* new filter bar menu
* adding, but commenting out, bulk scoping action
* adding some placeholder buttons and styles therefor
* feat: add filter chart
* add relative path to package.json
* update modal
* a little input styling... just getting warmed up
* Revert "feat: add filter chart"
This reverts commit b1302d35b6.
* Revert "add relative path to package.json"
This reverts commit 26a7b40e18.
* https package lock idk
* feat: add filter chart
* add relative path to package.json
* flexboxes all the way down
* dynamically generate groupby and datasource in select control
* big wip
* fix target column name
* no importing nonexistent things
* styles and name editing
* Add hook for retrieval of all filter states
* start with a new filter when clicking add filter
* handle removed filters gracefully
* fix incorrect default filter configuration
* add fields to useAllFilterState
* add redux for filterconfigs
* add support for native_filters
* remove consoles
* improve filter removal
* unbreak infinite loop
* basic sidebar toggling working!
* collapsing and menu working more smoothly
* linting
* make dataset and column inputs work
* save filter values properly
* add dashboard event for filter updates
* guarded
* apply filters properly
* fix schema
* making New Filter button a link
* gridunits ftw
* centering modal
* tis not a button anymore! nixing type.
* plus and collapse buttons instead of "more" menu
* updating full size filter icons
* adding icons to filter collapsing/expanding
* turning off animation, but leaving class-based animation css
* fix linting error
* fix native filters for legacy charts
* updates test
* no individual apply buttons
* fix bugs with filter config modal
* remove redundant code
* switch to the filter with validation errors on submit
* separate form validation
* switch config button from add to edit
* update tests
* oops forgot to add the fancy new useChangeEffect hook
* comments and code reorganization
* rename native_filters to extr_form_data and move hook
* disable native filters in viz selector
* add cascading
* implement new extra form data api
* cleanup
* updates tests
* bump npm packages
* fix bad merge on package.json + lock
* lint
* replace in and not in with uppercase
* lint
* lint
* lint
* lint
* bulk test fix
* Sort select input alphabetically
* Change type for sorting elements
* fix rest of unit tests
* make filter operators all uppercase
* Hide Filter bar when there are no filters
* Show edit button for dashboard owners only
* Add visible argument to filters toggle function to avoid future regression
* Improve Toggle filters bar function
* lint
* fix js lint + set createNewOnOpen
* Handle setting extra form data in Filter Bar instead of Filter Control
* Add Handle apply filter function to Apply button
* Allow applying changes instantly
* Fix types
* remove console logs
* Add Error Boundary component to Filter bar and Filter Config Modal
* fix jest tests
* update native filters tests to pass
* reset cypress baseUrl
* remove unnecessary field
* cleanup: remove unused state fields
* move unrelated types to an appropriate location
* remove misplaced resource fetch error logic
* fix cascadeParentIds error
* fix cypress password
* initial attempt at fixing scope issue
* fix bad merge
* fix lint
* trying out makeApi for saving filters
* remove unused import
* fix test
* silence bad test
* add native-filter feat flag config
* oops fix here
* remove space
* Update superset-frontend/src/common/components/index.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/cypress-base/cypress/integration/dashboard/nativeFilters.test.ts
Co-authored-by: Evan Rusackas <evan@preset.io>
* use styledMount in tests
* comment
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigForm.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigModal.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* Update superset-frontend/src/dashboard/components/nativeFilters/FilterConfigurationLink.tsx
Co-authored-by: Evan Rusackas <evan@preset.io>
* address PR feedback
* fix package lock
* null guards
* Fix charts resizing
* fix cypress tests
* add in nativefilters to form data
* fix lint and test
Co-authored-by: Phillip Kelley-Dotson <pkelleydotson@yahoo.com>
Co-authored-by: Simcha Shats <simcha.shats@nielsen.com>
Co-authored-by: amitNielsen <amit.miran@nielsen.com>
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
Co-authored-by: Evan Rusackas <evan@preset.io>
Co-authored-by: Agata Stawarz-Pastewska <agata.stawarz-pastewska@polidea.com>
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
* hover opens menus
* hover opens menus
* linting, removing some styles I added
* moving useState up (non-conditional)
* just a tweak to prevent a conflict.
* Removes hard coded colors
Removes hard coded colors defined in src/components/styles.ts. The colors defined in this file were used only in the Select component so they were migrated to src/components/Select/styles.tsx and ajusted to conform to the theme colors.
* Use theme context for Select styles
* Includes Theme Provider in tests with Select
* fix (dataset editor) add read-only mode for Source tab
* add feature flag, add unit tests
* rebase and fix comment
* add message for padlock
* move padlock to the bottom of tab
* Changed height of slices in dashboard into 100%-padding, so there is no scroll appearing anymore
* Added scroll to the block on dashboard, when filters are too high
* Applied lint
* Refactor tooltip in ColumnElement
* Refactor tooltip for Button
* Remove redundant import
* Refactor tooltip in SqlEditor
* Increase line height in tooltip so that the text is centered
* Refactor tooltip in Link
* Refactor tooltip in AdhocMetricEditPopoverTitle
* Refactor tooltip from ControlHeader
* Refactor tooltip in DateFilterControl
* Refactor tooltip in VizTypeControl
* fixup! Refactor tooltip in AdhocMetricEditPopoverTitle
* Refactor tooltip in QueryAndSaveBtns
* fixup! Refactor tooltip in DateFilterControl
* Refactor tooltip in CopyToClipboard, fix cursor pointer
* Refactor tooltip in TooltipWrapper
* Refactor tooltip in Field/DatasourceEditor
* Remove redundant import
* Fix typing for placement prop
* Decrease margin in ColumnElement divider
* Change default export to named
* Move SqlLab Tooltip styles to Emotion
* Fix tests
* Refactor DisplayQueryButton into functional component and use react-table
* Refactor EstimateQueryCostButton to functional component
* Use react-table instead of reactable-arc
* Remove reactable-arc dependency
* Add margin for copy button
* Make search case insensitive
* Remove MenuItem from CopyToClipboard
* Refactor DateFilterControl
* fixup! Remove MenuItem from CopyToClipboard
* Remove console log
* Refactor LanguagePicker
* Refactor HeaderActionsDropdown
* Remove dir with Menu component
* Add imports to common/components/index
* Fix after rebase
* toggleSchedule
* cleaning up run query button
* removing unnecessary (subtle!) style overrides
* bulk action classname to button style prop
* nixing btn-primary
* nixing cancelQuery class
* togglesave
* nixing autocomplete class
* linting
* nixing button classes of 'ok' and 'reset'
* unoing diagnostic test
* begrudgingly adding an m-r-3 class... for now
* this is not a class to worry about
* test fixes for limit control
* updating TODO notes, calling it a day for now.
* gah... copy paste error.
* use conditional operator for lookup
* editing dashboard title should update after save
* uncomment test
* fix json metadata save
* json metadata color scheme should overwrite state
* test's functionality is no longer applicable
* add lastModifiedTime to DashboardInfo