villebro commented on code in PR #22328:
URL: https://github.com/apache/superset/pull/22328#discussion_r1042055397
##########
superset/models/slice.py:
##########
@@ -234,10 +234,7 @@ def data(self) -> Dict[str, Any]:
@property
def digest(self) -> str:
- """
- Returns a MD5 HEX digest that makes this dashboard unique
- """
- return md5_sha_from_str(self.params or "")
+ return get_chart_digest(self)
Review Comment:
I thought it might make sense to contain these in a util that can be unit
tested without instantiating a full chart/dashboard object (see the tests in
`tests/unit_tests/thumbnails/test_digest.py`)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]