Skip to content

[DOP-23195] update ts#252

Closed
marashka wants to merge 1 commit intodevelopfrom
DOP-23195
Closed

[DOP-23195] update ts#252
marashka wants to merge 1 commit intodevelopfrom
DOP-23195

Conversation

@marashka
Copy link
Copy Markdown
Contributor

@marashka marashka commented Aug 11, 2025

Change Summary

Related issue number

Checklist

  • Commit message and PR title is comprehensive
  • Keep the change as small as possible
  • Unit and integration tests for the changes exist
  • Tests pass on CI and coverage does not decrease
  • Documentation reflects the changes where applicable
  • docs/changelog/next_release/<pull request or issue id>.<change type>.rst file added describing change
    (see CONTRIBUTING.rst for details.)
  • My PR is ready to review.

@marashka marashka closed this Aug 11, 2025
@marashka marashka deleted the DOP-23195 branch August 11, 2025 07:27
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 11, 2025

Codecov Report

❌ Patch coverage is 96.29630% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.39%. Comparing base (a64aa8e) to head (a960399).

Files with missing lines Patch % Lines
syncmaster/db/repositories/search.py 93.02% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #252      +/-   ##
===========================================
+ Coverage    92.35%   92.39%   +0.04%     
===========================================
  Files          192      194       +2     
  Lines         4693     4761      +68     
  Branches       351      353       +2     
===========================================
+ Hits          4334     4399      +65     
- Misses         272      275       +3     
  Partials        87       87              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

COALESCE(translate(json_extract_path_text(target_params, 'directory_path'), './', ' '), '')
to_tsvector('russian', coalesce(name, ''))

|| to_tsvector('simple', coalesce(name, ''))
Copy link
Copy Markdown
Member

@dolfinus dolfinus Aug 11, 2025

Choose a reason for hiding this comment

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

Let's add translate(name, punctiation, spaces) to all vectors, in case if someone uses hostname in connection/transfer name

Comment thread syncmaster/db/migrations/versions/2025-08-10_0012_update_ts.py
"search_vector",
postgresql.TSVECTOR(),
sa.Computed(
"\n to_tsvector('russian', coalesce(name, ''))\n || to_tsvector('simple', coalesce(name, '')) \n || to_tsvector('simple', coalesce(data->>'host', ''))\n || to_tsvector(\n 'simple',\n translate(\n coalesce(data->>'host', ''),\n './-_:\\', ' '\n )\n )\n ",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's use here the same formatting as in models, as \n is hard to read

),
)
op.create_index("idx_transfer_search_vector", "transfer", ["search_vector"], unique=False, postgresql_using="gin")
op.add_column(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is index for queue missing?

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.

2 participants