Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F22961332
D17863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D17863.diff
View Options
Index: grails-app/services/securityreview/ProjectService.groovy
===================================================================
--- grails-app/services/securityreview/ProjectService.groovy
+++ grails-app/services/securityreview/ProjectService.groovy
@@ -110,10 +110,18 @@
counter++
log.info("Added project " + name)
/**BSTAD-435 : When the value for "Update CDETS visibility" flag is changed, it should be captured in history*/
- np.addToActivities(new Activity(actor:"system", action: "CDET Visibility Flag Update", detail: "Update_CDETS_Visibility set to" + "-" + cdetflag))
-
-
+ np.addToActivities(new Activity(actor:"system", action: "CDET Visibility Flag Update", detail: "Update_CDETS_Visibility set to" + "-" + cdetflag))
}
+ else {
+ boolean bool_update_cdets_visibility = (update_cdets_visibility=="N"?false:true)
+ if(p.update_cdets_visibility!=bool_update_cdets_visibility){
+ p.update_cdets_visibility = !p.update_cdets_visibility
+ p.save(flush:true, failOnError:true)
+ updateCounter++
+ log.info("Updated project " + name)
+ }
+ log.info("Project " + name + " already exists")
+ }
}
log.info("Projects list validated against CDETS. ${counter} new projects added and ${updateCounter} projects updated")
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 29, 6:43 AM (11 h, 45 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
17376148
Default Alt Text
D17863.diff (1 KB)
Attached To
Mode
D17863: <<TEST>
Attached
Detach File
Event Timeline
Log In to Comment