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

Replace createCreateNewRequest with createOdspCreateContainerRequest #8233

Merged

Conversation

sonalivdeshpande
Copy link
Contributor

This PR aims to remove on of the deprecated function createCreateNewRequest from odsp-driver package and replace it with createOdspCreateContainerRequest function.

Fixes #8223

@sonalivdeshpande sonalivdeshpande requested a review from a team as a code owner November 11, 2021 19:28
@github-actions github-actions bot requested review from vladsud and jatgarg and removed request for a team November 11, 2021 19:28
@github-actions github-actions bot added area: driver Driver related issues area: odsp-driver breaking change This PR or issue would introduce a breaking change public api change Changes to a public API labels Nov 11, 2021
@sonalivdeshpande sonalivdeshpande requested review from sumedhb1995 and a team and removed request for tanviraumi, znewton, vladsud and jatgarg November 11, 2021 19:28
@github-actions github-actions bot requested review from anthony-murphy and removed request for a team November 11, 2021 19:28
@sonalivdeshpande sonalivdeshpande requested review from heliocliu and a team November 11, 2021 19:28
@github-actions github-actions bot requested review from vladsud, jatgarg, tanviraumi and znewton and removed request for a team November 11, 2021 19:30
@github-actions github-actions bot added the area: server Server related issues (routerlicious) label Nov 11, 2021
@msfluid-bot
Copy link
Collaborator

msfluid-bot commented Nov 11, 2021

@fluid-example/bundle-size-tests: -219 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
container.js 168.08 KB 168.08 KB No change
map.js 45.39 KB 45.39 KB No change
matrix.js 143.02 KB 143.02 KB No change
odspDriver.js 186.06 KB 185.84 KB -219 Bytes
odspPrefetchSnapshot.js 41.69 KB 41.69 KB No change
sharedString.js 164.45 KB 164.45 KB No change
Total Size 781.38 KB 781.16 KB -219 Bytes

Baseline commit: 99a0dd2

Generated by 🚫 dangerJS against 960b490

@github-actions github-actions bot removed the area: server Server related issues (routerlicious) label Nov 11, 2021
BREAKING.md Outdated Show resolved Hide resolved
@github-actions github-actions bot added the area: server Server related issues (routerlicious) label Nov 17, 2021
@github-actions github-actions bot removed the area: server Server related issues (routerlicious) label Nov 17, 2021
BREAKING.md Outdated

### `chaincodePackage` removed from `Container`
The `chaincodePackage` property on `Container` was deprecated in 0.28, and has now been removed. Two new APIs have been added to replace its functionality, `getSpecifiedCodeDetails()` and `getLoadedCodeDetails()`. Use `getSpecifiedCodeDetails()` to get the code details currently specified for the `Container`, or `getLoadedCodeDetails()` to get the code details that were used to load the `Container`.

### `OdspDocumentInfo` type replaced with `OdspFluidDataStoreLocator` interface
The `OdspDocumentInfo` type is removed from `odsp-driver` package. It is removed from `packages\drivers\odsp-driver\src\contractsPublic.ts` and replaced with `OdspFluidDataStoreLocator` interface as parameter in `OdspDriverUrlResolverForShareLink.createDocumentUrl()`. If there are any instances of `OdspDocumentInfo` type used, it can be simply replaced with `OdspFluidDataStoreLocator` interface.

### Replace `createCreateNewRequest` function with `createOdspCreateContainerRequest` function
The `createCreateNewRequest` function is removed from `odspDriverUrlResolver.ts` and `odspDriverUrlResolverForShareLink.ts` files under the `odsp-driver` package. `createCreateNewRequest` function is replaced with `createOdspCreateContainerRequest` function in `odspCreateContainer.spec.ts` and `odspDriverResolverTest.spec.ts`. The update is also made in `webpack-fluid-loader` package. If any instances of `createCreateNewRequest` function are used, replace them with `createOdspCreateContainerRequest` function by importing it from `@fluidframework/odsp-driver` package.
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to call out what you changed in the test files. these notes should only cover changes to the public api/usage

@sonalivdeshpande sonalivdeshpande merged commit 368b69a into microsoft:main Nov 18, 2021
@sonalivdeshpande sonalivdeshpande deleted the removeCreateNewRequest branch November 18, 2021 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: driver Driver related issues area: odsp-driver breaking change This PR or issue would introduce a breaking change public api change Changes to a public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace createCreateNewRequest with createOdspCreateContainerRequest
4 participants