Skip to content

Conversation

Josmithr
Copy link
Contributor

TODO

@github-actions github-actions bot added base: main PRs targeted against main branch area: dds Issues related to distributed data structures area: dds: tree public api change Changes to a public API labels Aug 25, 2025
@@ -768,33 +786,10 @@ export class AnchorSet implements AnchorLocator {
}
this.anchorSet.activeVisitor = undefined;

// Aggregate changedFields by node.
const eventsByNode: Map<PathNode, Set<FieldKey>> = new Map();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note for reviewers: extracted into a static function below so it can be reused. This functionality doesn't consume any object state, so no functional changes were required.

@@ -219,9 +219,7 @@ export class TreeNodeKernel {
for (const eventName of kernelEvents) {
if (events.hasListeners(eventName)) {
this.#hydrationState.offAnchorNode.add(
// Argument is forwarded between matching events, so the type should be correct.
Copy link
Contributor Author

@Josmithr Josmithr Aug 25, 2025

Choose a reason for hiding this comment

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

Note for reviewers: this explicit typing as any was not needed, so it was removed.

@@ -768,6 +768,7 @@ export interface RunTransaction {

// @alpha @input
export interface RunTransactionParams {
readonly deferTreeEvents?: boolean;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: revert this

@Josmithr Josmithr changed the title feat(tree): Support event deferral during transactions refactor(tree): Support pausing Tree events for table operations Aug 28, 2025
@@ -66,6 +66,7 @@ import {

import { canInitialize, initialize, initializerFromChunk } from "./schematizeTree.js";
import type { ITreeCheckout, TreeCheckout } from "./treeCheckout.js";
import { pauseTreeEvents } from "../simple-tree/index.js";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: revert all these changes

return [];
}

// Ensure the specified columns exists before starting transaction.
// Ensure the specified rows exists before starting transaction.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: revert this

Copy link
Contributor

🔗 No broken links found! ✅

Your attention to detail is admirable.

linkcheck output


> [email protected] ci:check-links /home/runner/work/FluidFramework/FluidFramework/docs
> start-server-and-test "npm run serve -- --no-open" 3000 check-links

1: starting server using command "npm run serve -- --no-open"
and when url "[ 'http://127.0.0.1:3000' ]" is responding with HTTP status code 200
running tests using command "npm run check-links"


> [email protected] serve
> docusaurus serve --no-open

[SUCCESS] Serving "build" directory at: http://localhost:3000/

> [email protected] check-links
> linkcheck http://localhost:3000 --skip-file skipped-urls.txt

Crawling...

Stats:
  233633 links
    1718 destination URLs
    1951 URLs ignored
       0 warnings
       0 errors


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 public api change Changes to a public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant