THREESCALE-6077: job sync system zync#4307
Open
jlledom wants to merge 3 commits into
Open
Conversation
Replaced the hardcoded batch size value (100) with a module-level BATCH_SIZE constant to improve maintainability and eliminate magic numbers. This makes it easier to adjust batch processing behavior across all zync resync tasks from a single location.
Introduces a new zync:resync:full task that comprehensively resyncs all provider accounts, services, proxies, and applications with the Zync service. The task publishes domain change events, OIDC configuration updates, and application creation events to ensure complete synchronization. Supports selective resync via PROVIDER_ID environment variable for troubleshooting individual providers, otherwise processes all active (non-suspended, non-deleted) providers in the system.
Adds test suite for the zync:resync:full rake task with coverage for: - Base full resync across all providers, services, and applications - PROVIDER_ID environment variable filtering to scope resync to a single provider - Exclusion of suspended providers from resync - Exclusion of scheduled_for_deletion providers from resync Tests use helper methods (expect_full_resync_events and expect_no_resync_events) to reduce duplication and improve readability. Organized into nested test classes (DomainsSyncTest and FullSyncTest) for better test organization. Assisted-by: Claude Code
❌ 17 blocking issues (19 total)
|
akostadinov
reviewed
May 28, 2026
| task domains: [:provider_domains, :proxy_domains] | ||
|
|
||
| desc 'Full resync' | ||
| task full: :environment do |
Contributor
There was a problem hiding this comment.
Can we define this task as empty body but just add all resync types as dependencies?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Just a rake task to dump all existing data from porta to zync, in case we need to do a full resync after say a db reset.
It also adds some tests for the new task.
Which issue(s) this PR fixes
https://redhat.atlassian.net/browse/THREESCALE-6077
Verification steps
or