Skip to content

feat: search provider injection + easysearch cluster CRUD module - #398

Merged
medcl merged 4 commits into
mainfrom
easysearch1
Aug 14, 2026
Merged

feat: search provider injection + easysearch cluster CRUD module#398
medcl merged 4 commits into
mainfrom
easysearch1

Conversation

@medcl

@medcl medcl commented Aug 13, 2026

Copy link
Copy Markdown
Member

What does this PR do

Rationale for this change

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

medcl added 2 commits August 13, 2026 21:33
…dule

- core/elastic: inject the client factory via RegisterClientProvider
  (modules/elastic registers InitClientWithConfig at setup, before the
  enabled check so disabled-module apps keep working); GetOrCreateClient
  and InvalidateClient now live in core with a config-keyed cache,
  resolving the cache.go compile deadlock without core importing modules
- modules/easysearch: new cluster-management module following the
  standard CRUD conventions — GET/POST _search via the query builder,
  Write*JSON envelopes, partial-field updates, per-action permissions
  including Search, and a pre-registration _test probe
- core/orm: UpdatePartialFields seeds the target from the stored record
  before merging the delta; previously fields absent from the delta were
  wiped on full-replace stores (sqlite) — regression tests cover field
  preservation and nested deep-merge
- modules/elastic: decouple cluster loading from the REST API
  (cluster_loader.go), extract ModuleConfig, adapter/common updates
- cleanup: drop duplicate SearchByTemplate from ScriptAPI, fix malformed
  elastic_mapping tags in View, rename core/elastic/orm.go -> mapper.go
@medcl medcl changed the title feat(elastic): client provider injection + easysearch cluster CRUD module feat: client provider injection + easysearch cluster CRUD module Aug 13, 2026
@medcl medcl changed the title feat: client provider injection + easysearch cluster CRUD module feat: search provider injection + easysearch cluster CRUD module Aug 13, 2026
@medcl
medcl merged commit bd35f70 into main Aug 14, 2026
7 checks passed
@medcl
medcl deleted the easysearch1 branch August 14, 2026 06:02
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