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 CONTENT_ITEM relation #7445

Merged
merged 2 commits into from
May 30, 2023
Merged

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented May 30, 2023

This PR splits two relations: TITLE and CONTENT_ITEM as they will be used for different purposes.

Also, it fixes inconsistency with statement size limitations.

@drew2a drew2a changed the base branch from main to release/7.13 May 30, 2023 13:48
@drew2a drew2a force-pushed the fix/content_item branch from 5c28b42 to b81b173 Compare May 30, 2023 14:02
@drew2a drew2a force-pushed the fix/content_item branch 2 times, most recently from 4ab2c6f to eeeb659 Compare May 30, 2023 14:54
@@ -1,2 +1,2 @@
MIN_RESOURCE_LENGTH = 3
MIN_RESOURCE_LENGTH = 2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is necessary for the language statements transfer (nl, ru, en)

@@ -65,24 +65,21 @@ async def update_knowledge_entries(self, request):
return error_response

# Validate whether the size of the tag is within the allowed range and filter out duplicate tags.
tags = set()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This set() is unnecessary here because statements anyway will be converted to sets later.

@drew2a drew2a marked this pull request as ready for review May 30, 2023 15:01
@drew2a drew2a requested review from a team and kozlovsky and removed request for a team May 30, 2023 15:01
@drew2a drew2a force-pushed the fix/content_item branch from eeeb659 to 706d6ca Compare May 30, 2023 21:00
@drew2a drew2a merged commit ea1b325 into Tribler:release/7.13 May 30, 2023
@drew2a drew2a deleted the fix/content_item branch May 30, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants