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

Changelog update changelog/8620-api #1441

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 38 additions & 7 deletions changelog/platform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,37 @@ description: "Notable additions and updates to the Flatfile platform"
icon: "layer-group"
---

## November 2024

### November 12, 2024

<div style={{ display: "table", width: "auto" }}>
<div style={{ display: "table-row", width: "auto" }}>
<Snippet file="chips/dataxp.mdx" />
<div style={{ float: "left", display: "table-column", paddingLeft: "30px", width: "calc(80% - 30px)" }}>

api@36741e5
This release introduces improvements to the way the workbook sheets are updated and cached.

The updateManySheets method now retrieves all affected sheets before performing the bulk update operation, and then invalidates the cache for those sheets after the update is completed. This ensures that the cache is kept up-to-date and consistent with the latest data.

Additionally, a new private method invalidateSheets has been added, which is responsible for removing the relevant cache keys for the provided sheets. This method generates cache keys based on the workbook and sheet IDs and deletes them from the cache.

The existing caching logic has been updated to use the new invalidateSheets method, ensuring that the cache is properly invalidated when necessary.

For example, when committing changes to a sheet, the cache keys for the workbook, workbook with space, and sheet will be invalidated:

```typescript
await this.invalidateSheets([
{ id: SheetId.from(sheetId).key, workbook_id: workbookId?.key },
])
```

This change improves the overall cache management and ensures that the application always serves the latest data, reducing the risk of stale data being served from the cache.
</div>
</div>
</div>

## October 2024

### October 28, 2024
Expand Down Expand Up @@ -183,9 +214,9 @@ icon: "layer-group"
</div>
</div>

## August 2024
## August 2024 (4)

### August 20, 2024
##### August 20, 2024

<div style={{ display: "table", width: "auto" }}>

Expand All @@ -207,10 +238,10 @@ icon: "layer-group"
description: 'Submit this data to a webhook.',
primary: true,
guide: {
content: "### Personalized Guide \n\n Before performing..."
content: "##### Personalized Guide \n\n Before performing..."
},
guardrail: {
content: "### Warning! \n\n This Submit ..."
content: "##### Warning! \n\n This Submit ..."
}
},
{...}
Expand All @@ -228,7 +259,7 @@ icon: "layer-group"
</div>
</div>

### August 15, 2024
##### August 15, 2024

<div style={{ display: "table", width: "auto" }}>
<div style={{ display: "table-row", width: "auto" }}>
Expand All @@ -251,7 +282,7 @@ icon: "layer-group"
</div>
</div>

### August 14, 2024
##### August 14, 2024

<div style={{ display: "table", width: "auto" }}>
<div style={{ display: "table-row", width: "auto" }}>
Expand All @@ -266,7 +297,7 @@ icon: "layer-group"
</div>
</div>

### August 09, 2024
##### August 09, 2024

<div style={{ display: "table", width: "auto" }}>
<div style={{ display: "table-row", width: "auto" }}>
Expand Down
21 changes: 21 additions & 0 deletions changelog/src/platform/20241112-1731444256332.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### November 12, 2024
## dataxp

api@36741e5
This release introduces improvements to the way the workbook sheets are updated and cached.

The updateManySheets method now retrieves all affected sheets before performing the bulk update operation, and then invalidates the cache for those sheets after the update is completed. This ensures that the cache is kept up-to-date and consistent with the latest data.

Additionally, a new private method invalidateSheets has been added, which is responsible for removing the relevant cache keys for the provided sheets. This method generates cache keys based on the workbook and sheet IDs and deletes them from the cache.

The existing caching logic has been updated to use the new invalidateSheets method, ensuring that the cache is properly invalidated when necessary.

For example, when committing changes to a sheet, the cache keys for the workbook, workbook with space, and sheet will be invalidated:

```typescript
await this.invalidateSheets([
{ id: SheetId.from(sheetId).key, workbook_id: workbookId?.key },
])
```

This change improves the overall cache management and ensures that the application always serves the latest data, reducing the risk of stale data being served from the cache.