Shawn Kwang
f4df245f67
ops: Fix bug in team import, wrong include path fixed.
2018-11-12 08:45:53 -06:00
Shawn Kwang
01ed6b7cfa
ops: remove mct_delete function
2018-10-25 14:09:59 -05:00
Shawn Kwang
096fde11cf
db: explicit add of delete restrict
2018-10-25 10:19:43 -05:00
Shawn Kwang
953dd4757e
ops: Removed delete functionality for consent_types.
...
Admin may not delete consent types after creation. They may still be disabled.
2018-10-25 09:40:42 -05:00
Shawn Kwang
c817630afa
Merge branch 'master' into sak-useroptin-dbaddconsent
...
Fixed conflicts and prepare for merge into master.
2018-10-22 10:48:46 -05:00
Shawn Kwang
7d7c187e67
ops: fixed insert statement to use all variables
2018-10-22 08:49:07 -05:00
David Anderson
ff156b51c8
Fix bug in team_import.php
...
Also make get_versions.php work when PHP not able to do SSL
2018-10-18 16:02:56 -07:00
Shawn Kwang
992ceced0d
web: Renamed database field 'protect' to 'project_specific'.
...
Boolean is inverse of what it was before.
Conflicts:
html/ops/db_update.php
2018-09-17 12:55:55 -05:00
Shawn Kwang
90bdd9196a
web: defined CONSENT_TYPE_ENROLL and replaced string 'ENROLL' with this define.
...
No changes to functionally, only a new define().
2018-09-17 12:55:55 -05:00
Shawn Kwang
4cb30b1a8b
Removed unnecessary primary_key from insert statements.
2018-09-17 12:55:50 -05:00
Shawn Kwang
e4df047685
web: Misc small fixes.
...
Added tra() function.
2018-09-17 09:50:00 -05:00
Shawn Kwang
14fad89838
db: Added SQL view to schema and db_update.php
...
This view represents the latest consent status of all users and all consent_type_ids. It is what is often needed for determining if a user ABC has consented to consent_type XYZ.
2018-09-13 10:41:16 -05:00
Shawn Kwang
9593f1848c
Fixed missing comma
2018-09-12 11:50:20 -05:00
Shawn Kwang
cbce74df7c
Merge branch 'master' into sak-useroptin-dbaddconsent
...
Prepare for merging this development branch into master.
Conflicts:
html/ops/db_update.php
2018-09-12 11:48:25 -05:00
Shawn Kwang
c4c2ae69ba
Added additional index to consent table as well as foreign_key index.
2018-09-12 11:32:40 -05:00
Kevin Reed
436409a40b
server: Replace host index on userid with one based on userid and host_cpid
2018-09-07 10:10:03 -05:00
Shawn Kwang
d094f16b97
web: renamed 'protectedct' field 'protect'.
2018-08-31 13:58:54 -05:00
Shawn Kwang
74a545460a
Modified variable 'protected' in consent_type table to be 'protectedct'. 'protected' is a reserve word in some languages: C++.
2018-08-28 12:41:44 -05:00
Kevin Reed
77f9078398
server - add indexes to host in order to make scheduler requests quick
...
for users with large number of devices (i.e at least 50k)
2018-08-23 15:10:48 -05:00
David Anderson
ae431f96d5
web: code cleanup in delete user area
...
- functions generally return zero on success
- improve function names
- comment formatting
See https://boinc.berkeley.edu/trac/wiki/CodingStyle
todo: fix translatable strings
2018-07-14 20:14:14 -07:00
Shawn Kwang
ffdc327509
web: Web code modified to work with new database table definitions.
...
Modified web code to use consent_type_id in place of consent_name in various places.
RPCs also modified to use the new definitions.
2018-06-15 15:38:39 -05:00
Shawn Kwang
431d8d6542
db: Modified database definitions for consent_type table.
...
Consent_type table uses id, and consent table now refers to consent_type_id instead of name.
Additionally, added index of consent_time to consent table.
2018-06-15 14:50:48 -05:00
Shawn Kwang
cc6efacb8d
db: Reorganize database changes, and add indices to new tables.
...
Added indices to consent and consent_type tables.
Moved initial content of consent_type table to new SQL file: content.sql
Modified database.py to insert new content.sql into database. In python autocommit is turned off by default, thus a manualy commit() was added.
Updated db_update.php to match changes in db/.
2018-06-12 12:08:26 -05:00
Shawn Kwang
21b6c3eefb
web: modified team import to use check_consent_type function.
2018-06-04 11:26:43 -05:00
Shawn Kwang
a66705929f
web: modified manage consent type ops page to handle new fields in consent_type table.
2018-06-01 13:29:51 -05:00
Shawn Kwang
d6dd0945e9
web: Modified consent_type table with new fields.
...
Modified the consent_type table to include fields 'enabled' and 'privacypref'.
2018-06-01 13:24:10 -05:00
Shawn Kwang
b0557ef161
web: updated preferences for stats exports to use new consent table definitions.
2018-05-24 12:03:35 -05:00
Shawn Kwang
4fa8a9faac
web: Updated database, consent and consent_type tables.
...
Also updated boinc_db.inc to add delete_for_use and reflect new table definitions.
2018-05-24 12:00:00 -05:00
Shawn Kwang
f6437a821a
ops: If enable record consent is enabled, import team will not create the user, since there is no way for the user to give consent.
2018-05-18 10:06:28 -05:00
Shawn Kwang
07607ed41d
web: Fixed bug found by Scrutinizer.
...
Removed unused code.
2018-05-17 14:30:11 -05:00
Shawn Kwang
039db259b5
Merge branch 'master' into sak-useroptin-dbaddconsent
2018-05-17 14:14:33 -05:00
Shawn Kwang
06e162ed9d
web: added additional consent_type for data exports.
2018-05-17 10:29:13 -05:00
Kevin Reed
83ea2bc9ec
web: fixing spacing identified by scruitinizer
2018-05-17 09:58:03 -05:00
Kevin Reed
0c2b0bc88a
web: remove excess space
2018-05-17 09:46:08 -05:00
Kevin Reed
7ce2370160
db: change index names to not be shortened
2018-05-17 08:46:37 -05:00
Kevin Reed
7172942bb0
web: reorganize code so that error_page is not called in inc files
2018-05-16 16:08:19 -05:00
Kevin Reed
328a901ff3
db: add indexes in support delete account
2018-05-16 15:38:34 -05:00
Kevin Reed
239af2d508
Merge branch 'master' into knr_right_to_erase
...
Conflicts:
html/ops/db_update.php
2018-05-15 13:09:11 -05:00
David Anderson
02a59808b9
Merge pull request #2500 from Uplinger/email_change_notification
...
Email change notification
2018-05-15 09:42:20 -07:00
Keith Uplinger
fecbfa3bd2
Modified the table definition for user table to have email_addr_change_time to be indexed per davids suggestion.
2018-05-10 09:34:39 -05:00
Kevin Reed
fd25c43ca4
server: change create_time on host_deleted and user_deleted to double
...
from int
2018-05-08 14:43:16 -05:00
Shawn Kwang
d433bedd02
web: Fixed bugs found by Scrutinizer.
2018-05-08 10:25:13 -05:00
David Anderson
d0fcd1e729
Various tweaks to Keith's changes.
...
Keith, call me if you want to discuss any of these.
2018-05-07 16:15:51 -07:00
Kevin Reed
cff14c4107
Merge branch 'master' into knr_right_to_erase
...
Conflicts:
html/inc/user_util.inc
2018-05-07 13:09:18 -05:00
Kevin Reed
f868227915
web/server: change primary key of user_deleted to userid and
...
host_deleted to hostid
2018-05-07 11:17:45 -05:00
Shawn Kwang
49599f2977
web ops: Add manage consent type page to HTML admin ops.
...
Admin may add addiational consent types to the table.
2018-05-04 18:43:52 -05:00
Shawn Kwang
23640e9a8a
web: Add new tables to database.
...
Add tables consent and consent_type. Projects automatically created with a pre-defined consent_type. When projects update database, pre-defined consent_type will be added as well.
2018-05-04 18:40:14 -05:00
Kevin Reed
b7bb437aba
web: change primary key for user_deleted and host_deleted to simply be
...
id instead of userid and hostid
2018-05-03 10:38:22 -05:00
David Anderson
678f151037
Factor passwd hash logic into a function
...
... rather than having it duplicated in 3 places.
Please review https://boinc.berkeley.edu/trac/wiki/CodingStyle
2018-05-02 20:09:37 -07:00
Kevin Reed
4002f6d372
web: add logic to insert into user_deleted and host_deleted when account
...
is removed from the system. add task to remove entries from those
tables after 60 days.
2018-05-02 15:36:57 -05:00