Commit graph

24 commits

Author SHA1 Message Date
Petr Kalis
fec104de8e
Fix: Locally copied version of last published workfile is not incremented (#4722)
* Fix: Locally copied version of last published workfile is not incremented

* fix subset first match

* correct anatomy name

* Fix typo and linting

* keep source filepath for further path conformation

* fetch also input dependencies of workfile

* required changes

* lint

* fix case only one subset

* Enhancement:  copy last workfile as reusable methods (#6)

* Enhancement: copy last published workfile as reusable methods (WiP)

* Added get_host_extensions method, added subset_id and las_version_doc access, added optional arguments to get_last_published_workfile

* Plugged in the new methods + minor changes

* Added docstrings, last workfile optional argument, and removed unused code

* Using new implementation to get local workfile path. Warning: It adds an extra dot to the extension which I need to fix

* Refactoring and fixed double dots

* Added match subset_id and get representation method, plus clan up

* Removed unused vars

* Fixed some rebasing errors

* delinted unchanged code and renamed get_representation into get_representation_with_task

* This time it's really delinted, I hope...

* Update openpype/modules/sync_server/sync_server.py

reprenation isn't the right spelling (:

Co-authored-by: Félix David <felixg.david@gmail.com>

* Changes based on reviews

* Fixed non imperative docstring and missing space

* Fixed another non imperative docstring

* Update openpype/modules/sync_server/sync_server.py

Fixed typo

Co-authored-by: Félix David <felixg.david@gmail.com>

Co-authored-by: Hayley GUILLOT <hayleyguillot@outlook.com>
Co-authored-by: Félix David <felixg.david@gmail.com>

* Fix: syntax error

* fix single subset case

* Restore sync server enabled test in hook

* Python2 syntax

* renaming and missing key case handling

* Fix local workfile overwritten on update in some cases (#7)

* Fix: Local workfile overwrite when local version number is higher than published workfile version number (WiP)

* Changed regex search, clean up

* Readded mistakenly removed newline

* lint

* remove anticipated functions for cleaner PR

* remove funcs from entities.py

* change to get_last_workfile_with_version

* clean

* Update openpype/modules/sync_server/sync_server.py

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

* removed get_last_published_workfile_path

* moved hook to sync server module

* fix lint

* Refactor - download only if not present

* Refactor - change to list instead of set

* Refactor - removing unnecessary code

last_published_workfile_path must exists or we wouldn't get there. Use version only from that.

* Refactor - removing unnecessary imports

* Added check for max fail tries

* Refactor - cleaned up how to get last workfile

* Updated docstrings

* Remove unused imports

Co-authored-by: Félix David <felixg.david@gmail.com>

* OP-5466 - run this on more DCC

* Updated documentation

* Fix - handle hero versions

Skip hero versions, look only for versioned published to get max version id.

* Hound

* Refactor - simplified download_last_published_workfile

Logic should be in pre hook

* Skip if no profile found

* Removed unwanted import

* Use collected project_doc

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

* Use cached project_settings

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

---------

Co-authored-by: Félix David <felixg.david@gmail.com>
Co-authored-by: Sharkitty <81646000+Sharkitty@users.noreply.github.com>
Co-authored-by: Hayley GUILLOT <hayleyguillot@outlook.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Ježek <jakubjezek001@gmail.com>
2023-05-02 18:49:02 +02:00
Petr Kalis
3c21535093 removed unnecessary try catch 2023-02-27 11:38:56 +01:00
Félix David
30e8bc5bb8 refactor is_representation_paused to check into the database 2023-01-13 14:57:44 +01:00
Petr Kalis
d3f09c075b OP-4490 - Hound 2023-01-04 15:39:13 +01:00
Petr Kalis
8527554c2d OP-4490 - fixed unnecessary checks
Configured sites were checked all the time even if they weren't used.
Now it checks only sites that are set for project.
2023-01-04 15:07:36 +01:00
Félix David
3ad8e95ca4 add priority to add_site 2022-11-08 18:57:02 +01:00
Felix David
82be7ce8d0 Change to REST API using web server 2022-11-03 18:33:54 +01:00
Felix David
c49017e671 lint 2022-11-01 10:50:30 +01:00
Félix David
ac2f268575 Feature: Auto download last published workfile as first workfile 2022-10-31 13:28:50 +01:00
Jakub Trllo
3cdfc5b350 use class log attribues instead of global loggers 2022-08-24 15:54:07 +02:00
Jakub Trllo
882e00baef use Logger instead of PypeLogger 2022-08-24 15:52:47 +02:00
Petr Kalis
26c4a0f8ca OP-3405 - Hound 2022-08-02 16:15:17 +02:00
Petr Kalis
89bd23856c OP-3405 - refactor - updated methods signature
Renamed collection to project_name as when we are leaving MongoDB, collection doesnt make much sense.
2022-08-02 12:25:51 +02:00
Petr Kalis
3c285d859a Fix - fixes
Do creation of settings only in Thread as it is expensive operation.
2022-06-03 12:34:21 +02:00
Petr Kalis
81a5169680 Fix - faster loop logic 2022-06-03 11:08:52 +02:00
Jakub Trllo
efee466761 moved sync server module one hierarchy level higher 2022-02-22 15:05:04 +01:00
iLLiCiTiT
224273c1f1 moved sync server module 2021-07-28 14:13:16 +02:00
Petr Kalis
adc1f570b1 SyncServer - fix broken provider access 2021-05-12 19:24:19 +02:00
Petr Kalis
0b47e921af SyncServer - fixes for overrode settings 2021-05-12 12:06:10 +02:00
Petr Kalis
49e44f0d70 SyncServer - check configured sites more effectively 2021-05-11 14:43:26 +02:00
Petr Kalis
e4b51604ad SyncServer - sync_project_settings now contains all projects, must skip disabled explicitly 2021-05-11 12:12:39 +02:00
Milan Kolar
a8ac7cd538 merge develop into main 2021-05-04 17:07:32 +02:00
Petr Kalis
399f9bd059 SyncServer adding functionality to Loader
In one big commit as PR wasnt merged before rebranding and merge exploded
2021-04-06 12:27:49 +02:00
Milan Kolar
8432e94615 rename folder 2021-04-01 18:54:46 +02:00
Renamed from pype/modules/sync_server/sync_server.py (Browse further)