-
Notifications
You must be signed in to change notification settings - Fork 1
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
add ! name and description to DeduplicationSet #81
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #81 +/- ##
===========================================
+ Coverage 94.41% 94.59% +0.17%
===========================================
Files 67 71 +4
Lines 1414 1461 +47
Branches 161 165 +4
===========================================
+ Hits 1335 1382 +47
Misses 58 58
Partials 21 21 ☔ View full report in Codecov by Sentry. |
def short_name(self, obj): | ||
if obj.name: | ||
return ( | ||
(obj.name[:MAX_STR_DISPLAY_LENGTH] + "...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this truncates
def shorten(text: str, trim: int = MAX_STR_DISPLAY_LENGTH) -> str: | ||
return ( | ||
(text[:trim] + "...") | ||
if text and len(text) > trim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove the trim
else text or EMPTY_PLACEHOLDER | ||
) | ||
|
||
if not self.name and not self.description: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's ignore description
del ! error from DeduplicationSet chg ! admin panel
d01a0a6
to
cb5afeb
Compare
from uuid import uuid4 | ||
|
||
from django.conf import settings | ||
from django.db import models | ||
|
||
from hope_dedup_engine.apps.security.models import ExternalSystem | ||
|
||
REFERENCE_PK_LENGTH = 100 | ||
REFERENCE_PK_LENGTH: Final[int] = 100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this still used? @vitali-yanushchyk-valor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this still used? @vitali-yanushchyk-valor
Yes - it's other part of code. @domdinicola
del ! error from DeduplicationSet
chg ! admin panel