Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New method for customizing the oracle tree #696

Merged
merged 12 commits into from
Mar 27, 2023
Merged

New method for customizing the oracle tree #696

merged 12 commits into from
Mar 27, 2023

Conversation

ben
Copy link
Owner

@ben ben commented Mar 20, 2023

Proposed in Discord. This updates the custom-oracle logic to allow a module or hook to register the entire oracle tree on a ready hook, rather than needing to provide an expensive hook body that runs whenever an oracle window is opened, or an oracle roll is called for.

The fundamental change is that the oracle tree node doesn't have an array of async table getters, it has an array of table UUIDs, which is a lot easier to work with, and is easier to get right.

  • Update the custom-oracles types with tables: string[]
    • Update built-in widgets to match
  • Provide a new registerOracleTree function, which can be called on a ready hook
  • Update the wiki with information about this new method
  • Update CHANGELOG.md

@ben ben force-pushed the register-oracle-tree branch 4 times, most recently from 230c26e to e85d3d2 Compare March 27, 2023 13:35
@ben ben force-pushed the register-oracle-tree branch from e85d3d2 to 2844ae2 Compare March 27, 2023 13:39
@ben ben marked this pull request as ready for review March 27, 2023 13:40
@ben ben merged commit ba3739b into main Mar 27, 2023
@ben ben deleted the register-oracle-tree branch March 27, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant