mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #3095] [MERGED] refactor: remove date cell persistence #5564
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#5564
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3095
Author: @richardshiue
Created: 8/1/2023
Status: ✅ Merged
Merged: 9/2/2023
Merged by: @appflowy
Base:
main← Head:date-service📝 Commits (5)
be77519refactor: remove date cell persistence0410ecerefactor: use i64 rather than String in DateChangeseta61cf0dchore: code cleanupa741889fix: tauri build13af8adchore: Merge branch 'main' into date-service📊 Changes
18 files changed (+159 additions, -197 deletions)
View changed files
📝
frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_controller_builder.dart(+2 -2)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_data_persistence.dart(+1 -49)➕
frontend/appflowy_flutter/lib/plugins/database_view/application/cell/date_cell_service.dart(+47 -0)📝
frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/date_cell/date_cal_bloc.dart(+59 -69)📝
frontend/appflowy_tauri/src/appflowy_app/stores/effects/database/cell/data_persistence.ts(+1 -1)📝
frontend/rust-lib/flowy-database2/src/entities/type_option_entities/date_entities.rs(+1 -1)📝
frontend/rust-lib/flowy-database2/src/event_handler.rs(+1 -1)📝
frontend/rust-lib/flowy-database2/src/services/cell/cell_operation.rs(+1 -1)📝
frontend/rust-lib/flowy-database2/src/services/field/type_options/date_type_option/date_tests.rs(+20 -39)📝
frontend/rust-lib/flowy-database2/src/services/field/type_options/date_type_option/date_type_option.rs(+1 -1)📝
frontend/rust-lib/flowy-database2/src/services/field/type_options/date_type_option/date_type_option_entities.rs(+1 -7)📝
frontend/rust-lib/flowy-database2/tests/database/cell_test/test.rs(+1 -1)📝
frontend/rust-lib/flowy-database2/tests/database/database_editor.rs(+2 -2)📝
frontend/rust-lib/flowy-database2/tests/database/field_test/util.rs(+2 -2)📝
frontend/rust-lib/flowy-database2/tests/database/mock_data/board_mock_data.rs(+5 -5)📝
frontend/rust-lib/flowy-database2/tests/database/mock_data/calendar_mock_data.rs(+5 -5)📝
frontend/rust-lib/flowy-database2/tests/database/mock_data/grid_mock_data.rs(+6 -6)📝
frontend/rust-lib/flowy-test/tests/database/local_test/test.rs(+3 -5)📄 Description
I'm removing the DateCellPersistence and introducing a DateCellBackendService which I think will help improve code readability.
Imo, the date data isn't really persistent. When the date cell data is being saved, the date's timestamp is sent along with the include time string to be combined in the backend. The timestamp sent from the backend to the frontend, however, is the combined timestamp. This could cause some confusion
This PR also changed the timestamp field of DateChangesetPB from String to i64
Feature Preview
PR Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.