Skip to content

Conversation

@znewton
Copy link
Contributor

@znewton znewton commented Nov 3, 2025

Description

Portion of #25597 to expose Attach options that utilize an API feature from SPO to convert an existing file to Fluid format. All new options are optional.

Reviewer Guidance

New params are optional, and existing functionality is not altered. Builds off of #25000 for additional context.

@github-actions github-actions bot added public api change Changes to a public API base: main PRs targeted against main branch labels Nov 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

🔗 Found some broken links! 💔

Run a link check locally to find them. See
https://github.com/microsoft/FluidFramework/wiki/Checking-for-broken-links-in-the-documentation for more information.

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

 ELIFECYCLE  Command failed with exit code 1.


/**
* Optional eTag to use when attaching the container.
* If provided, the container will
Copy link
Contributor

Choose a reason for hiding this comment

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

Incomplete sentence here, FYI

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: any chance we could add interface level docs here? 😁

Copy link
Contributor

Choose a reason for hiding this comment

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

Since this type is explicitly used as input, we should probably tag it as @input.
https://github.com/microsoft/FluidFramework/wiki/TSDoc-Guidelines#input

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, since this is strictly used as input, it probably makes sense to make all of the properties readonly.

* The ID of the item (file) to which the container is being attached.
* When combined with eTag, this will trigger a conversion of an existing file to a Fluid file.
*/
itemId?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: we should probably type these with | undefined to match the others. With our current TypeScript configurations, it doesn't make a big difference. But longer term we want to enable exactOptionalPropertyTypes, at which point the distinction matters (and these should all probably align).


/**
* The ID of the item (file) to which the container is being attached.
* When combined with eTag, this will trigger a conversion of an existing file to a Fluid file.
Copy link
Contributor

Choose a reason for hiding this comment

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

How coupled are itemId and eTag? Would it make sense to combine them into a single object property? Or are they really independent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The feature only works with both, so I can couple them; however, their the same "level" of metadata as the other properties here, so it would be a bit weird to nest them I think

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, do these correspond to external ODSP properties or something? If so, should we document that here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah this is information from the external (not-fluid) ODSP file

Copy link
Contributor

Choose a reason for hiding this comment

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

Are there public docs we can point to from the interface-level comment? Might be nice to make that relationship explicit in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants