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

Bug Report: Programmatic descriptions not displayed for sample data #701

Closed
M0kY opened this issue Sep 16, 2020 · 11 comments
Closed

Bug Report: Programmatic descriptions not displayed for sample data #701

M0kY opened this issue Sep 16, 2020 · 11 comments
Labels
status:needs_reproducing For bugs that need to be reproduced in order to get fixed type:bug An unexpected problem or unintended behavior

Comments

@M0kY
Copy link

M0kY commented Sep 16, 2020

Since version 2.2.0 of amundsenfrontendlibrary programmatic descriptions do not work as per the documentation when PROGRAMMATIC_DISPLAY is left at None. After loading sample data using sample_data_loader.py no programmatic description is displayed for test_schema.test_table1.

Expected Behavior

From the documentation at https://www.amundsen.io/amundsen/frontend/docs/flask_config/

If PROGRAMMATIC_DISPLAY is left at None all added fields will show up in the order in which they were returned from the backend. Here is a screenshot of what it would look like in the bottom left:

programmatic_descriptions.png

After starting amundsen using docker-amundsen-local.yml and loading sample data I'm expecting to see the programmatic descriptions for the sample data as in the screenshot:

Screenshot_1

Current Behavior

Screenshot_2

Steps to Reproduce

  1. Run amundsen using docker-amundsen-local.yml
  2. Load sample data using sample_data_loader.py
  3. Navigate to the test_schema.test_table1 page
  4. No programmatic description is displayed

Context

Changing PROGRAMMATIC_DISPLAY from None to something else like for example:

PROGRAMMATIC_DISPLAY = {
    'test': {"display_order": 0}
}

gives the expected behavior.

Your Environment

@feng-tao
Copy link
Member

please take a look at amundsen-io/amundsendatabuilder#367 which @madison-ookla did a fix on the sample data.

@feng-tao feng-tao added Project: Databuilder status:needs_reproducing For bugs that need to be reproduced in order to get fixed type:bug An unexpected problem or unintended behavior labels Sep 16, 2020
@M0kY
Copy link
Author

M0kY commented Sep 16, 2020

After updating amundsendatabuilder to the latest version the formatting of the programmatic description was fixed but the underlying issue still stands.

@madison-ookla
Copy link
Contributor

@M0kY do you mind trying to run docker-amundsen.yml and confirming that the issue persists there as well?

@M0kY
Copy link
Author

M0kY commented Sep 16, 2020

@madison-ookla docker-amundsen.yml works as expected but it uses an older version (amundsen-frontend:2.1.1) while I only noticed the issue from version 2.2.0 onward. When I upgrade the frontend version inside docker-amundsen.yml the issue occurs again.

@madison-ookla
Copy link
Contributor

Got it! Thanks for clarifying 🙂

@feng-tao
Copy link
Member

cc @ttannis hey Tamika, I know we add some configs for programmatic descriptions, do you know anything specific related to this issue?

@ttannis
Copy link
Contributor

ttannis commented Sep 16, 2020

I see. We have to update the logic in https://github.com/amundsen-io/amundsenfrontendlibrary/blob/master/amundsen_application/api/utils/metadata_utils.py#L152 to account for when prog_display_config is None, and assign other = prog_descriptions in that case.

@feng-tao
Copy link
Member

@ttannis oh i see, thanks for the info, amundsen-io/amundsenfrontendlibrary#671

@feng-tao
Copy link
Member

@M0kY the fix is merged to master, could you try it with master and see if the issue is fixed? thanks.

@M0kY
Copy link
Author

M0kY commented Sep 20, 2020

@feng-tao Can confirm it is now working as expected. Thanks for the quick fix.

@feng-tao
Copy link
Member

thanks @M0kY for confirming!

dorianj pushed a commit to dorianj/amundsen that referenced this issue Apr 25, 2021
Signed-off-by: Marcos Iglesias Valle <golodhros@gmail.com>
feng-tao pushed a commit that referenced this issue May 7, 2021
Signed-off-by: Marcos Iglesias Valle <golodhros@gmail.com>
zacr pushed a commit to SaltIO/amundsen that referenced this issue May 13, 2022
Signed-off-by: Marcos Iglesias Valle <golodhros@gmail.com>
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this issue Jun 30, 2022
Signed-off-by: Marcos Iglesias Valle <golodhros@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs_reproducing For bugs that need to be reproduced in order to get fixed type:bug An unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants