]> source.dussan.org Git - sonarqube.git/commit
SONAR-3258 No more delete users in the Sonar DB but deactivate them
authorFabrice Bellingard <bellingard@gmail.com>
Fri, 10 Feb 2012 17:43:25 +0000 (18:43 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Fri, 10 Feb 2012 17:43:25 +0000 (18:43 +0100)
commitc2cb97c242b64f0815d01ed5fa193fffadc97bca
treef46591e7a1eb2177213fcdad8c01fe51ea837a3d
parentb8009697f24b3cf75cf90021f09c8161388ed0a6
SONAR-3258 No more delete users in the Sonar DB but deactivate them

- When deleting:
  - user is deactivated ('active' set to false)
  - its roles are deleted
  - its properties are deleted
  - its filters & active filters are deleted
  - its dashbaords & active dashboards are deleted
- Login is now not possible for deactivated users
sonar-core/src/main/java/org/sonar/jpa/entity/SchemaMigration.java
sonar-core/src/main/resources/org/sonar/core/persistence/rows-derby.sql
sonar-core/src/main/resources/org/sonar/core/persistence/schema-derby.ddl
sonar-server/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/users_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/models/user.rb
sonar-server/src/main/webapp/WEB-INF/db/migrate/257_add_active_field_on_users.rb [new file with mode: 0644]
sonar-server/src/main/webapp/WEB-INF/db/migrate/README.txt