Skip to content

Commit

Permalink
Remove dropped feature 'save filters' (#1718)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlescd authored Aug 28, 2024
1 parent 9093284 commit f409a2c
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 413 deletions.
89 changes: 0 additions & 89 deletions app/controllers/UserReportsFiltersController.scala

This file was deleted.

11 changes: 0 additions & 11 deletions app/loader/SignalConsoApplicationLoader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ import repositories.subscription.SubscriptionRepositoryInterface
import repositories.tasklock.TaskRepository
import repositories.user.UserRepository
import repositories.user.UserRepositoryInterface
import repositories.usersettings.UserReportsFiltersRepository
import repositories.usersettings.UserReportsFiltersRepositoryInterface
import repositories.website.WebsiteRepository
import repositories.website.WebsiteRepositoryInterface
import services._
Expand Down Expand Up @@ -734,14 +732,6 @@ class SignalConsoComponents(
controllerComponents
)

val userReportsFiltersRepository: UserReportsFiltersRepositoryInterface = new UserReportsFiltersRepository(dbConfig)
val userReportsFiltersOrchestrator = new UserReportsFiltersOrchestrator(userReportsFiltersRepository)
val userReportsFiltersController = new UserReportsFiltersController(
userReportsFiltersOrchestrator,
cookieAuthenticator,
controllerComponents
)

val siretExtractorService = new SiretExtractorService(applicationConfiguration.siretExtractor)
val siretExtractorController =
new SiretExtractorController(siretExtractorService, cookieAuthenticator, controllerComponents)
Expand Down Expand Up @@ -813,7 +803,6 @@ class SignalConsoComponents(
reportedPhoneController,
reportBlockedNotificationController,
blacklistedEmailsController,
userReportsFiltersController,
signalConsoReviewController,
siretExtractorController,
importController,
Expand Down
2 changes: 1 addition & 1 deletion app/models/User.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object User {
object UserPermission extends Enumeration {
val listReports, updateReport, deleteReport, deleteFile, createReportAction, activateAccount, updateCompany,
editDocuments, subscribeReports, manageAdminOrAgentUsers, softDeleteUsers, viewDeletedUsers,
manageBlacklistedEmails, crudUserReportsFilters, generateConsumerReportEmailAsPDF, viewConsumerReviewDetails =
manageBlacklistedEmails, generateConsumerReportEmailAsPDF, viewConsumerReviewDetails =
Value

implicit val enumReads: Reads[UserPermission.Value] = EnumUtils.enumReads(UserPermission)
Expand Down
19 changes: 0 additions & 19 deletions app/models/UserReportsFilters.scala

This file was deleted.

2 changes: 0 additions & 2 deletions app/models/UserRole.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ object UserRole extends PlayEnum[UserRole] {
UserPermission.listReports,
UserPermission.createReportAction,
UserPermission.subscribeReports,
UserPermission.crudUserReportsFilters,
UserPermission.viewConsumerReviewDetails
)
override val isAgentOrAdmin = true
Expand All @@ -32,7 +31,6 @@ object UserRole extends PlayEnum[UserRole] {
UserPermission.listReports,
UserPermission.createReportAction,
UserPermission.subscribeReports,
UserPermission.crudUserReportsFilters,
UserPermission.viewConsumerReviewDetails
)
override val isAgentOrAdmin = true
Expand Down
32 changes: 0 additions & 32 deletions app/orchestrators/UserReportsFiltersOrchestrator.scala

This file was deleted.

47 changes: 0 additions & 47 deletions app/repositories/usersettings/UserReportsFiltersRepository.scala

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions app/repositories/usersettings/UserReportsFiltersTable.scala

This file was deleted.

1 change: 1 addition & 0 deletions conf/db/migration/default/V36__drop_filters.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE user_reports_filters
8 changes: 0 additions & 8 deletions conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,6 @@ GET /api/blacklisted-ips controll
POST /api/blacklisted-ips controllers.AdminController.createBlacklistedIp()
DELETE /api/blacklisted-ips/:ip controllers.AdminController.deleteBlacklistedIp(ip: String)

POST /api/user-reports-filters controllers.UserReportsFiltersController.save()
GET /api/user-reports-filters/:name controllers.UserReportsFiltersController.get(name: String)
GET /api/user-reports-filters controllers.UserReportsFiltersController.list()
DELETE /api/user-reports-filters/:name controllers.UserReportsFiltersController.delete(name)
PUT /api/user-reports-filters/rename/:oldName/:newName controllers.UserReportsFiltersController.rename(oldName, newName)
PUT /api/user-reports-filters/default/:name controllers.UserReportsFiltersController.setAsDefault(name)
DELETE /api/user-reports-filters/default/:name controllers.UserReportsFiltersController.unsetDefault(name)

GET /api/review controllers.SignalConsoReviewController.signalConsoReview()

# Siret extractor gateway
Expand Down
Loading

0 comments on commit f409a2c

Please sign in to comment.