Skip to content

Conversation

@KirillSto
Copy link
Member

https://linear.app/anytype/issue/GO-6454/do-not-update-lastmodified-on-auto-changes

  • Introduce changeType field in Change model, that handles type of changes applied to object.
  • This value will help us to distinguish changes that were made explicitly by user from all other.
  • Include changeType check on LastModified info setting logic flow

@KirillSto KirillSto self-assigned this Nov 18, 2025
type ChangeType uint32

const (
UserChange ChangeType = iota
Copy link
Member

Choose a reason for hiding this comment

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

please, add prefix ChangeType to all constants

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@KirillSto KirillSto requested a review from deff7 November 21, 2025 09:54
@github-actions
Copy link

github-actions bot commented Nov 21, 2025

New Coverage 46.1% of statements
Patch Coverage 39.0% of changed statements (30/77)

Coverage provided by https://github.com/seriousben/go-patch-cover-action

@KirillSto KirillSto marked this pull request as ready for review November 21, 2025 10:15
@KirillSto KirillSto changed the base branch from develop to release-0.45 November 26, 2025 12:22
@requilence requilence merged commit 7cb84bf into release-0.45 Dec 3, 2025
15 checks passed
@requilence requilence deleted the go-6454-introduce-change-type branch December 3, 2025 15:51
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants