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

Migrate knowledge.db to tribler.db #7606

Merged
merged 5 commits into from
Sep 28, 2023

Add migration

8f23ed1
Select commit
Loading
Failed to load commit list.
Merged

Migrate knowledge.db to tribler.db #7606

Add migration
8f23ed1
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Codacy Production / Codacy Static Code Analysis required action Sep 27, 2023 in 0s

4 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 4
           

Complexity increasing per file
==============================
- src/tribler/core/upgrade/knowledge_to_triblerdb/tests/test_knowledge_to_tribler_db_migration.py  6
- src/tribler/core/upgrade/tags_to_knowledge/tests/test_tags_to_knowledge_migration.py  9
- src/tribler/core/upgrade/knowledge_to_triblerdb/migration.py  3
- src/tribler/core/upgrade/tags_to_knowledge/previous_dbs/knowledge_db.py  6
- src/tribler/core/components/database/db/tests/test_tribler_database_base.py  4
- src/tribler/core/components/database/db/tests/test_tribler_database.py  9
- src/tribler/core/upgrade/tags_to_knowledge/previous_dbs/tags_db.py  3
- src/tribler/core/components/database/db/tribler_database.py  6
- src/tribler/core/components/database/database_component.py  2
         

Complexity decreasing per file
==============================
+ src/tribler/core/components/knowledge/knowledge_component.py  -1
         

Clones added
============
- src/tribler/core/upgrade/tags_to_knowledge/previous_dbs/knowledge_db.py  6
- src/tribler/core/upgrade/tags_to_knowledge/previous_dbs/tags_db.py  4
- src/tribler/core/components/database/db/tribler_database.py  6
- src/tribler/core/components/knowledge/tests/test_knowledge_component.py  2
- src/tribler/core/components/popularity/tests/test_popularity_component.py  2
- src/tribler/core/components/torrent_checker/tests/test_torrent_checker_component.py  2
- src/tribler/core/components/metadata_store/tests/test_metadata_store_component.py  2
         

See the complete overview on Codacy

Annotations

Check warning on line 364 in src/tribler/core/components/database/db/tribler_database.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/tribler/core/components/database/db/tribler_database.py#L364

Unused argument 'subjects_type'

Check warning on line 365 in src/tribler/core/components/database/db/tribler_database.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/tribler/core/components/database/db/tribler_database.py#L365

Unused argument 'predicate'

Check warning on line 376 in src/tribler/core/components/database/db/tribler_database.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/tribler/core/components/database/db/tribler_database.py#L376

Unused variable 'obj_name'

Check warning on line 390 in src/tribler/core/components/database/db/tribler_database.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/tribler/core/components/database/db/tribler_database.py#L390

Possible SQL injection vector through string-based query construction.