Skip to content

Commit

Permalink
feat: added new badge model (amundsen-io#55)
Browse files Browse the repository at this point in the history
* added new badge model

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>

* changed type to category

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>

* bumped version and updated fields

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>

* forgot the patch

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
  • Loading branch information
allisonsuarez committed Aug 25, 2020
1 parent 2c8b494 commit 09897d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions amundsen_common/models/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ class Meta:
register_as_scheme = True


@attr.s(auto_attribs=True, kw_only=True)
class Badge:
badge_name: str = attr.ib()
category: str = attr.ib()
badge_type: str = attr.ib()


class BadgeSchema(AttrsSchema):
class Meta:
target = Badge
register_as_scheme = True


@attr.s(auto_attribs=True, kw_only=True)
class Watermark:
watermark_type: Optional[str] = None
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='amundsen-common',
version='0.3.6',
version='0.4.0',
description='Common code library for Amundsen',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 09897d9

Please sign in to comment.