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

issue-297/Adding programmatic_descriptions to table search export #198

Merged

Conversation

samshuster
Copy link
Contributor

Summary of Changes

This adds programmatic_desciptions to the elastic search documents

Tests

Modified existing tests.

Documentation

None

CheckList

Make sure you have checked all steps below to ensure a timely review.

  • [ x] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"
  • PR includes a summary of changes.
  • PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public functions and the classes in the PR contain docstrings that explain what it does
  • PR passes make test

@codecov-io
Copy link

codecov-io commented Feb 21, 2020

Codecov Report

Merging #198 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #198   +/-   ##
=======================================
  Coverage   74.45%   74.45%           
=======================================
  Files         100      100           
  Lines        4188     4189    +1     
  Branches      387      387           
=======================================
+ Hits         3118     3119    +1     
  Misses        971      971           
  Partials       99       99           
Impacted Files Coverage Δ
...tabuilder/extractor/neo4j_search_data_extractor.py 89.47% <ø> (ø)
databuilder/models/table_elasticsearch_document.py 100.00% <100.00%> (ø)

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 edbb208...e7660f8. Read the comment docs.

@samshuster samshuster force-pushed the issue-297/programmatic_search branch from b20ffcb to 4b0abf6 Compare February 21, 2020 21:19
@samshuster samshuster changed the title Adding programmatic_descriptions to table search export WIP: Adding programmatic_descriptions to table search export Feb 24, 2020
@samshuster
Copy link
Contributor Author

marking as WIP as the merge with the most recent branch broke quite a few things

@samshuster samshuster force-pushed the issue-297/programmatic_search branch from 4b0abf6 to e879ac0 Compare February 25, 2020 16:44
@samshuster samshuster changed the title WIP: Adding programmatic_descriptions to table search export Adding programmatic_descriptions to table search export Feb 25, 2020
@samshuster
Copy link
Contributor Author

ok this successfully includes upstream changes

@samshuster samshuster force-pushed the issue-297/programmatic_search branch from e879ac0 to 547dfd8 Compare March 6, 2020 13:58
@samshuster samshuster changed the title Adding programmatic_descriptions to table search export issue-297/Adding programmatic_descriptions to table search export Mar 6, 2020
@samshuster
Copy link
Contributor Author

here is a change related to amundsen-io/amundsensearchlibrary#83 as part of issue amundsen-io/amundsen#297

@feng-tao

@samshuster samshuster force-pushed the issue-297/programmatic_search branch from 490e9a7 to 495f3be Compare March 17, 2020 16:19
@samshuster
Copy link
Contributor Author

hey @jinhyukchang now that the frontend changes are merged, this one is ready for you to review too. Thanks!

@feng-tao feng-tao requested a review from jinhyukchang March 25, 2020 05:30
@feng-tao
Copy link
Member

@ttannis @jinhyukchang could you two help @samshuster to review the change as you two have followed through the discussion? Thanks. I assume this will be the last piece to get this change in?

@feng-tao feng-tao requested review from csteez, ttannis and ajittripathi and removed request for csteez and ajittripathi March 25, 2020 05:32
@samshuster
Copy link
Contributor Author

thanks @feng-tao these 2 prs (this one and search: amundsen-io/amundsensearchlibrary#83) are actually part of a follow up issue here amundsen-io/amundsen#297 to add it programmatic_descriptions to search as that was not included as part of the original issue.

@feng-tao feng-tao added the keep fresh Disables stalebot from closing an issue label Mar 30, 2020
…matic_search

# Conflicts:
#	databuilder/extractor/neo4j_search_data_extractor.py
#	databuilder/models/table_elasticsearch_document.py
#	databuilder/publisher/elasticsearch_publisher.py
#	tests/unit/extractor/test_neo4j_extractor.py
#	tests/unit/loader/test_file_system_elasticsearch_json_loader.py
#	tests/unit/models/test_table_elasticsearch_document.py
@samshuster
Copy link
Contributor Author

hey @feng-tao I fixed the merge conflicts on this one and it should be good to go again.

Copy link
Contributor

@jinhyukchang jinhyukchang left a comment

Choose a reason for hiding this comment

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

Looks good and left a comment.
Could you also update Elasticsearch mapping? https://github.com/lyft/amundsendatabuilder/blob/master/databuilder/publisher/elasticsearch_constants.py#L10

PabTorre pushed a commit to PabTorre/amundsendatabuilder that referenced this pull request May 29, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2020

Codecov Report

Merging #198 into master will decrease coverage by 0.33%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #198      +/-   ##
==========================================
- Coverage   74.45%   74.11%   -0.34%     
==========================================
  Files         100      100              
  Lines        4188     4200      +12     
  Branches      387      371      -16     
==========================================
- Hits         3118     3113       -5     
- Misses        971      979       +8     
- Partials       99      108       +9     
Impacted Files Coverage Δ
...tabuilder/extractor/neo4j_search_data_extractor.py 89.47% <ø> (ø)
databuilder/publisher/elasticsearch_constants.py 100.00% <ø> (ø)
databuilder/models/table_elasticsearch_document.py 100.00% <100.00%> (ø)
databuilder/loader/file_system_neo4j_csv_loader.py 83.33% <0.00%> (-5.96%) ⬇️
...ilder/transformer/regex_str_replace_transformer.py 92.85% <0.00%> (-2.98%) ⬇️
...abuilder/extractor/snowflake_metadata_extractor.py 93.44% <0.00%> (-1.64%) ⬇️
...tabuilder/extractor/postgres_metadata_extractor.py 93.54% <0.00%> (-1.62%) ⬇️
databuilder/extractor/mssql_metadata_extractor.py 94.02% <0.00%> (-1.50%) ⬇️
databuilder/models/dashboard/dashboard_query.py 84.09% <0.00%> (-1.28%) ⬇️
databuilder/publisher/neo4j_csv_publisher.py 84.23% <0.00%> (-0.99%) ⬇️
... and 2 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 edbb208...9edcd08. Read the comment docs.

@samshuster samshuster requested a review from jinhyukchang June 2, 2020 14:51
@jinhyukchang
Copy link
Contributor

Looks good and left a comment.
Could you also update Elasticsearch mapping? https://github.com/lyft/amundsendatabuilder/blob/master/databuilder/publisher/elasticsearch_constants.py#L10

@samshuster Thanks for the update! Could you update ES mapping as well? (Couldn't find the update) All others look good :)

@samshuster
Copy link
Contributor Author

Looks good and left a comment.
Could you also update Elasticsearch mapping? https://github.com/lyft/amundsendatabuilder/blob/master/databuilder/publisher/elasticsearch_constants.py#L10

@samshuster Thanks for the update! Could you update ES mapping as well? (Couldn't find the update) All others look good :)

ah whoops missed it! thanks. I added it as type text, analyzer simple.

Should schema description also be added to this file?

@jinhyukchang
Copy link
Contributor

Looks good and left a comment.
Could you also update Elasticsearch mapping? https://github.com/lyft/amundsendatabuilder/blob/master/databuilder/publisher/elasticsearch_constants.py#L10

@samshuster Thanks for the update! Could you update ES mapping as well? (Couldn't find the update) All others look good :)

ah whoops missed it! thanks. I added it as type text, analyzer simple.

Should schema description also be added to this file?

Thanks, @samshuster! Yea, IIRC, by default ES auto-detect type but it could make it fail if auto-detect is turned-off.

Copy link
Contributor

@jinhyukchang jinhyukchang 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 update @samshuster !

@jinhyukchang jinhyukchang merged commit 8f18faf into amundsen-io:master Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep fresh Disables stalebot from closing an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants