Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Harmony: fix clashing namespace in js function calls #199

Merged
merged 2 commits into from
Oct 1, 2020

Conversation

antirotor
Copy link
Member

Problem

func is already existing object in Harmony namespace. We use func() for functions we send from server to Harmony client. When they are eval()ed there, they replace Harmony object making some Hamony functions as Create keys... unusable.

Solution

Added random uuid4 prefix for all generated functions by Pype and Avalon core to minimaze possible clash.

🏴 Relates to similar PR in: ynput/OpenPype#584

@antirotor antirotor added the bug Something isn't working label Sep 30, 2020
@antirotor antirotor requested a review from a team September 30, 2020 17:01
@antirotor antirotor self-assigned this Sep 30, 2020
@tokejepsen
Copy link
Member

Might be good to update the documentation with this "best" practise and pit falls; https://github.com/pypeclub/avalon-core/tree/2.x/develop/avalon/harmony#creator-plugin

@mkolar mkolar merged commit fb1c6e6 into master Oct 1, 2020
@mkolar mkolar deleted the hotfix/harmony-clashing-namespace branch October 18, 2020 21:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants