Commit graph

5062 commits

Author SHA1 Message Date
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
4c07e03fc6 Merge branch 'feature/AY-2218_Plugin-hooks-Loader-and-Scene-Inventory' of https://github.com/ynput/ayon-core into feature/AY-2218_Plugin-hooks-Loader-and-Scene-Inventory 2025-06-17 23:26:47 +02:00
Roy Nieterau
d583279c6d Fix type hint 2025-06-17 23:26:30 +02:00
Roy Nieterau
556c45c301
Merge branch 'develop' into feature/AY-2218_Plugin-hooks-Loader-and-Scene-Inventory 2025-06-17 22:49:48 +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
Jakub Ježek
f0152c92ac
Merge branch 'develop' into feature/911-new-traits-based-integrator 2025-06-17 10:34:00 +02:00
Petr Kalis
802b8b2567 Refactored monkey patched method 2025-06-16 17:38:15 +02:00
Petr Kalis
77d5d8d162 Implemented order attribute for sorting 2025-06-16 17:33:30 +02:00
Petr Kalis
f4556ac697 Formatting change 2025-06-16 15:58:03 +02:00
Petr Kalis
03e3b29597 Renamed variable 2025-06-16 14:22:08 +02:00
Petr Kalis
0e582c7d5f Update docstring 2025-06-16 14:08:26 +02:00
Petr Kalis
234e388697 Added abstractmethod decorator 2025-06-16 14:07:52 +02:00
Petr Kalis
cf4f9cfea6 Removed unused argument 2025-06-16 14:04:47 +02:00
Petr Kalis
4ae7ab28ab Removed unnecessary import 2025-06-13 17:55:12 +02:00
Petr Kalis
118796a325 Passed returned container from load as keyword
Could be appended on position 0 on args, but this feels safer.
2025-06-13 17:46:41 +02:00
Petr Kalis
276eff0097 Added docstring 2025-06-13 17:45:44 +02:00
Petr Kalis
0e292eb356 Renamed 2025-06-13 17:43:47 +02:00
Petr Kalis
a4babae5f5 Revert unneeded change 2025-06-13 16:38:29 +02:00
Petr Kalis
c8cca23e48 Revert unneeded change 2025-06-13 16:37:43 +02:00
Petr Kalis
9a050d9200 Formatting change 2025-06-13 16:35:32 +02:00
Petr Kalis
07809b56dd Removed _hook_loaders_by_identifier in actions 2025-06-13 16:35:22 +02:00
Petr Kalis
f21f4a5e01 Removed usage of hooks in update, switch 2025-06-13 16:33:09 +02:00
Petr Kalis
7e88916fcd Reverted missing newline 2025-06-13 16:30:42 +02:00
Petr Kalis
55583e68f8 Fix missing return 2025-06-13 16:29:14 +02:00
Petr Kalis
4c113ca5b5 Removed unneeded _load_context 2025-06-13 16:28:02 +02:00
Petr Kalis
976ef5fb2b Added monkey patched load method if hooks are found for loader 2025-06-13 16:23:22 +02:00
Petr Kalis
b742dfc381 Changed from loader_identifiers to is_compatible method 2025-06-13 16:22:44 +02:00
Petr Kalis
37f5f55832 Added typing 2025-06-13 16:22:24 +02:00
Petr Kalis
ca768aeddf Removed get_hook_loaders_by_identifier
Replaced by monkeypatch load method
2025-06-13 16:21:56 +02:00
Petr Kalis
4457a432cb Merged pre/post hooks into single class 2025-06-13 16:19:19 +02:00
Petr Kalis
ee96cdc2c3 Remove methods for pre/post loader hooks from higher api
This "hides" a bit methods that are not completely relevant from high level API.
2025-06-13 14:46:23 +02:00
Petr Kalis
0ac277404c Updated docstring 2025-06-13 14:37:03 +02:00
Petr Kalis
6e095b8c18 Updated docstring 2025-06-13 14:35:23 +02:00
Jakub Trllo
d4645c4dab
Merge branch 'develop' into enhancement/1295-product-base-types-feature-support 2025-06-13 11:23:00 +02:00
Jakub Trllo
2fbc0837aa
Merge branch 'develop' into feature/107-webactions-in-launcher-tool 2025-06-12 14:57:20 +02:00
Jakub Trllo
09e67612b0 moved 'calculate_full_label' to actions model 2025-06-12 14:57:05 +02:00
Jakub Trllo
8edcd1fc65 replace 'Dict' with 'dict' 2025-06-12 14:13:48 +02:00
Jakub Trllo
ef724793a7 use correct default value 2025-06-12 14:13:33 +02:00
Jakub Trllo
11aad8880c
Merge branch 'develop' into feature/107-webactions-in-launcher-tool 2025-06-12 14:04:04 +02:00
Jakub Trllo
d5a52bfa7e remove unused import 2025-06-12 13:45:13 +02:00
Jakub Trllo
ad317ca30a get rid of 'to_data' and 'from_data' 2025-06-12 13:43:37 +02:00
Jakub Trllo
ea585ba57c
Better docstring
Co-authored-by: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
2025-06-12 12:16:55 +02:00
Roy Nieterau
d25d558ad0
Merge branch 'develop' into develop 2025-06-12 10:32:41 +02:00
Roy Nieterau
489c41bf32
Update client/ayon_core/tools/sceneinventory/view.py 2025-06-12 10:31:36 +02:00
Roy Nieterau
c1b92cc9bd
Apply suggestions from code review
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-06-12 10:31:11 +02:00
Roy Nieterau
f42551156f
Merge branch 'develop' into enhancement/extract_review_use_dataclass_for_tempdata 2025-06-11 20:40:28 +02:00
Roy Nieterau
c74fbc2aff Use data class for TempData to get some type hints 2025-06-11 20:38:03 +02:00