Commit graph

177 commits

Author SHA1 Message Date
Petr Kalis
84e89aa422
Webpublisher: better encode list values for click (#5546)
* Fix - list of arguments must be provided differently

Targets could be a list, original implementation pushed it as a comma separated, it must be separated by space for click to understand.

* Fix - split by space

targets might come as a tuple from command line

* Fix - better providing of arguments

* Revert "Fix - split by space"

This reverts commit 23884ac1c544e2d8003d82423a0da8b83821d426.
2023-08-31 11:39:07 +02:00
Toke Jepsen
7973354fef
Option to start versioning from 0 (#5262)
* Initial version, replaced all hard 1 with 0

* ftrack v0 works only with version cast as str

* workfile tools can set 0

* fixed hound stuff

* fix for auto versioning not working anymore

* fix for not incrementing version

* hound fix

* Settings determined versioning start

* Code cosmetics

* Better failsafe for collecting settings.

* Initial profiles commit

* Hound

* Working profiles

* Update openpype/hosts/webpublisher/plugins/publish/collect_published_files.py

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

* Update openpype/hosts/webpublisher/plugins/publish/collect_published_files.py

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

* Update openpype/plugins/publish/collect_anatomy_instance_data.py

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

* Update openpype/settings/entities/schemas/projects_schema/schema_project_global.json

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

* Illicitit feedback

* Update openpype/pipeline/context_tools.py

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

* Fix collect_published_files

* Working version

* Hound

* Update openpype/pipeline/version_start.py

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

* Update openpype/pipeline/version_start.py

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

* Update openpype/tools/push_to_project/control_integrate.py

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

* Update openpype/hosts/photoshop/plugins/publish/collect_published_version.py

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

* Update openpype/hosts/photoshop/plugins/publish/collect_published_version.py

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

* Update openpype/hosts/webpublisher/plugins/publish/collect_published_files.py

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

* Update openpype/hosts/webpublisher/plugins/publish/collect_published_files.py

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

* Update openpype/hosts/webpublisher/plugins/publish/collect_published_files.py

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

* Update openpype/pipeline/workfile/path_resolving.py

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

* Update openpype/settings/__init__.py

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

* Hound

* Illicitit feedback

* Replace host.name

* Update openpype/plugins/publish/collect_anatomy_instance_data.py

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

* reuse 'task_name' and 'task_type'

* skip hero integration when source version in 0

---------

Co-authored-by: maxpareschi <max.pareschi@gmail.com>
Co-authored-by: Jakub Ježek <jakubjezek001@gmail.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <jakub.trllo@gmail.com>
2023-08-10 13:31:49 +02:00
Jakub Trllo
7debe12c2b
Webpublisher: Cleanup targets (#5418)
* remove remotepublish commands from cli

* use 'automated' target instead ot 'remotepublish'

* removed references to remotepublish

* added webpublish target

* use webpubish targets where automated does not make sense
2023-08-08 11:36:16 +02:00
Jakub Trllo
90a7e33a26
Webpublisher: Self contain test publish logic (#5414)
* implement test logic of webpublisher in webpublisher

* simplified 'remote_publish'

* removed unused 'raise_error' argument
2023-08-07 16:53:09 +02:00
Jakub Trllo
7e9f42b447
Applications: Use prelaunch hooks to extract environments (#5387)
* ApplicationManager can have more granular way how applications are launched

* executable is optional to be able create ApplicationLaunchContext

* launch context can run prelaunch hooks without launching application

* 'get_app_environments_for_context' is using launch context to prepare environments

* added 'launch_type' as one of filtering options for LaunchHook

* added 'local' launch type filter to existing launch hooks

* define 'automated' launch type in remote publish function

* modified publish and extract environments cli commands

* launch types are only for local by default

* fix import

* fix launch types of global host data

* change order or kwargs

* change unreal filter attribute
2023-08-03 10:04:15 +02:00
Petr Kalis
cca689e48f
Webpublisher - headless publish shouldn't be blocking operation (#5177)
* OP-6239 - headless publish from webpublisher shouldn't be blocking

subprocess.call is blocking, which resulted in UI non responsiveness as it was waiting for publish to finish.

* OP-6239 - revert of typo
2023-06-22 20:17:56 +02:00
Roy Nieterau
3fae1f8521 Just some grammar tweaks 2023-03-30 13:59:22 +02:00
Petr Kalis
ece1e8b913 OP-4394 - Hound 2022-11-16 14:51:10 +01:00
Jakub Trllo
f9732a8385 renamed 'CollectAvalonEntities' to 'CollectContextEntities' 2022-11-16 14:43:19 +01:00
Petr Kalis
e11815b663
OP-4394 - safer handling of Settings extensions
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2022-11-16 14:41:35 +01:00
Petr Kalis
f18efd29b2 OP-4394 - fix - lowercase extension everywhere
Without it it would be stored in DB uppercased and final name would also be uppercased.
2022-11-15 17:36:30 +01:00
Petr Kalis
93b9dd7224 OP-4394 - extension is lowercased in Setting and in uploaded files 2022-11-14 13:40:28 +01:00
Petr Kalis
f6495ca956 OP-4394 - extension is lowercased in Setting and in uploaded files 2022-11-14 13:30:41 +01:00
Petr Kalis
29f0c816b7
Merge pull request #4067 from pypeclub/bugfix/OP-4371_Cleanup-WP-ExtractThumbnail
Webpublisher: cleanup wp extract thumbnail
2022-11-04 18:01:31 +01:00
Petr Kalis
34f4ee5ec7 OP-4371 - fix - provide full path to first file as a source for Thumbnail 2022-11-03 18:29:51 +01:00
Petr Kalis
fa6a80bcef OP-4371 - remove obsolete ExtractThumbnail
Functionality will be replaced by ExtractThumbnailFromSource which handles resolution.
Reviewable instance must contain thumbnailSource field pointing to source file for Thumbnail.
2022-11-03 18:04:29 +01:00
Jakub Trllo
12c28fe466 change imports in hosts 2022-11-03 16:27:38 +01:00
Petr Kalis
994edef588 OP-4218 - added docstring 2022-10-11 16:04:30 +02:00
Petr Kalis
b3e9d6a6b6 OP-4218 - fix variable 2022-10-11 15:57:34 +02:00
Petr Kalis
4214aa1403 OP-4218 - fix version logic
Added documentation.
2022-10-11 15:35:41 +02:00
Petr Kalis
06909bc452 OP-4218 - added variable to control versions
Use same version number for all published intances if enabled.
2022-10-11 15:31:33 +02:00
Jakub Trllo
2bfa9eea44 renamed 'IHostModule' to 'IHostAddon' 2022-08-26 15:06:50 +02:00
Jakub Trllo
9e7abf5804 Merge branch 'develop' into feature/OP-3819_Move-subset-name-functionality 2022-08-26 14:59:49 +02:00
Jakub Trllo
45c112eb84 fixed arguments 2022-08-26 10:12:35 +02:00
Jakub Trllo
ae11ae16d5 modify launch arguments 2022-08-25 18:12:20 +02:00
Jakub Trllo
e2c83c1426 renamed webserver_cli.py into webserver.py 2022-08-25 18:03:40 +02:00
Jakub Trllo
338d12e60c added cli command for webserver 2022-08-25 18:03:09 +02:00
Jakub Trllo
d5f6ad9fdc renamed 'cli_functions' to 'publish_functions' 2022-08-25 17:58:09 +02:00
Jakub Trllo
a98c7953aa use 'find_close_plugin' 2022-08-25 17:54:30 +02:00
Jakub Trllo
233d70bdd8 headless_publish is a method on webpublisher addon 2022-08-25 17:54:05 +02:00
Jakub Trllo
6c330c4896 use lib functions from webpublisher 2022-08-25 17:50:54 +02:00
Jakub Trllo
c1a7b9aff5 moved webpublisher specific functions into webpublisher 2022-08-25 17:49:24 +02:00
Jakub Trllo
eed9789287 changed function names 2022-08-25 16:59:20 +02:00
Jakub Trllo
61690d8477 omved cli functions into webpublisher 2022-08-25 16:54:42 +02:00
Jakub Trllo
c2332507f4 implement webpublisher host with HostBase 2022-08-25 16:41:56 +02:00
Jakub Trllo
caf9e014bd implemented webpublish addon 2022-08-25 16:32:46 +02:00
Jakub Trllo
882e00baef use Logger instead of PypeLogger 2022-08-24 15:52:47 +02:00
Jakub Trllo
7a4cd9c1fa removed 'get_subset_name' and renamed 'get_subset_name_with_asset_doc' to 'get_subset_name' 2022-08-23 19:20:04 +02:00
Jakub Trllo
ce31b9a477 provide more data as arguments during publishing 2022-08-23 19:13:23 +02:00
Jakub Trllo
7e59a577a6 use new import of 'get_subset_name_with_asset_doc' 2022-08-23 19:12:28 +02:00
Jakub Trllo
308d9e9c49 use 'OpenPypeMongoConnection' from 'openpype.client' 2022-07-18 11:20:14 +02:00
Petr Kalis
434e6bf78a Fix - added json support to all resources
encode method was missing for WebpublishRestApiResource
2022-06-17 13:51:41 +02:00
Jakub Trllo
29def2f267 fix kwarg key 2022-06-17 13:17:05 +02:00
Jakub Trllo
21d68b0d13 use get last version for subset in collect published files 2022-06-15 14:35:40 +02:00
Jakub Trllo
840f1a4314 separated endpoints to those with dbcon and without 2022-06-13 18:20:15 +02:00
Jakub Trllo
444b8aa673 use query functions from client 2022-06-13 18:19:35 +02:00
Jakub Trllo
00c3554a5c renamed 'OpenPypeRestApiResource' to 'WebpublishRestApiResource' 2022-06-13 18:18:16 +02:00
Jakub Trllo
7c7c1486a4 use own rest api endpoint instead of using private from avalon 2022-06-13 18:15:28 +02:00
Petr Kalis
a9fdcd80aa OP-3231 - return only active projects in webpublisher ProjectsEndpoing 2022-06-03 14:44:11 +02:00
Jakub Trllo
a579cd31c8 Merge branch 'develop' into enhancement/OP-2858_move-AvalonMongoDB-logic 2022-04-25 18:03:38 +02:00