Skip to content

Reduce direct references to SharedTree class and its factory class #24312

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

Merged
merged 2 commits into from
Apr 10, 2025

Conversation

CraigMacomber
Copy link
Contributor

Description

Tweak SharedTree tests to make less direct use of the SharedTreeClass and instead prefer its interfaces.

Also reduce unnecessary use of its factory.

These changes make the test suite more compatible with changes like #23729 which adjust how the kernel is used to implement the SharedObject.

Reviewer Guidance

The review process is outlined on this wiki page.

@Copilot Copilot AI review requested due to automatic review settings April 10, 2025 16:52
@CraigMacomber CraigMacomber requested a review from a team as a code owner April 10, 2025 16:52
@github-actions github-actions bot added area: dds Issues related to distributed data structures base: main PRs targeted against main branch area: dds: tree labels Apr 10, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

@@ -2230,6 +2240,7 @@ describe("SharedTree", () => {
const schema = sf.object("myObject", {});
const config = new TreeViewConfiguration({ schema, enableSchemaValidation });
const view = tree.viewWith(config);
assert(view instanceof SchematizingSimpleTreeView);
Copy link
Preview

Copilot AI Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The identifier 'SchematizingSimpleTreeView' is used without being imported, which may lead to a compilation error. Please import 'SchematizingSimpleTreeView' from its appropriate module or remove the assertion if it is not needed.

Copilot uses AI. Check for mistakes.

@CraigMacomber CraigMacomber merged commit 49e5be9 into microsoft:main Apr 10, 2025
33 checks passed
@CraigMacomber CraigMacomber deleted the LessSharedTree branch April 10, 2025 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dds: tree area: dds Issues related to distributed data structures base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants