-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add metadata items to tables and databases (CaDeT) (#1040)
* Add metadata items to tables and databases * Add test for parse_updated * Amend tests for metadata field changes * Removed test entites * Remove Provider, add Enum for Audience * Add last modified to summary card as time since update * Use strings for Enum types in CustomEntityProperties * Update lib/datahub-client/data_platform_catalogue/client/graphql_helpers.py * Capitalise refresh schedule
- Loading branch information
Showing
13 changed files
with
178 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from home.templatetags.markdown import register | ||
|
||
|
||
@register.filter | ||
def format_timesince(timesince: str) -> str: | ||
""" | ||
Timesince returns a string like "3 days, 4 hours". This filter will return a string like "3 days". | ||
""" | ||
return timesince.split(",")[0] |
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
Oops, something went wrong.