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

fix(sheets): boolean should store as number #1605

Merged
merged 2 commits into from Mar 16, 2024

Conversation

wzhudev
Copy link
Member

@wzhudev wzhudev commented Mar 16, 2024

close #1534

BREAKING CHANGE:
Before:
Boolean values ("TRUE" "FALSE") were stored in the IWorkbooData as strings.
After:
Boolean values would be store as number (0, 1).

  • I am sure that the code is update-to-date with the dev branch.

close #1534

BREAKING CHANGE:
Before:
Boolean values ("TRUE" "FALSE") were stored in the IWorkbooData
as strings.
After:
Boolean values would be store as number (0, 1).
@wzhudev wzhudev requested a review from DR-Univer as a code owner March 16, 2024 03:23
@univer-bot univer-bot bot added the qa:untested This PR is ready to be tested label Mar 16, 2024
@wzhudev wzhudev requested a review from Dushusir March 16, 2024 03:23
@wzhudev
Copy link
Member Author

wzhudev commented Mar 16, 2024

@zhaolixin7 Please verify that Boolean values (TRUE FALSE) work as they used to do.

Copy link

github-actions bot commented Mar 16, 2024

View Deployment

📑 Examples 📚 Storybook
🔗 Preview link 🔗 Preview link

Copy link

codecov bot commented Mar 16, 2024

Codecov Report

Attention: Patch coverage is 70.58824% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 32.38%. Comparing base (cdb7d49) to head (3bf0d3a).
Report is 2 commits behind head on dev.

Files Patch % Lines
packages/core/src/sheets/worksheet.ts 72.72% 3 Missing ⚠️
...ine-render/src/components/sheets/sheet-skeleton.ts 0.00% 1 Missing ⚠️
...rc/commands/mutations/set-range-values.mutation.ts 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1605      +/-   ##
==========================================
- Coverage   32.42%   32.38%   -0.05%     
==========================================
  Files         923      924       +1     
  Lines       52174    52182       +8     
  Branches    10896    10893       -3     
==========================================
- Hits        16920    16897      -23     
- Misses      35254    35285      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wzhudev wzhudev force-pushed the wzhudev/refactor-boolean-store-as-number branch from 49fdb85 to aa83aeb Compare March 16, 2024 03:25
@@ -57,6 +57,7 @@ import {

import { Inject } from '@wendellhu/redi';
import { distinctUntilChanged, startWith } from 'rxjs';
import { extractPureTextFromCell } from '@univerjs/core/sheets/worksheet.js';
Copy link
Member

Choose a reason for hiding this comment

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

导出到 index.ts再引入

@wzhudev wzhudev merged commit 78e5426 into dev Mar 16, 2024
7 checks passed
@wzhudev wzhudev deleted the wzhudev/refactor-boolean-store-as-number branch March 16, 2024 05:03
ybzky pushed a commit that referenced this pull request Mar 19, 2024
* fix(sheets): boolean should store as number

close #1534

BREAKING CHANGE:
Before:
Boolean values ("TRUE" "FALSE") were stored in the IWorkbooData
as strings.
After:
Boolean values would be store as number (0, 1).
@zhaolixin7
Copy link

@wzhudev 看下这个issue 是这个pr导致的吗?我先assignees你了#1637

@univer-bot
Copy link

univer-bot bot commented Mar 19, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

@wzhudev Take a look at this issue. Is it caused by this PR? I assignees to you first #1637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa:untested This PR is ready to be tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] TRUE FALSE stored as number 0 1
4 participants