Skip to content

Cache rework#47

Merged
hatch01 merged 10 commits intodevfrom
cache_rework
Aug 31, 2025
Merged

Cache rework#47
hatch01 merged 10 commits intodevfrom
cache_rework

Conversation

@hatch01
Copy link
Copy Markdown
Member

@hatch01 hatch01 commented Aug 30, 2025

No description provided.

@hatch01 hatch01 changed the base branch from main to dev August 30, 2025 21:35
@hatch01 hatch01 requested a review from Copilot August 30, 2025 22:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR performs a comprehensive cache rework, migrating from Hive to dart_mappable for serialization across all packages, replacing Hive CE with Sembast for database operations, and eliminating the copy_with_extension in favor of dart_mappable's built-in functionality.

Key changes:

  • Migration from Hive CE to Sembast for local database storage
  • Replacement of copy_with_extension and equatable with dart_mappable annotations
  • Update of build configurations to use dart_mappable_builder instead of hive_ce_generator

Reviewed Changes

Copilot reviewed 106 out of 208 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/lyon1tomussclient/lib/src/model/* Convert model classes to use @MappableClass and dart_mappable serialization
packages/lyon1mailclient/lib/src/sembast_helper.dart Add new Sembast-based cache helper for mail actions
packages/lyon1examenclient/lib/src/examen_list_model.dart Add @MappableClass annotation to model
packages/lyon1casclient/lib/src/credential.dart Convert to dart_mappable from copy_with_extension
apps/onyx/lib/screens/settings/domain/logic/settings_logic.dart Replace Hive operations with Sembast
build.yaml files Update build configuration for dart_mappable_builder

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

- Annotate enums with @MappableEnum() in core and client packages -
Generate and include enum mappers for all relevant enums - Update cache
service to use dart_mappable for encoding/decoding - Initialize all
mappers in sembast_init - Update logic to use new mappable serialization
- Switch dart_mappable and builder to local path dependencies - Fix enum
serialization in izlyclient, lyon1mailclient, lyon1tomussclient,
polytechcolloscopeclient - Regenerate all affected *.mapper.dart files
@hatch01 hatch01 marked this pull request as ready for review August 31, 2025 18:40
@hatch01 hatch01 merged commit 155b6cf into dev Aug 31, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants