You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2024/03/26 23:33:17 UTC

(superset) branch sip-85 updated (76081d9b6c -> 968b813a1f)

This is an automated email from the ASF dual-hosted git repository.

beto pushed a change to branch sip-85
in repository https://gitbox.apache.org/repos/asf/superset.git


    omit 76081d9b6c Refactor JWT encode/decode
    omit b631e4e86f Make lock generic
    omit 0d27d8c645 Add KV lock for refreshing tokens
    omit 9ed7d79710 Add more tests
    omit 7e1c4e9f74 feat(SIP-85): OAuth2 for databases
     add 718cd64657 fix: Skips Hive tests that are blocking PRs (#27605)
     add e32b1c861f docs: make k8s top item in Installation section (#27540)
     add fcceaf081c fix(db_engine_specs): Update convert_dttm to work correctly with CrateDB (#27567)
     add 6e528426dd feat: Adds option to disable drill to detail per database (#27536)
     add 6f3afab01d fix(docker): error around missing requirements/base.txt (#27608)
     add 72a41c1642 fix: sqlglot SQL Server (#27577)
     add bfe55b9ded fix: Volatile datasource ordering in dashboard export (#19595)
     add d4d8625ab8 fix(utils): fix off-by-one error in how rolling window's min_periods truncates dataframe (#27388)
     add a8c01f4cad build(deps-dev): bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /superset-frontend (#27610)
     add b25dd0c055 fix(sql_parse): Ensure table extraction handles Jinja templating (#27470)
     add 842b0939f6 fix(Dashboard): Add editMode conditional for translate3d fix on charts to allow intended Fullscreen (#27613)
     add a47469f4c5 chore(examples): organizing example chart yaml files into dashboard folders (#27572)
     add ec6bfcbaa0 chore(docs): clarifying doc comments about LOGO_TARGET_PATH (#27579)
     add 8a715cc1b5 feat(bar_chart): Stacked Bar chart with Time comparison in separated stacks (#27589)
     add 5083ca0e81 fix: Persist query params appended to permalink (#27601)
     add cd7972d05b feat: support for KQL in `SQLScript` (#27522)
     add 30b497e758 feat(alerts-reports): adding pdf filetype to email and slack reports (#27497)
     add 0f6e4041c7 fix(AlertReports): clearing custom_width when disabled (#27551)
     add 3f073dcd98 refactor: Migrate CopyToClipboard to typescript (#27309)
     add 20007355d1 fix(dashboard,css): center align 'waiting on database' (#27611)
     add bcfb8f4349 build(deps): bump webpack-dev-middleware from 5.3.1 to 5.3.4 in /docs (#27609)
     add f94f08eddd docs: updates list of countries in country-map-tools.mdx (#27596)
     add 0df7832639 chore: replace "dashboard" -> "report" in chart email report modal (#25540)
     add 22e823b5f9 build(deps-dev): bump webpack from 5.90.1 to 5.91.0 in /docs (#27626)
     add 235670244e test(Migration to RTL): Refactor ActivityTable.test.tsx from Enzyme to RTL (#27422)
     add d87422527b feat(jinja): metric macro (#27582)
     add 33c2d98e66 feat: use the local supersetbot (#27615)
     add a2fd83367e refactor: Migrate CssEditor to typescript (#27498)
     add 4fce940a9c fix(AlertReports): defaulting grace period to undefined (#27552)
     add 560097931d chore(🤖): bump python "markdown==3.6" (#27649)
     add b07c07de05 build(deps): bump express from 4.18.2 to 4.19.2 in /docs (#27652)
     add bd281ee51c build(deps): bump express from 4.18.3 to 4.19.2 in /superset-websocket/utils/client-ws-app (#27651)
     add a19398445b build(deps-dev): bump express from 4.17.3 to 4.19.2 in /superset-frontend (#27653)
     add 4720b4f0e6 chore(🤖): bump python "alembic==1.13.1" (#27650)
     add 6aee58fad6 chore: fix master builds + bump python library "cryptography" (#27641)
     add cf010b63e3 chore(🤖): bump python "sqlalchemy==1.4.52" (#27655)
     add ce210eebde fix(Chart Annotation modal): Table and Superset annotation options will paginate, exceeding previous max limit 100 (#27022)
     add fa3fea9dd8 fix(sqllab): unable to remove table (#27636)
     add ed9e542781 fix(AlertReports): disabling value when not null option is active (#27550)
     add 28cbedb82f fix: Leverage actual database for rendering Jinjarized SQL (#27646)
     add 12921e6ec3 chore(🤖): bump python "flask==2.3.3" (#27657)
     add 3ae74d1f2d fix: Provide more inclusive error handling for saved queries (#27644)
     add bedd9cba55 feat(SIP-85): OAuth2 for databases
     add dece447f19 Add more tests
     add 68df5c1635 Add KV lock for refreshing tokens
     add c8963b781f Make lock generic
     add 968b813a1f Refactor JWT encode/decode

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (76081d9b6c)
            \
             N -- N -- N   refs/heads/sip-85 (968b813a1f)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

No new revisions were added by this update.

Summary of changes:
 .github/actions/setup-backend/action.yml           |    1 +
 .github/actions/setup-supersetbot/action.yml       |   11 +
 .github/supersetbot/package.json                   |    2 +-
 .github/supersetbot/src/cli.js                     |    8 +-
 .github/supersetbot/src/cli.test.js                |   12 +
 .github/workflows/bashlib.sh                       |   14 -
 .github/workflows/docker-release.yml               |    8 +-
 .github/workflows/docker.yml                       |    6 +-
 .github/workflows/issue_creation.yml               |    8 +-
 .github/workflows/superset-e2e.yml                 |    8 -
 .github/workflows/superset-translations.yml        |    7 -
 .github/workflows/supersetbot.yml                  |    8 +-
 Dockerfile                                         |   11 +-
 .../installing-superset-using-docker-compose.mdx   |   21 +-
 docs/docs/installation/running-on-kubernetes.mdx   |   12 +-
 docs/docs/installation/sql-templating.mdx          |   14 +
 docs/docs/intro.mdx                                |    1 -
 docs/docs/miscellaneous/country-map-tools.mdx      |  130 ++-
 docs/package.json                                  |    2 +-
 docs/static/resources/openapi.json                 |    3 +
 docs/yarn.lock                                     |  212 ++--
 requirements/base.txt                              |   21 +-
 superset-frontend/package-lock.json                | 1029 +++++++-------------
 .../src/Timeseries/transformProps.ts               |    1 +
 .../src/Timeseries/transformers.ts                 |    8 +-
 .../plugin-chart-echarts/src/utils/series.ts       |   38 +-
 .../plugin-chart-echarts/test/utils/series.test.ts |   31 +
 superset-frontend/src/SqlLab/actions/sqlLab.js     |    8 +-
 .../src/SqlLab/actions/sqlLab.test.js              |   24 +-
 superset-frontend/src/components/Chart/Chart.jsx   |    2 +
 .../DrillDetail/DrillDetailMenuItems.test.tsx      |   16 +-
 .../Chart/DrillDetail/DrillDetailMenuItems.tsx     |  185 ++--
 .../CopyToClipboard/{index.jsx => index.tsx}       |   54 +-
 .../DatabaseSelector/DatabaseSelector.test.tsx     |    4 +
 .../components/CssEditor/{index.jsx => index.tsx}  |   58 +-
 .../src/dashboard/components/dnd/DragDroppable.jsx |    5 +-
 superset-frontend/src/dashboard/types.ts           |    2 +
 .../AnnotationLayerControl/AnnotationLayer.jsx     |  350 ++++---
 .../AnnotationLayer.test.tsx                       |  125 ++-
 .../src/features/alerts/AlertReportModal.test.tsx  |    5 +-
 .../src/features/alerts/AlertReportModal.tsx       |   47 +-
 .../databases/DatabaseModal/ExtraOptions.tsx       |   16 +
 superset-frontend/src/features/databases/types.ts  |    1 +
 .../AddDataset/LeftPanel/LeftPanel.test.tsx        |    4 +
 .../src/features/home/ActivityTable.test.tsx       |  137 +--
 .../src/features/home/ChartTable.test.tsx          |   12 +-
 .../src/features/reports/ReportModal/index.tsx     |    4 +-
 superset-frontend/src/types/Database.ts            |    1 +
 .../utils/client-ws-app/package-lock.json          |   30 +-
 .../utils/client-ws-app/package.json               |    2 +-
 superset/commands/report/exceptions.py             |    4 +
 superset/commands/report/execute.py                |   23 +-
 superset/commands/sql_lab/execute.py               |    4 +-
 superset/config.py                                 |    6 +-
 superset/dashboards/schemas.py                     |    1 +
 superset/databases/api.py                          |    1 +
 superset/databases/schemas.py                      |    5 +-
 superset/db_engine_specs/crate.py                  |    2 +-
 .../Vaccine_Candidates_per_Approach__Stage.yaml    |    0
 .../Vaccine_Candidates_per_Country.yaml            |    0
 .../Vaccine_Candidates_per_Country_261.yaml        |    0
 .../Vaccine_Candidates_per_Country__Stage.yaml     |    0
 .../Vaccine_Candidates_per_Country__Stage_749.yaml |    0
 .../Vaccine_Candidates_per_Phase.yaml              |    0
 .../Vaccine_Candidates_per_Phase_587.yaml          |    0
 .../Age_distribution_of_respondents.yaml           |    0
 .../Are_you_an_ethnic_minority_in_your_city.yaml   |    0
 .../Breakdown_of_Developer_Type.yaml               |    0
 .../{ => FCC New Coder Survey}/Commute_Time.yaml   |    0
 .../Country_of_Citizenship.yaml                    |    0
 ...elopers_Is_this_your_first_development_job.yaml |    0
 .../Degrees_vs_Income.yaml                         |    0
 .../Ethnic_Minority__Gender.yaml                   |    0
 .../First_Time_Developer.yaml                      |    0
 .../First_Time_Developer__Commute_Time.yaml        |    0
 .../charts/{ => FCC New Coder Survey}/Gender.yaml  |    0
 .../Highest_degree_held.yaml                       |    0
 .../How_do_you_prefer_to_work.yaml                 |    0
 .../How_much_do_you_expect_to_earn_0_-_100k.yaml   |    0
 .../Last_Year_Income_Distribution.yaml             |    0
 .../Location_of_Current_Developers.yaml            |    0
 .../Number_of_Aspiring_Developers.yaml             |    0
 .../Preferred_Employment_Style.yaml                |    0
 .../Relocation_ability.yaml                        |    0
 .../Top_15_Languages_Spoken_at_Home.yaml           |    0
 .../Work_Location_Preference.yaml                  |    0
 .../Cross_Channel_Relationship.yaml                |    0
 .../Cross_Channel_Relationship_heatmap_2786.yaml   |    0
 .../{ => Slack Dashboard}/Members_per_Channel.yaml |    0
 .../Messages_per_Channel.yaml                      |    0
 .../New_Members_per_Month.yaml                     |    0
 .../{ => Slack Dashboard}/Number_of_Members.yaml   |    0
 .../{ => Slack Dashboard}/Top_Timezones.yaml       |    0
 .../{ => Slack Dashboard}/Weekly_Messages.yaml     |    0
 .../{ => Slack Dashboard}/Weekly_Threads.yaml      |    0
 .../{ => Unicode Test}/Unicode_Cloud.test.yaml     |    0
 .../Number_of_Deals_for_each_Combination.yaml      |    0
 .../Overall_Sales_By_Product_Line.yaml             |    0
 .../Proportion_of_Revenue_by_Product_Line.yaml     |    0
 .../{ => Vehicle Sales}/Quarterly_Sales.yaml       |    0
 .../Quarterly_Sales_By_Product_Line.yaml           |    0
 .../{ => Vehicle Sales}/Revenue_by_Deal_Size.yaml  |    0
 .../Seasonality_of_Revenue_per_Product_Line.yaml   |    0
 .../{ => Vehicle Sales}/Total_Items_Sold.yaml      |    0
 .../Total_Items_Sold_By_Product_Line.yaml          |    0
 .../charts/{ => Vehicle Sales}/Total_Revenue.yaml  |    0
 .../charts/{ => Video Game Sales}/Games.yaml       |    0
 .../{ => Video Game Sales}/Games_per_Genre.yaml    |    0
 .../Games_per_Genre_over_time.yaml                 |    0
 .../Most_Dominant_Platforms.yaml                   |    0
 ...mes_That_Hit_100k_in_Sales_By_Release_Year.yaml |    0
 .../Popular_Genres_Across_Platforms.yaml           |    0
 .../Publishers_With_Most_Titles.yaml               |    0
 .../Rise__Fall_of_Video_Game_Consoles.yaml         |    0
 ...op_10_Games_Proportion_of_Sales_in_Markets.yaml |    0
 .../Total_Sales_per_Market_Grouped_by_Genre.yaml   |    0
 superset/jinja_context.py                          |   80 +-
 superset/models/core.py                            |    8 +-
 superset/models/dashboard.py                       |    5 +-
 superset/models/sql_lab.py                         |   41 +-
 superset/reports/models.py                         |    7 +-
 superset/reports/notifications/base.py             |    1 +
 superset/reports/notifications/email.py            |   12 +-
 superset/reports/notifications/slack.py            |   15 +-
 superset/reports/schemas.py                        |    4 +-
 superset/security/manager.py                       |   11 +-
 superset/sql_parse.py                              |  427 +++++++-
 superset/sqllab/query_render.py                    |    3 +-
 superset/sqllab/utils.py                           |    1 +
 superset/utils/core.py                             |   10 +
 superset/utils/pandas_postprocessing/rolling.py    |    2 +-
 superset/{app.py => utils/pdf.py}                  |   45 +-
 superset/views/core.py                             |    2 +
 superset/views/database/mixins.py                  |    4 +-
 tests/integration_tests/celery_tests.py            |   32 +-
 tests/integration_tests/charts/data/api_tests.py   |   21 +-
 tests/integration_tests/core_tests.py              |   38 +
 tests/integration_tests/databases/api_tests.py     |    1 +
 tests/integration_tests/reports/commands_tests.py  |    6 +-
 tests/integration_tests/reports/utils.py           |    2 +-
 tests/integration_tests/sqla_models_tests.py       |   55 ++
 tests/unit_tests/db_engine_specs/test_crate.py     |    2 +-
 tests/unit_tests/jinja_context_test.py             |  672 ++++++++++++-
 tests/unit_tests/models/sql_lab_test.py            |   59 ++
 .../pandas_postprocessing/test_rolling.py          |    4 +-
 tests/unit_tests/sql_parse_tests.py                |  199 +++-
 tests/unit_tests/test_jinja_context.py             |  305 ------
 147 files changed, 3089 insertions(+), 1750 deletions(-)
 create mode 100644 .github/actions/setup-supersetbot/action.yml
 create mode 100644 .github/supersetbot/src/cli.test.js
 rename superset-frontend/src/components/CopyToClipboard/{index.jsx => index.tsx} (74%)
 rename superset-frontend/src/dashboard/components/CssEditor/{index.jsx => index.tsx} (79%)
 rename superset/examples/configs/charts/{ => COVID Vaccines}/Vaccine_Candidates_per_Approach__Stage.yaml (100%)
 rename superset/examples/configs/charts/{ => COVID Vaccines}/Vaccine_Candidates_per_Country.yaml (100%)
 rename superset/examples/configs/charts/{ => COVID Vaccines}/Vaccine_Candidates_per_Country_261.yaml (100%)
 rename superset/examples/configs/charts/{ => COVID Vaccines}/Vaccine_Candidates_per_Country__Stage.yaml (100%)
 rename superset/examples/configs/charts/{ => COVID Vaccines}/Vaccine_Candidates_per_Country__Stage_749.yaml (100%)
 rename superset/examples/configs/charts/{ => COVID Vaccines}/Vaccine_Candidates_per_Phase.yaml (100%)
 rename superset/examples/configs/charts/{ => COVID Vaccines}/Vaccine_Candidates_per_Phase_587.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Age_distribution_of_respondents.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Are_you_an_ethnic_minority_in_your_city.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Breakdown_of_Developer_Type.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Commute_Time.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Country_of_Citizenship.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Current_Developers_Is_this_your_first_development_job.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Degrees_vs_Income.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Ethnic_Minority__Gender.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/First_Time_Developer.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/First_Time_Developer__Commute_Time.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Gender.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Highest_degree_held.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/How_do_you_prefer_to_work.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/How_much_do_you_expect_to_earn_0_-_100k.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Last_Year_Income_Distribution.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Location_of_Current_Developers.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Number_of_Aspiring_Developers.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Preferred_Employment_Style.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Relocation_ability.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Top_15_Languages_Spoken_at_Home.yaml (100%)
 rename superset/examples/configs/charts/{ => FCC New Coder Survey}/Work_Location_Preference.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/Cross_Channel_Relationship.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/Cross_Channel_Relationship_heatmap_2786.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/Members_per_Channel.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/Messages_per_Channel.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/New_Members_per_Month.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/Number_of_Members.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/Top_Timezones.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/Weekly_Messages.yaml (100%)
 rename superset/examples/configs/charts/{ => Slack Dashboard}/Weekly_Threads.yaml (100%)
 rename superset/examples/configs/charts/{ => Unicode Test}/Unicode_Cloud.test.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Number_of_Deals_for_each_Combination.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Overall_Sales_By_Product_Line.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Proportion_of_Revenue_by_Product_Line.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Quarterly_Sales.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Quarterly_Sales_By_Product_Line.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Revenue_by_Deal_Size.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Seasonality_of_Revenue_per_Product_Line.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Total_Items_Sold.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Total_Items_Sold_By_Product_Line.yaml (100%)
 rename superset/examples/configs/charts/{ => Vehicle Sales}/Total_Revenue.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Games.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Games_per_Genre.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Games_per_Genre_over_time.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Most_Dominant_Platforms.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Number_of_Games_That_Hit_100k_in_Sales_By_Release_Year.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Popular_Genres_Across_Platforms.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Publishers_With_Most_Titles.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Rise__Fall_of_Video_Game_Consoles.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Top_10_Games_Proportion_of_Sales_in_Markets.yaml (100%)
 rename superset/examples/configs/charts/{ => Video Game Sales}/Total_Sales_per_Market_Grouped_by_Genre.yaml (100%)
 copy superset/{app.py => utils/pdf.py} (53%)
 create mode 100644 tests/unit_tests/models/sql_lab_test.py
 delete mode 100644 tests/unit_tests/test_jinja_context.py