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

[AIRFLOW-3761] Decommission User & Chart models & Update doc accordingly #4577

Merged

Conversation

XD-DENG
Copy link
Member

@XD-DENG XD-DENG commented Jan 24, 2019

Jira

Description

Background

In master branch, we have already decommissioned the Flask-Admin UI.

What have been done

  • In model definitions, User and Chart are only applicable for the "old" UI based on Flask-Admin. Hence we should decommission these two models as well.

  • Alembic updated accordingly

  • Related doc are updated in this commit as well (like profiling section is no longer applicable).

@XD-DENG
Copy link
Member Author

XD-DENG commented Jan 24, 2019

Hi @ashb @kaxil @feng-tao PTAL.

This PR is to follow-up on the decommission of "old" UI which was based on Flask-Admin (#4339).

@codecov-io
Copy link

codecov-io commented Jan 24, 2019

Codecov Report

Merging #4577 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4577      +/-   ##
==========================================
+ Coverage   74.16%   74.17%   +<.01%     
==========================================
  Files         421      421              
  Lines       27773    27733      -40     
==========================================
- Hits        20598    20570      -28     
+ Misses       7175     7163      -12
Impacted Files Coverage Δ
airflow/utils/db.py 38.46% <ø> (+2.74%) ⬆️
airflow/models/__init__.py 92.57% <100%> (+0.07%) ⬆️

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 2f70347...5227446. Read the comment docs.

@bolkedebruin
Copy link
Contributor

This is not the right way to do it in alembic. You should create a New migration script that drops the tables and fields and re-adds them on a downgrade. The way it is structured now does not properly work with upgrades and downgrades.

@XD-DENG
Copy link
Member Author

XD-DENG commented Jan 24, 2019

Thanks @bolkedebruin .

New to Alembic. Let me check & commit again later.

Other than Alembic part, any other comment?

Thanks!

@XD-DENG XD-DENG force-pushed the origin/decom_models_users_and_charts branch 3 times, most recently from f3d5e36 to a216889 Compare January 24, 2019 18:35
@XD-DENG XD-DENG changed the title [AIRFLOW-3761] Decommission User & Chart models & Update doc accordingly [WIP][AIRFLOW-3761] Decommission User & Chart models & Update doc accordingly Jan 24, 2019
@XD-DENG XD-DENG force-pushed the origin/decom_models_users_and_charts branch from a216889 to 5ac3b52 Compare January 24, 2019 19:12
@XD-DENG XD-DENG changed the title [WIP][AIRFLOW-3761] Decommission User & Chart models & Update doc accordingly [AIRFLOW-3761] Decommission User & Chart models & Update doc accordingly Jan 24, 2019
@XD-DENG
Copy link
Member Author

XD-DENG commented Jan 25, 2019

Addressed the comment on Alembic. PTAL @bolkedebruin @ashb

Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

LGTM. @bolkedebruin any other comments?

@XD-DENG
Copy link
Member Author

XD-DENG commented Jan 25, 2019

There is a conflict for docs/profiling.rst now, due to #4585 merged.

docs/profiling.rst should be removed since profiling feature is already deprecated in the RBAC UI.

@XD-DENG
Copy link
Member Author

XD-DENG commented Jan 27, 2019

A gentle ping, @ashb @bolkedebruin .

In addition, the conflict I mentioned above was resolved by b6f207f

@feng-tao
Copy link
Member

@XD-DENG , could you rebase your change with master? I think currently your change shouldn't show docs/profiling.rst delete as it is removed in b6f207f

The Alembic script LGTM

In master branch, we have already decommissioned the Flask-Admin UI.

In model definitions, User and Chart are only applicable for the
"old" UI based on Flask-Admin.
Hence we should decommission these two models as well.

Related doc are updated in this commit as well.
@XD-DENG XD-DENG force-pushed the origin/decom_models_users_and_charts branch from 5ac3b52 to 5227446 Compare January 27, 2019 07:04
@XD-DENG
Copy link
Member Author

XD-DENG commented Jan 27, 2019

Rebased as suggested @feng-tao . Thanks.

@feng-tao feng-tao merged commit 59cf865 into apache:master Jan 27, 2019
@XD-DENG XD-DENG deleted the origin/decom_models_users_and_charts branch January 27, 2019 14:19
andyhuynh3 pushed a commit to andyhuynh3/airflow that referenced this pull request Jan 29, 2019
…gly (apache#4577)

In master branch, we have already decommissioned the Flask-Admin UI.

In model definitions, User and Chart are only applicable for the
"old" UI based on Flask-Admin.
Hence we should decommission these two models as well.

Related doc are updated in this commit as well.
wmorris75 pushed a commit to modmed/incubator-airflow that referenced this pull request Jul 29, 2019
…gly (apache#4577)

In master branch, we have already decommissioned the Flask-Admin UI.

In model definitions, User and Chart are only applicable for the
"old" UI based on Flask-Admin.
Hence we should decommission these two models as well.

Related doc are updated in this commit as well.
@zhongjiajie
Copy link
Member

I think we forgot to cherry-pick this patch to 1.10-test @potiuk @kaxil , and the stable doc was misleading users.
ref #8035

@XD-DENG
Copy link
Member Author

XD-DENG commented Apr 1, 2020

Hi @zhongjiajie, there are still two sets of web UI supported in 1.10.*, so this patch should only be in master branch for now. Correct me if I’m wrong.

@zhongjiajie
Copy link
Member

@XD-DENG You’r right, I find it still use rbac = False in

@XD-DENG
Copy link
Member Author

XD-DENG commented Apr 1, 2020

@zhongjiajie but you're right that the documentation is somehow out-dated, especially the Security section. Something like LDAP integration becomes misleading & confusing.

I'm preparing a PR to address this issue and further housekeep out-dated code & doc. Will raise the PR soon this week. Will tag you then.

And big congrats again for your nomination as committer! Welcome aboard!

@zhongjiajie
Copy link
Member

Yeah, I think we should still change the doc, cause user should change the rbac = True and old doc can not work

@zhongjiajie
Copy link
Member

Thanks Xiao Dong

@kaxil
Copy link
Member

kaxil commented Apr 1, 2020

Good to see you again @XD-DENG . Looking forward for the PR

@potiuk
Copy link
Member

potiuk commented Apr 1, 2020

Indeed good to see you back @XD-DENG !

@XD-DENG
Copy link
Member Author

XD-DENG commented Apr 1, 2020

Thanks @kaxil and @potiuk ;-)

XD-DENG added a commit to XD-DENG/airflow that referenced this pull request Apr 2, 2020
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.
XD-DENG added a commit that referenced this pull request Apr 3, 2020
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 15, 2021
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2021
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 23, 2021
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 25, 2021
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Mar 9, 2022
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 3, 2022
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 6, 2022
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jul 8, 2022
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Aug 26, 2022
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 3, 2022
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
aglipska pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 7, 2022
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Dec 7, 2022
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jan 27, 2023
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
kosteev pushed a commit to kosteev/composer-airflow-test-copybara that referenced this pull request Sep 11, 2024
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
kosteev pushed a commit to kosteev/composer-airflow-test-copybara that referenced this pull request Sep 12, 2024
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 16, 2024
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 6, 2024
- All authentication backends in `airflow/contrib/auth`
  are base on the `user` model which has already been
  removed earlier (apache/airflow#4577 (comment))
- Security related documentation is out-dated,
  especially the LDAP and OAuth integration sections.
  It still directs user to the configuration of "old" web UI
  which has already been removed in master branch.

GitOrigin-RevId: 3a7b741ab9ed0937571c77a10b5d244f14eaf7db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants