Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add dependency relationship to RuleSets #427

Merged
merged 2 commits into from
Jun 30, 2023

Conversation

mansam
Copy link
Collaborator

@mansam mansam commented Jun 29, 2023

No description provided.

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
@mansam mansam requested a review from jortel June 29, 2023 19:12
@mansam mansam changed the title Add dependency relationship to RuleSets ✨ Add dependency relationship to RuleSets Jun 29, 2023
@mansam mansam marked this pull request as ready for review June 29, 2023 19:47
jortel

This comment was marked as outdated.

type RuleSetDependency struct {
RuleSetID uint `gorm:"primaryKey"`
DependsOnID uint `gorm:"primaryKey"`
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like it would be good to avoid defining the RuleSetDependency model. curious about why query that table instead of the RuleSet?
Re: BeforeUpdate() - How is Create protected?

@jortel jortel dismissed their stale review June 29, 2023 20:23

Quick question.

Copy link
Contributor

@jortel jortel left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
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