fix(tasks): add domain support to TaskSchedule and fix related href r…#1308
Draft
git-hyagi wants to merge 1 commit into
Draft
fix(tasks): add domain support to TaskSchedule and fix related href r…#1308git-hyagi wants to merge 1 commit into
git-hyagi wants to merge 1 commit into
Conversation
…endering Patches pulpcore to make TaskSchedule domain-aware (unique per name+domain) and fixes RelatedField rendering wrong domain in hrefs. Updates the Lightwell sync schedule to dispatch in the lightwell domain and cleans up stale schedules from the default domain. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds domain awareness to TaskSchedule and Lightwell sync scheduling, and patches pulpcore to ensure TaskSchedules are unique per (name, domain) and RelatedField hrefs use the correct domain. Sequence diagram for lightwell_sync_schedule domain-aware schedulingsequenceDiagram
participant Scheduler as lightwell_sync_schedule
participant DomainModel as Domain
participant TaskScheduleModel as TaskSchedule
Scheduler->>DomainModel: objects.get(name="lightwell")
alt [Domain exists]
Scheduler->>TaskScheduleModel: objects.filter(name=name)
Scheduler->>TaskScheduleModel: exclude(pulp_domain=lightwell_domain)
Scheduler->>TaskScheduleModel: delete()
Scheduler->>TaskScheduleModel: objects.update_or_create(name=name, pulp_domain=lightwell_domain)
else [Domain.DoesNotExist]
Scheduler-->>Scheduler: return
end
Entity relationship diagram for TaskSchedule domain supporterDiagram
Domain {
int id
string name
}
TaskSchedule {
int id
string name
int pulp_domain_id
}
Domain ||--o{ TaskSchedule : pulp_domain
TaskSchedule }o--o{ TaskSchedule : name_pulp_domain_unique
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
…endering
Patches pulpcore to make TaskSchedule domain-aware (unique per name+domain) and fixes RelatedField rendering wrong domain in hrefs. Updates the Lightwell sync schedule to dispatch in the lightwell domain and cleans up stale schedules from the default domain.
ref: https://redhat.atlassian.net/browse/PULP-1992
Summary by Sourcery
Add domain awareness to scheduled Lightwell sync tasks and patch pulpcore to support domain-scoped task schedules and correct domain href rendering.
Bug Fixes:
Enhancements: