-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* This adds "programmatic descriptions" into the frontend. Known issues: - is_editable property not respecected Added NonEditable Section Now no longer need to sort in index page. Uses the display title for title now. Added currently untested code in the api for programmatic display programmatic descriptions no longer needs to be returned by metadata service for backwards compatibility Tests added for the programmatic display component Caught a bug where display_title was not being set if configuration wasn't set. change source_id to source Make code more robust Rebasing with the upstream changes that have been made. adding documentation removing the comment in the config.py class Fixing upstream merge conflicts. Update docs/flask_config.md Co-Authored-By: jornh <[email protected]> Removing non editable section! readOnly is now an optional Property Added in a programmatic header and <hr> per design doc adding test for button rendering Adding in convertText function Changing SENTENCE_CASE -> Upper Upper. Need to confirm that this is ok, otherwise can create a new case Reverting SentenceCase Creating PascalCase Removing custom title Moving convert text to EditableSection. Applying by default * removing pascal case * fixing doc * Update amundsen_application/api/utils/metadata_utils.py Co-Authored-By: Tamika Tannis <[email protected]> * Update amundsen_application/api/utils/metadata_utils.py Co-Authored-By: Tamika Tannis <[email protected]> * cleaning up * Fixing unit test to have static method * changing to edit-button * Moving tests to test_metadata_utils * Fixing lint * updating the sample image Co-authored-by: Tamika Tannis <[email protected]>
- Loading branch information
1 parent
c762a8f
commit ef49b88
Showing
16 changed files
with
299 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,11 @@ def setUp(self) -> None: | |
'schema': 'test_schema', | ||
'name': 'test_table', | ||
'description': 'This is a test', | ||
'programmatic_descriptions': [], | ||
'programmatic_descriptions': [ | ||
{'source': 'c_1', 'text': 'description c'}, | ||
{'source': 'a_1', 'text': 'description a'}, | ||
{'source': 'b_1', 'text': 'description b'} | ||
], | ||
'tags': [], | ||
'table_readers': [ | ||
{'user': {'email': '[email protected]', 'first_name': None, 'last_name': None}, 'read_count': 100} | ||
|
@@ -75,7 +79,7 @@ def setUp(self) -> None: | |
'name': 'test_name', | ||
'id': 'test_id', | ||
'description': 'This is a test' | ||
}, | ||
} | ||
} | ||
self.expected_parsed_metadata = { | ||
'badges': [], | ||
|
@@ -85,7 +89,6 @@ def setUp(self) -> None: | |
'name': 'test_table', | ||
'key': 'test_db://test_cluster.test_schema/test_table', | ||
'description': 'This is a test', | ||
'programmatic_descriptions': [], | ||
'tags': [], | ||
'table_readers': [ | ||
{ | ||
|
@@ -119,6 +122,20 @@ def setUp(self) -> None: | |
'is_editable': True | ||
} | ||
], | ||
"programmatic_descriptions": [ | ||
{ | ||
'source': 'a', | ||
'text': 'description a' | ||
}, | ||
{ | ||
'source': 'b', | ||
'text': 'description b' | ||
}, | ||
{ | ||
'source': 'c', | ||
'text': 'description c' | ||
}, | ||
], | ||
'table_writer': { | ||
'application_url': 'https://test-test.test.test', | ||
'name': 'test_name', | ||
|
@@ -131,7 +148,24 @@ def setUp(self) -> None: | |
], | ||
'source': '/source', | ||
'is_editable': True, | ||
'last_updated_timestamp': None, | ||
'last_updated_timestamp': None | ||
} | ||
|
||
self.expected_programmatic_descriptions_with_config = { | ||
"programmatic_descriptions": [ | ||
{ | ||
'source': 'a', | ||
'text': 'description a' | ||
}, | ||
{ | ||
'source': 'b', | ||
'text': 'description b' | ||
}, | ||
{ | ||
'source': 'c', | ||
'text': 'description c' | ||
}, | ||
] | ||
} | ||
self.mock_tags = { | ||
'tag_usages': [ | ||
|
Oops, something went wrong.