Roy Nieterau
ea59a764cd
Refactor/remove legacy usage of asset, family and subset
2025-12-16 11:19:50 +01:00
Jakub Trllo
65791a1d9f
added 'skip_discovery' to loader plugin
2025-12-12 15:03:31 +01:00
Jakub Trllo
bd0320f56f
added planned break of backwards compatibility
2025-10-20 14:24:04 +02:00
Jakub Trllo
fbf370befa
raise from previous exception
2025-10-20 14:23:53 +02:00
Jakub Trllo
50531fa35a
added docstring
2025-10-20 14:23:39 +02:00
Jakub Trllo
6807664188
rename decorator function
2025-10-20 12:04:09 +02:00
Jakub Trllo
4b2d2d5002
added overload definitions
2025-10-06 16:33:49 +02:00
Jakub Trllo
b665bf3f79
add attribute to the function to be able to detect if new version should be used
2025-10-06 13:10:39 +02:00
Jakub Trllo
f11800f1e7
fix type hint
2025-10-03 17:22:32 +02:00
Jakub Trllo
725e0f5a11
get rid of private function
2025-10-03 17:17:47 +02:00
Jakub Trllo
dcf5db31d0
formatting fix
2025-09-25 12:00:28 +02:00
Jakub Trllo
80f84e95fc
add formatting
2025-09-25 11:54:02 +02:00
Jakub Trllo
efcd4425b7
add signature to the original function
2025-09-25 11:53:45 +02:00
Jakub Trllo
8c61e65521
handle backwards compatibility properly
2025-09-25 11:52:59 +02:00
Jakub Trllo
c9bb43059d
remove doubled import
2025-09-25 11:36:56 +02:00
Jakub Trllo
d55ac4aa54
Use 'get_representation_path' for both signatures.
2025-09-25 11:34:47 +02:00
Jakub Trllo
60ff1ddb0c
use the new function
2025-09-24 12:14:21 +02:00
Jakub Trllo
80ba7ea5ed
implement new 'get_representation_path_v2' function
2025-09-24 12:12:30 +02:00
Jakub Trllo
6b57f406ca
Merge branch 'develop' into enhancement/use-ayon-logger-in-load-plugins
2025-09-23 14:31:36 +02:00
Petr Kalis
0b6e171558
Fix wrong key
2025-09-23 13:27:21 +02:00
Jakub Trllo
740f0276e2
add a todo to 'filter_containers'
2025-09-23 12:39:59 +02:00
Jakub Trllo
88db0b46e8
added typehints
2025-09-23 12:39:48 +02:00
Jakub Trllo
0122686522
allow to ignore locked versions
2025-09-23 12:39:32 +02:00
Jakub Trllo
b6feefa19a
use Logger as log attribute for loader plugin
2025-09-23 11:54:29 +02:00
Jakub Trllo
0748d659d7
do not consider locked containers in 'get_outdated_containers' as outdated
2025-09-22 19:11:33 +02:00
Jakub Trllo
eabd6b601f
small changes or logic order
2025-09-22 19:11:02 +02:00
Ondřej Samohel
eaf47d8731
♻️ don't allow duplicate loaders
2025-07-30 18:32:09 +02:00
Jakub Trllo
7f4f7be8b3
use anatomy if roots are not filled
2025-07-24 15:22:51 +02:00
Jakub Trllo
4aefacaf44
remove unncessary product base type filters redefinitins
2025-06-24 11:44:54 +02:00
Jakub Trllo
2f9cd88111
revert conditions
2025-06-24 11:44:27 +02:00
Ondřej Samohel
c1b9eff2df
🐛 fix comment and condition
2025-06-23 16:59:45 +02:00
Ondrej Samohel
deacb2853e
♻️ refactor filtering and add some tests
2025-06-20 16:13:07 +02:00
Ondrej Samohel
16ac7e2028
Merge remote-tracking branch 'origin/develop' into enhancement/1294-product-base-types-support-in-loading
2025-06-19 17:33:27 +02:00
Ondřej Samohel
929418c8cb
Update client/ayon_core/pipeline/load/plugins.py
...
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-06-19 16:54:36 +02:00
Ondřej Samohel
9738c2cc44
Update client/ayon_core/pipeline/load/plugins.py
...
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-06-19 16:54:19 +02:00
Petr Kalis
e82716978d
Fix wrong usage of Hook, should be LoaderPlugin
...
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-06-19 12:08:37 +02:00
Petr Kalis
68751b8f22
Fix wrong usage of Hook, should be LoaderPlugin
...
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-06-19 12:08:27 +02:00
Petr Kalis
d12273a6b8
Removed None assignment
2025-06-19 11:24:13 +02:00
Petr Kalis
b0e472ebe9
Changed order of plugin, result
...
Plugin is required so it makes sense to bump it up to first position and pass it before args
2025-06-19 11:18:34 +02:00
Petr Kalis
e8dcec0510
Changed typing to support 3.7
...
We still support older Maya
2025-06-19 10:52:34 +02:00
Ondrej Samohel
1c63b75a27
♻️ make product type and product base types None by default
2025-06-19 10:06:29 +02:00
Ondrej Samohel
ae1bfc71f7
♻️ change loader filtering
2025-06-18 19:00:35 +02:00
Roy Nieterau
1d55f2a033
Update client/ayon_core/pipeline/load/plugins.py
2025-06-18 09:59:09 +02:00
Roy Nieterau
a593516f29
Fix Hook logic to actually run on a LoaderHookPlugin instance
...
- Now `self` on the hook method actually refers to an instantiated `LoaderHookPlugin`
- Add `plugin` kwargs to the hook methods to still provide access to the `LoaderPlugin` instance for potential advanced behavior
- Fix type hint on `compatible_hooks` arguments to `add_hooks_to_loader` function
2025-06-17 23:39:25 +02:00
Roy Nieterau
d583279c6d
Fix type hint
2025-06-17 23:26:30 +02:00
Roy Nieterau
bcca8ca8c1
Rename post_* method kwarg container to result to not clash with container argument on update and remove and make it clearer that it's the "result" of something
2025-06-17 22:41:31 +02:00
Roy Nieterau
85ef0fefa4
Fix post_update and post_remove
2025-06-17 21:59:06 +02:00
Roy Nieterau
3018dd35b6
Refactor PrePostLoaderHookPlugin to LoaderHookPlugin
2025-06-17 21:58:16 +02:00
Petr Kalis
3db2cd046a
Implemented pre/post for update and remove
2025-06-17 14:44:24 +02:00
Petr Kalis
802b8b2567
Refactored monkey patched method
2025-06-16 17:38:15 +02:00