Commit graph

2243 commits

Author SHA1 Message Date
Alexey Bogomolov
249bda0c80
Clockify: refresh and fix the integration (#4607)
* WIP clockify fix

* WIP disable wp validation, make sync work

* fix launcher start timer action

* fix finish time entry

* fix start and stop timers, cleanup, add TODO

* show task name and type in description, add TODO

* change rate limiter constants

* black formatting

* remove task type from data

* cleanup debug prints

* fix hound comments

* remove unused import

* move ids to property, fix user validation

* remove f-strings, rollback description parsing

* attempt to fix ftrack actions

* check if sync action got some projects

* get api data on process

* remove unused variable

* remove ratelimiter dependency

* add response validation

* a bit cleanup

* Update openpype/modules/clockify/clockify_module.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* Update openpype/modules/clockify/clockify_api.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* Update openpype/modules/clockify/clockify_api.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* Update openpype/modules/clockify/clockify_api.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* Update openpype/modules/clockify/ftrack/server/action_clockify_sync_server.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* replace dunders with underscores

* remove excessive variables

* update set_user_id

* continue check_running if no timer found

* bring back come py2 compatibility

* cleanup

* get values directly from clockapi

* hound

* get task type to fill the tag field correctly

* add logger, catch some json errors

* remove check running timer, add project_id verification module

* add current task_id check

* remove package entries

* make method private, fix typo

* get task_type for the idle-restarted timer

* remove trailing whitespace

* show correct idle countdown values

* finx indentation

* Update openpype/modules/clockify/clockify_api.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* Update openpype/modules/clockify/clockify_module.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

* revert lock file

* remove unused constants and redundant code

* import clockify_api inside the method

* do not query asset docs double time, add comments

* add permissions check fail Exception

* rename clockapi to clockify_api

* formatting

* removed unused variables

---------

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <jakub.trllo@gmail.com>
2023-03-17 11:41:32 +01:00
Jakub Trllo
289efe25f8
Ftrack: Ftrack additional families filtering (#4633)
* make sure all families are used for additional filtering

* rely on instance and context data instead of legacy_io

* formatting changes

* fix variable values after change of condition

* use 'families' variable for adding 'ftrack' family

* Removed duplicated log

* change variable name
2023-03-17 10:35:53 +01:00
mre7a
0cb3585d91
Resolve missing OPENPYPE_MONGO in deadline global job preload (#4484)
* replace SpawnProcess with subprocess

* clean up

* replace spawn process with run process

---------

Co-authored-by: Seyedmohammadreza Hashemizadeh <shashemizadeh@ws101.prs.vfx.int>
2023-03-15 12:55:50 +01:00
Petr Kalis
a7f0d57638
SiteSync: host dirmap is not working properly (#4563)
- only editable keys are returned from Site Sync module to Local Settings

Cleaner approach even if LS UI is going away in Ayon.

- use remote_site only if is local_drive provider

- remove unwanted import

- cache mapping, update logging

Mapping was called multiple times for Nuke.
Logging was too verbose.
2023-03-13 10:32:19 +01:00
Jacob Danell
acbfb5985b Fixed task itteration
From the last PR (https://github.com/ynput/OpenPype/pull/4425) a comment-commit last second messed up and resultet in two lines being the same, crashing the script.
This fixes that.
2023-03-07 19:34:12 +01:00
Roy Nieterau
99fd03d2d3 Merge remote-tracking branch 'upstream/develop' into fusion-new-publisher 2023-03-06 16:16:00 +01:00
Jacob Danell
67bc287321 Fix hound comments 2023-03-03 16:49:11 +01:00
Jacob Danell
8fc6978ea2 Formatted with Black 2023-03-03 16:49:11 +01:00
Ember Light
c50678bcb8 Update openpype/modules/kitsu/utils/update_op_with_zou.py
Co-authored-by: Félix David <felixg.david@gmail.com>
2023-03-03 16:49:11 +01:00
Jacob Danell
7176be9f92 Log msg for new_task now work for both shot and assets 2023-03-03 16:49:11 +01:00
Jacob Danell
804cdcafd6 Store the gazu asset data in OPs DB as sync_service does
This isn't the most optimal way to do it but it makes sure the data is consistent through out the code until we can revision sync_service to only use the ID from the dict.
2023-03-03 16:49:11 +01:00
Jacob Danell
966ba0166e Fixed delete_task msg creation to work with assets and episodes 2023-03-03 16:49:11 +01:00
Jacob Danell
95e1f95bc1 Moved all ep_dict code into one function 2023-03-03 16:49:11 +01:00
Ember Light
93eb9fce86 Update openpype/modules/kitsu/utils/sync_service.py
Co-authored-by: Félix David <felixg.david@gmail.com>
2023-03-03 16:49:11 +01:00
Jacob Danell
5a9ea0d130 Changed back from dict to doc for var names 2023-03-03 16:49:11 +01:00
Jacob Danell
247778575f Project creation logs happens outside of write_project_to_op() function 2023-03-03 16:49:11 +01:00
Jacob Danell
0beec8c3a7 Fixed hound's comments 2023-03-03 16:49:11 +01:00
Jacob Danell
0d981a6129 Fixed hound's comments 2023-03-03 16:49:11 +01:00
Jacob Danell
8bf970e8b9 fixed hound's comments 2023-03-03 16:49:11 +01:00
Jacob Danell
962d0783b0 Fixed fetching of kitsu_task + moved data checks to the top of loop 2023-03-03 16:49:11 +01:00
Jacob Danell
7965b91daf Moved kitsu_project out of context loop 2023-03-03 16:49:11 +01:00
Jacob Danell
d153e6c224 Split up the difference in name and type Assets/Shots generate
Before it was only working for shots. Now it also works for Assets.
I'm ding an elif as Kitsu now also have tasks for sequences, edits and other things.
Will try and add those in at a later stage.
2023-03-03 16:49:11 +01:00
Jacob Danell
d9ac1ee952 Cleaned up log.info() message creation 2023-03-03 16:49:11 +01:00
Jacob Danell
bcea2c70a2 Cleaned up project deletion code 2023-03-03 16:49:11 +01:00
Jacob Danell
13a4c7201e change task to task_id 2023-03-03 16:49:11 +01:00
Jacob Danell
0f76d3a44e Cleaned up the fetching of the entity_id
Also changed the name kitsu_id to entity_id and kitsu_entity to just entity as that's what it is.
2023-03-03 16:49:11 +01:00
Jacob Danell
f9137bdb04 Added docstring and changed doc to dict in var-names 2023-03-03 16:49:11 +01:00
Jacob Danell
3fc2180e51 Fixed all quotes types so they now match 2023-03-03 16:49:11 +01:00
Jacob Danell
4bcef44068 Fixed hound's max-length note 2023-03-03 16:49:11 +01:00
Jacob Danell
915d110404 Set frame_out to frame_in if no duration exists
fix for https://github.com/ynput/OpenPype/pull/4425#discussion_r1108593566
2023-03-03 16:49:11 +01:00
Jacob Danell
07ac3d8d4d If no task in instance, continue
fix fore https://github.com/ynput/OpenPype/pull/4425#discussion_r1108582918
2023-03-03 16:49:11 +01:00
Jacob Danell
c4f1a1f452 Fixed hound's "line too long" comments 2023-03-03 16:49:11 +01:00
Jacob Danell
ef698b4afa Fixed 1 extra frame at frameEnd
Same as #4466
2023-03-03 16:49:11 +01:00
Jacob Danell
1045ee0c1e Check if asset_doc exist before processing it 2023-03-03 16:49:11 +01:00
Jacob Danell
7e6c47967f Get episode_id using get() as ep_id might not always exist 2023-03-03 16:49:11 +01:00
Jacob Danell
793af30caa Changed AssertionError to ValueError 2023-03-03 16:49:11 +01:00
Jacob Danell
290709705e Changed logging from f-string to .format() 2023-03-03 16:49:11 +01:00
Jacob Danell
8652dab478 Fixed 'instance' code 2023-03-03 16:49:11 +01:00
Jacob Danell
4bc67437b6 Fixed line too long and too many '#' for comments 2023-03-03 16:49:11 +01:00
Jacob Danell
c44c5c9ddb Get asset and task names from instance only 2023-03-03 16:49:11 +01:00
Jacob Danell
47caa76030 Updated Kitsu Sync module to fully work with all events
Manually tried all events, added logging for events and cleaned up the code some.
2023-03-03 16:49:11 +01:00
Jacob Danell
bb61d43c27 Shortened length of line 141 2023-03-03 16:49:11 +01:00
Jacob Danell
dc2b519fd5 Fixed hound-bots comments 2023-03-03 16:49:11 +01:00
Jacob Danell
72270005ed Update Kitsu plugin to work without assetEntry 2023-03-03 16:49:11 +01:00
Jacob Danell
27c8a1f360 Fixed so correct review file gets uploaded to Kitsu 2023-03-03 16:49:11 +01:00
Jacob Danell
785825751a Add render to families to make sure a task exists to process 2023-03-03 16:49:11 +01:00
Jacob Danell
5dee2b8ff6 Add missing attributes to each asset
Without them, Tray Publisher errors out.
2023-03-03 16:49:11 +01:00
Jacob Danell
3b4cdb13db Add parents key to assets and shots
Without this you can't open the project in Tray Publisher
2023-03-03 16:49:11 +01:00
Jacob Danell
a005d10829 Add Resolution and Pixel Aspect to each item
Without this info eg. Fusion would throw an error and stop working.
2023-03-03 16:49:11 +01:00
Jacob Danell
9795e7c910 Populate items with correct data from Kitsu or project defaults
If data doesn't exist in Kitsu, use Projects default data.
2023-03-03 16:49:11 +01:00