Skip to content

feat(shared): resolveAll + shared gitHasContent for per-kind source of truth - #20

Merged
jymaire merged 1 commit into
mainfrom
feat/237-resolveall-githascontent
Sep 23, 2026
Merged

jymaire merged 1 commit into
mainfrom
feat/237-resolveall-githascontent

Conversation

@jymaire

@jymaire jymaire commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Completes the shared plumbing for per-kind source-of-truth (part-of #237), on top of the already-merged #19 (SourceOfTruth enum + SourceOfTruthOverrides + resolve):

  • SourceOfTruthOverrides.resolveAll(RunContext, flowsOverride, namespaceFilesOverride, fallback) → a Resolved record (flows, namespaceFiles, anyGit, anyKestra, mixed), so TenantSync/NamespaceSync stop duplicating the resolution + gating derivation.
  • Hoists the per-kind gitHasContent(namespaceRoot, flowsSource, filesSource) probe into AbstractGitTask (protected static) so both sync tasks share the same Git-only-namespace narrowing instead of each carrying a copy.

Why a second PR

#19 was squash-merged with only the first commit while the follow-up refactor commit was still on the branch; this PR lands that refactor cleanly on top of current main.

Consumers

kestra-io/plugin-git PR #357 calls both resolveAll and the shared gitHasContent. That PR pins plugin-git-lib:1.2.0-SNAPSHOT (mavenLocal) pending the 1.2.0 release that will include both #19 and this PR.

part-of: kestra-io/plugin-git#237

🤖 Generated with Claude Code

…ce of truth

Adds SourceOfTruthOverrides.resolveAll(...) returning a Resolved record
(flows, namespaceFiles, anyGit, anyKestra, mixed) so TenantSync/NamespaceSync
stop duplicating the resolution+gating derivation, and hoists the per-kind
gitHasContent(namespaceRoot, flowsSource, filesSource) probe into
AbstractGitTask so both tasks share the same Git-only-namespace narrowing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

🧪 Java Unit Tests

TestsPassed ✅SkippedFailedTime ⏱
Java Tests Report74 ran74 ✅0 ⚠️0 ❌6s 670ms

🔁 Unreleased Commits

2 commits since v1.1.0

SHA Title Author Date
dd6ae90 test: cover MockKestraApiServer namespace endpoint (#18) Олег Sep 21, 26, 12:25:17 PM UTC
f673df5 feat(shared): add SourceOfTruth enum and SourceOfTruthOverrides (#19) jymaire Sep 21, 26, 1:21:22 PM UTC

@github-actions

Copy link
Copy Markdown

Tests report quick summary:

success ✅ > tests: 74, success: 74, skipped: 0, failed: 0

unfold for details
Project Status Success Skipped Failed
plugin-git-lib success ✅ 74 0 0

@github-project-automation github-project-automation Bot moved this to To review in Pull Requests Sep 21, 2026
@jymaire jymaire self-assigned this Sep 22, 2026
@jymaire
jymaire merged commit b593c38 into main Sep 23, 2026
4 checks passed
@jymaire
jymaire deleted the feat/237-resolveall-githascontent branch September 23, 2026 04:56
@github-project-automation github-project-automation Bot moved this from To review to Done in Pull Requests Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants