Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Kitsu: Use query function from client #3496

Merged
merged 23 commits into from
Jul 21, 2022

Conversation

iLLiCiTiT
Copy link
Member

Brief description

Use query functions instead of database queries in kitsu/zou sync.

Description

Goal is to replace all mongo specific queries in code with functions that can use different source of data. At this moment we're replacing just receiving of data. In some cases the logic was slightly modified as direct queries by custom subkeys in data are not allowed at this moment. Places where it could make potential issues (even before this PR) were commented.

Additional information

Made sure that dbcon won't change type from AvalonMongoDB to pymongo.Collection during sync which could cause some issues especially with these changes.

Testing notes:

  1. Kitsu integration should work as did
  2. Sync from and to OP should work as expected

@ynbot
Copy link
Contributor

ynbot commented Jul 12, 2022

Task linked: OP-3404 Use query functions in kitsu

@iLLiCiTiT iLLiCiTiT self-assigned this Jul 12, 2022
@iLLiCiTiT iLLiCiTiT added module: Kitsu Kitsu integration type: refactor Structural changes not affecting functionality labels Jul 12, 2022
@iLLiCiTiT iLLiCiTiT requested a review from Tilix4 July 12, 2022 15:03
openpype/modules/kitsu/utils/sync_service.py Show resolved Hide resolved
openpype/modules/kitsu/utils/sync_service.py Outdated Show resolved Hide resolved
openpype/modules/kitsu/utils/update_op_with_zou.py Outdated Show resolved Hide resolved
openpype/modules/kitsu/utils/update_op_with_zou.py Outdated Show resolved Hide resolved
openpype/modules/kitsu/utils/update_op_with_zou.py Outdated Show resolved Hide resolved
Co-authored-by: Félix David <felixg.david@gmail.com>
@iLLiCiTiT iLLiCiTiT requested a review from Tilix4 July 20, 2022 16:30
@iLLiCiTiT iLLiCiTiT merged commit 86ca8ba into develop Jul 21, 2022
@iLLiCiTiT iLLiCiTiT deleted the feature/OP-3404_Use-query-functions-in-kitsu branch July 21, 2022 07:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
module: Kitsu Kitsu integration type: refactor Structural changes not affecting functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants