Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Merit <[email protected]>
  • Loading branch information
meritmalling committed Feb 10, 2025
1 parent b16d043 commit c49f5d6
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions changelog/platform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,9 @@ fields marked as readonly will not be replaced during the replaceRecords
operation. If excludeReadOnly is false or not provided, readonly records and
fields will be replaced as before.

<<<<<<< HEAD
The findAndReplaceRecords method in the WorkbooksService now checks if the field
being replaced is readonly and throws an error if excludeReadOnly is set to
true, preventing modification of readonly fields.
=======
### January 27, 2025

<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)" }}>

The order of imports from the `@flatfile/api` module has been updated. The `RecordUpdates` and `Success` types are now imported in a different order.

The implementation of the `clearColumn` method has been refactored. Instead of using the `map` and `filter` array methods, it now uses the `reduce` method to generate the `recordsUpdates` array. The new implementation checks if the field value exists and if the field is not read-only before clearing it. This change likely improves performance and readability.

The wording of the `info` and `outcome.message` properties in the `transitionJob` call has been updated from "Column was removed" to "Column was cleared". This change provides more accurate messaging about the action performed.

Additionally, the code now handles read-only fields correctly. If a field is marked as read-only in the `RecordConfig`, its value will not be cleared.

These changes improve the functionality, performance, and messaging of the `clearColumn` logic without introducing any breaking changes to the external interface.

</div>
</div>
</div>

### January 22, 2025
>>>>>>> 1a54cd6 (Update changelog)

Several new tests have been added to validate the behavior of the replaceRecords
operation with readonly records and fields, covering scenarios with
Expand Down Expand Up @@ -98,6 +73,18 @@ post-creation.
Fixes bug where long document titles would overlap the page header.
</Update>

<Update label="01-27-2025" description="dataxp">
The order of imports from the `@flatfile/api` module has been updated. The `RecordUpdates` and `Success` types are now imported in a different order.

The implementation of the `clearColumn` method has been refactored. Instead of using the `map` and `filter` array methods, it now uses the `reduce` method to generate the `recordsUpdates` array. The new implementation checks if the field value exists and if the field is not read-only before clearing it. This change likely improves performance and readability.

The wording of the `info` and `outcome.message` properties in the `transitionJob` call has been updated from "Column was removed" to "Column was cleared". This change provides more accurate messaging about the action performed.

Additionally, the code now handles read-only fields correctly. If a field is marked as read-only in the `RecordConfig`, its value will not be cleared.

These changes improve the functionality, performance, and messaging of the `clearColumn` logic without introducing any breaking changes to the external interface.
</Update>

<Update label="01-23-2025" description="dataxp">
When clearing a column in a job operation, a snapshot of the sheet will be taken
before the column is cleared. This snapshot will be labeled with the specific
Expand Down

0 comments on commit c49f5d6

Please sign in to comment.