-
Notifications
You must be signed in to change notification settings - Fork 35
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
✨ Analysis archiving #493
✨ Analysis archiving #493
Conversation
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
migration/v10/model/analysis.go
Outdated
type Analysis struct { | ||
Model | ||
Effort int | ||
Archived JSON `gorm:"type:json"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hint: Added ^
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
migration/v10/model/analysis.go
Outdated
|
||
// | ||
// ArchivedAIssue resource created when issues are archived. | ||
type ArchivedAIssue struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the A in the middle of this name a typo? It doesn't match how it's aliased elsewhere.
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Add analysis archiving.
Adds (2) fields to the Analysis:
When an analysis is created, all previously unarchived (archived=FALSE) resources will be archived. There should not be more than one but the logic will do them all just to be sure. Archived is:
fixes: #428