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

refactor(rule): rule pkg structure #95

Merged
merged 9 commits into from
Apr 20, 2022
Merged

refactor(rule): rule pkg structure #95

merged 9 commits into from
Apr 20, 2022

Conversation

rahmatrhd
Copy link
Member

No description provided.

@rahmatrhd rahmatrhd marked this pull request as ready for review April 20, 2022 05:21
repository: NewRepository(db),
templateService: templates.NewService(templateRepository),
repository: repository,
templateService: templates.NewService(templateRepository),
Copy link
Member

Choose a reason for hiding this comment

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

Let's just change this with templateService.

}

if err := s.postRuleGroupWith(ctx, rule, rulesWithinGroup, client, namespace.Urn); err != nil {
fmt.Printf("err: %v\n", err)
Copy link
Member

Choose a reason for hiding this comment

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

let's remove this print statement

@whoAbhishekSah whoAbhishekSah merged commit ac07304 into main Apr 20, 2022
@whoAbhishekSah whoAbhishekSah deleted the refactor/rules branch April 20, 2022 07:36
ravisuhag pushed a commit that referenced this pull request Aug 21, 2022
* refactor(rule): change repository to accept and return domain and pass param as reference

* refactor(rule): move repository into store

* refactor(rule): move upsert business logic from repository to service

* refactor(rule): build select query using gorm's builder

* test(rule): fix tests after refactor

* chore(rule): remove unnecessary log

* chore(rule): replace ListByGroup with Get

* chore(rule): change NewService param to accept template service instead of template repository

* test(rule): add test cases for rollbacks returing error
ravisuhag pushed a commit that referenced this pull request Aug 21, 2022
* refactor(rule): change repository to accept and return domain and pass param as reference

* refactor(rule): move repository into store

* refactor(rule): move upsert business logic from repository to service

* refactor(rule): build select query using gorm's builder

* test(rule): fix tests after refactor

* chore(rule): remove unnecessary log

* chore(rule): replace ListByGroup with Get

* chore(rule): change NewService param to accept template service instead of template repository

* test(rule): add test cases for rollbacks returing error
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