Skip to content

support static_index.html docs#999

Merged
tatiana merged 12 commits into
astronomer:mainfrom
dwreeves:support-static-index
Jun 10, 2024
Merged

support static_index.html docs#999
tatiana merged 12 commits into
astronomer:mainfrom
dwreeves:support-static-index

Conversation

@dwreeves
Copy link
Copy Markdown
Collaborator

Description

  • Support static_index.html for dbt docs.
  • Refactor remote filesystem access functions in anticipation of moving them out of cosmos/plugins/__init__.py. Refactoring is designed to make them behave a little more predictably, and to make them look a little more like Airflow 2.8+'s ObjectStoragePath class. Of course, this is far, far from complete.

Related Issue(s)

Breaking Change?

No breaking changes as far as the high level API is concerned.

Checklist

  • I have made corresponding changes to the documentation (if required)
  • I have added tests that prove my fix is effective or that my feature works

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 27, 2024
@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2024

Deploy Preview for sunny-pastelito-5ecb04 canceled.

Name Link
🔨 Latest commit 9eb3b82
🔍 Latest deploy log https://app.netlify.com/sites/sunny-pastelito-5ecb04/deploys/6665c7e53358e1000826b11b

@dosubot dosubot Bot added area:docs Relating to documentation, changes, fixes, improvement dbt:docs Primarily related to dbt docs command or functionality labels May 27, 2024
@tatiana
Copy link
Copy Markdown
Collaborator

tatiana commented May 29, 2024

@dwreeves, thanks for these improvements!
I just noticed some tests are failing. Would you like us to review the code before the tests pass, or is this PR still in draft?

@dwreeves
Copy link
Copy Markdown
Collaborator Author

Sorry, for a long time I had issues with pre-commit due to a strange error. So for a while I'd never had pre-commit turned on for the repo.

I only recently fixed the issue and just forgot to pre-commit install. 😅 That is what is failing.

@dwreeves dwreeves force-pushed the support-static-index branch from 86f017d to bb35621 Compare June 2, 2024 23:46
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jun 2, 2024
@dwreeves dwreeves force-pushed the support-static-index branch from bb35621 to ce93392 Compare June 2, 2024 23:58
@dwreeves
Copy link
Copy Markdown
Collaborator Author

dwreeves commented Jun 3, 2024

I added packaging to dependencies because it's explicitly used in one of the Cosmos modules.

Even though apache-airflow also depends on it, it's best practice to explicitly define what is depended on.

@dwreeves
Copy link
Copy Markdown
Collaborator Author

dwreeves commented Jun 3, 2024

@tatiana Tests are stuck for some odd reason, but otherwise passing, so this is ready for review.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.81%. Comparing base (bbe4e86) to head (9eb3b82).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #999      +/-   ##
==========================================
+ Coverage   95.75%   95.81%   +0.06%     
==========================================
  Files          62       62              
  Lines        2965     3009      +44     
==========================================
+ Hits         2839     2883      +44     
  Misses        126      126              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Collaborator

@tatiana tatiana left a comment

Choose a reason for hiding this comment

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

@dwreeves I think we're super close to get this change merged, do you by any chance have bandwith to improve a bit the test coverage? Codecov gave some feedback.
We'll release this in 1.5

@tatiana tatiana added this to the Cosmos 1.5.0 milestone Jun 6, 2024
@dwreeves
Copy link
Copy Markdown
Collaborator Author

dwreeves commented Jun 6, 2024

@tatiana When are you intending on releasing 1.5? I can try to get this done over the weekend but not until then.

@tatiana
Copy link
Copy Markdown
Collaborator

tatiana commented Jun 6, 2024

@tatiana When are you intending on releasing 1.5? I can try to get this done over the weekend but not until then.

The current plan is the 24 June 2024, and we can have alphas/release candidates with the change beforehand:
https://github.com/astronomer/astronomer-cosmos/milestone/19

Copy link
Copy Markdown
Collaborator

@tatiana tatiana left a comment

Choose a reason for hiding this comment

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

Thanks, @dwreeves , it looks great!

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 10, 2024
@tatiana tatiana merged commit 74c28e2 into astronomer:main Jun 10, 2024
@pankajkoti pankajkoti mentioned this pull request Jun 27, 2024
tatiana pushed a commit that referenced this pull request Jun 27, 2024
New Features

* Speed up ``LoadMode.DBT_LS`` by caching dbt ls output in Airflow
Variable by @tatiana in #1014
* Support to cache profiles created via ``ProfileMapping`` by
@pankajastro in #1046
* Support for running dbt tasks in AWS EKS in #944 by @VolkerSchiewe
* Add Clickhouse profile mapping by @roadan and @pankajastro in #353 and
#1016
* Add node config to TaskInstance Context by @linchun3 in #1044

Bug fixes

* Support partial parsing when cache is disabled by @tatiana in #1070
* Fix disk permission error in restricted env by @pankajastro in #1051
* Add CSP header to iframe contents by @dwreeves in #1055
* Stop attaching log adaptors to root logger to reduce logging costs by
@glebkrapivin in #1047

Enhancements

* Support ``static_index.html`` docs by @dwreeves in #999
* Support deep linking dbt docs via Airflow UI by @dwreeves in #1038
* Add ability to specify host/port for Snowflake connection by @whummer
in #1063

Docs

* Fix rendering for env ``enable_cache_dbt_ls`` by @pankajastro in #1069

Others

* Update documentation for DbtDocs generator by @arjunanan6 in #1043
* Use uv in CI by @dwreeves in #1013
* Cache hatch folder in the CI by @tatiana in #1056
* Change example DAGs to use ``example_conn`` as opposed to
``airflow_db`` by @tatiana in #1054
* Mark plugin integration tests as integration by @tatiana in #1057
* Ensure compliance with linting rule D300 by using triple quotes for
docstrings by @pankajastro in #1049
* Pre-commit hook updates in #1039, #1050, #1064
* Remove duplicates in changelog by @jedcunningham in #1068
arojasb3 pushed a commit to arojasb3/astronomer-cosmos that referenced this pull request Jul 14, 2024
- Support `static_index.html` for dbt docs.
- Refactor remote filesystem access functions in anticipation of moving
them out of `cosmos/plugins/__init__.py`. Refactoring is designed to
make them behave a little more predictably and to make them look a
little more like Airflow 2.8+'s `ObjectStoragePath` class. Of course,
this is far, far from complete.

# Related Issue(s)

- Main: astronomer#986
- Related: astronomer#927
arojasb3 pushed a commit to arojasb3/astronomer-cosmos that referenced this pull request Jul 14, 2024
New Features

* Speed up ``LoadMode.DBT_LS`` by caching dbt ls output in Airflow
Variable by @tatiana in astronomer#1014
* Support to cache profiles created via ``ProfileMapping`` by
@pankajastro in astronomer#1046
* Support for running dbt tasks in AWS EKS in astronomer#944 by @VolkerSchiewe
* Add Clickhouse profile mapping by @roadan and @pankajastro in astronomer#353 and
astronomer#1016
* Add node config to TaskInstance Context by @linchun3 in astronomer#1044

Bug fixes

* Support partial parsing when cache is disabled by @tatiana in astronomer#1070
* Fix disk permission error in restricted env by @pankajastro in astronomer#1051
* Add CSP header to iframe contents by @dwreeves in astronomer#1055
* Stop attaching log adaptors to root logger to reduce logging costs by
@glebkrapivin in astronomer#1047

Enhancements

* Support ``static_index.html`` docs by @dwreeves in astronomer#999
* Support deep linking dbt docs via Airflow UI by @dwreeves in astronomer#1038
* Add ability to specify host/port for Snowflake connection by @whummer
in astronomer#1063

Docs

* Fix rendering for env ``enable_cache_dbt_ls`` by @pankajastro in astronomer#1069

Others

* Update documentation for DbtDocs generator by @arjunanan6 in astronomer#1043
* Use uv in CI by @dwreeves in astronomer#1013
* Cache hatch folder in the CI by @tatiana in astronomer#1056
* Change example DAGs to use ``example_conn`` as opposed to
``airflow_db`` by @tatiana in astronomer#1054
* Mark plugin integration tests as integration by @tatiana in astronomer#1057
* Ensure compliance with linting rule D300 by using triple quotes for
docstrings by @pankajastro in astronomer#1049
* Pre-commit hook updates in astronomer#1039, astronomer#1050, astronomer#1064
* Remove duplicates in changelog by @jedcunningham in astronomer#1068
tatiana pushed a commit that referenced this pull request Jul 17, 2024
New Features

* Speed up ``LoadMode.DBT_LS`` by caching dbt ls output in Airflow
Variable by @tatiana in #1014
* Support to cache profiles created via ``ProfileMapping`` by
@pankajastro in #1046
* Support for running dbt tasks in AWS EKS in #944 by @VolkerSchiewe
* Add Clickhouse profile mapping by @roadan and @pankajastro in #353 and
#1016
* Add node config to TaskInstance Context by @linchun3 in #1044

Bug fixes

* Support partial parsing when cache is disabled by @tatiana in #1070
* Fix disk permission error in restricted env by @pankajastro in #1051
* Add CSP header to iframe contents by @dwreeves in #1055
* Stop attaching log adaptors to root logger to reduce logging costs by
@glebkrapivin in #1047

Enhancements

* Support ``static_index.html`` docs by @dwreeves in #999
* Support deep linking dbt docs via Airflow UI by @dwreeves in #1038
* Add ability to specify host/port for Snowflake connection by @whummer
in #1063

Docs

* Fix rendering for env ``enable_cache_dbt_ls`` by @pankajastro in #1069

Others

* Update documentation for DbtDocs generator by @arjunanan6 in #1043
* Use uv in CI by @dwreeves in #1013
* Cache hatch folder in the CI by @tatiana in #1056
* Change example DAGs to use ``example_conn`` as opposed to
``airflow_db`` by @tatiana in #1054
* Mark plugin integration tests as integration by @tatiana in #1057
* Ensure compliance with linting rule D300 by using triple quotes for
docstrings by @pankajastro in #1049
* Pre-commit hook updates in #1039, #1050, #1064
* Remove duplicates in changelog by @jedcunningham in #1068

(cherry picked from commit 18d2c90)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Relating to documentation, changes, fixes, improvement dbt:docs Primarily related to dbt docs command or functionality lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants