Skip to content
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

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

vitali-yanushchyk-valor
Copy link
Contributor

del ! error from DeduplicationSet
chg ! admin panel

@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.59%. Comparing base (abf647b) to head (cb5afeb).

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.
📢 Have feedback on the report? Share it here.

def short_name(self, obj):
if obj.name:
return (
(obj.name[:MAX_STR_DISPLAY_LENGTH] + "...")
Copy link
Collaborator

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
Copy link
Collaborator

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:
Copy link
Collaborator

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
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
Copy link
Collaborator

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

Copy link
Contributor Author

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

@domdinicola domdinicola merged commit 614d5cf into develop Sep 24, 2024
15 checks passed
@domdinicola domdinicola deleted the feature/#76_add_fields branch September 24, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants