Skip to content
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

feat: Adding FORCE_SSL as feature flag in config.py #14934

Merged
merged 3 commits into from
Jun 2, 2021

Conversation

AAfghahi
Copy link
Member

@AAfghahi AAfghahi commented Jun 1, 2021

SUMMARY

Adding a feature flag for the new dynamic form being used for creating and editing databases.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TESTING INSTRUCTIONS

go to config.py and look for FORCE_SSL

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@AAfghahi AAfghahi force-pushed the ch15953_showSSLToggle branch from 2b445f3 to 9494edf Compare June 1, 2021 19:11
@AAfghahi AAfghahi changed the title starting feat: Adding FORCE_SSL as feature flag in config.py Jun 1, 2021
@hughhhh hughhhh self-requested a review June 1, 2021 19:18
@codecov
Copy link

codecov bot commented Jun 1, 2021

Codecov Report

Merging #14934 (af6014b) into master (66282c3) will decrease coverage by 0.23%.
The diff coverage is n/a.

❗ Current head af6014b differs from pull request most recent head 6f17e95. Consider uploading reports for the commit 6f17e95 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14934      +/-   ##
==========================================
- Coverage   77.62%   77.39%   -0.24%     
==========================================
  Files         963      963              
  Lines       49316    49334      +18     
  Branches     6228     6228              
==========================================
- Hits        38284    38180     -104     
- Misses      10833    10955     +122     
  Partials      199      199              
Flag Coverage Δ
hive ?
mysql 81.63% <ø> (-0.01%) ⬇️
postgres 81.66% <ø> (-0.01%) ⬇️
presto ?
python 81.74% <ø> (-0.46%) ⬇️
sqlite 81.27% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/config.py 91.09% <ø> (ø)
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 70.32% <0.00%> (-17.08%) ⬇️
superset/db_engine_specs/presto.py 83.36% <0.00%> (-6.95%) ⬇️
superset/views/database/mixins.py 81.03% <0.00%> (-1.73%) ⬇️
superset/connectors/sqla/models.py 88.12% <0.00%> (-1.64%) ⬇️
superset/views/utils.py 83.27% <0.00%> (-1.05%) ⬇️
superset/db_engine_specs/base.py 87.90% <0.00%> (-0.41%) ⬇️
superset/models/core.py 89.73% <0.00%> (-0.27%) ⬇️
superset/utils/core.py 88.91% <0.00%> (-0.13%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66282c3...6f17e95. Read the comment docs.

@@ -383,6 +383,7 @@ def _try_json_readsha( # pylint: disable=unused-argument
# for report with type 'report' still send with email and slack message with
# screenshot and link
"ALERTS_ATTACH_REPORTS": True,
"FORCE_SSL": False,
Copy link
Member

Choose a reason for hiding this comment

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

Can you add documentation about what this flag does?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah! where should I add the documentation?

Copy link
Member

Choose a reason for hiding this comment

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

inline, similarly to the other feature flags would be great, thanks!

@AAfghahi AAfghahi force-pushed the ch15953_showSSLToggle branch from eb7d011 to 9d0aeee Compare June 2, 2021 15:07
Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

Thanks for the documentation! I think naming this FORCE_DATABASE_CONNECTIONS_SSL might be clearer since FORCE_SSL might imply that connecting to the webserver is forced with SSL, but up to you

@AAfghahi AAfghahi force-pushed the ch15953_showSSLToggle branch from 9d0aeee to 42ccdc7 Compare June 2, 2021 16:32
@AAfghahi
Copy link
Member Author

AAfghahi commented Jun 2, 2021

Thanks for the documentation! I think naming this FORCE_DATABASE_CONNECTIONS_SSL might be clearer since FORCE_SSL might imply that connecting to the webserver is forced with SSL, but up to you

I like that, I am going to change it here and also in superset-ui

superset/config.py Outdated Show resolved Hide resolved
@AAfghahi AAfghahi force-pushed the ch15953_showSSLToggle branch from 643a92b to af6014b Compare June 2, 2021 16:46
Co-authored-by: Hugh A. Miles II <[email protected]>
@AAfghahi AAfghahi force-pushed the ch15953_showSSLToggle branch from af6014b to 6f17e95 Compare June 2, 2021 17:18
@hughhhh hughhhh merged commit bf1358b into apache:master Jun 2, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Jun 6, 2021
* upstream/master: (68 commits)
  fix typos (apache#14950)
  docs: fix custom oauth config (apache#14997)
  fix: apply template_params on external_metadata (apache#14996)
  fix: toggle fullscreen on the dashboard (apache#14979)
  feat(native-filters): add markers and number formatter + simple tests (apache#14981)
  fix(native-filters): Fix "undefined" error after editing a filter (apache#14984)
  fix(native-filters): remove implied fetch predicate (apache#14982)
  fix(native-filters): update cascaded filter state on change (apache#14980)
  fix(filter box): replace freeform where clause with ilike (apache#14900)
  refactor: Convert TableElement.jsx component from class to functional with hooks (apache#14830)
  fix: renamed sqllab filters to _filters (apache#14971)
  feat(native-filters): apply cascading without instant filtering (apache#14966)
  chore: bump superset-ui to 0.17.53 (apache#14968)
  fix(native-filters): cascading filters not rendering in tab (apache#14964)
  feat: add type_generic and is_dttm to table metadata (apache#14863)
  additional safeguard (apache#14953)
  feat: Adding FORCE_SSL as feature flag in config.py (apache#14934)
  feat(dashboard/native-filters): Hide filters out of scope of current tab (apache#14933)
  fix: time parser truncate to first day of year/month (apache#14945)
  fix: is_temporal should overwrite is_dttm (apache#14894)
  ...
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 2024
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/XS 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants