Commit Graph

31255 Commits

Author SHA1 Message Date
Christian Beer 3d91ec6c8f DB: move index from schema.sql to constraints.sql
As noted in the comment this is how it should be.

Signed-off-by: Shawn Kwang <kwangs@uwm.edu>
2018-09-12 11:43:53 -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
Shawn Kwang 60ee7e85f9 Changed/Fixed SQL queries. New queries now function to select users who have consented to stats. exports. 2018-09-12 10:18:20 -05:00
Shawn Kwang 60acd8ccd1 db: Fixed bug where STATSEXPORTS was spelled incorrectly. 2018-09-12 10:00:27 -05:00
Shawn Kwang 75d4716369 db_dump changes - use consent_type table to dump user and host stats based on consent.
User and host table dump modified - use consent table to determine if user has consented to stats. exports.
Look up STATSEXPORT consent type and determine if enabled; if so, change the SQL statement to use consent table. Only if a user has consented to statistics exports is that user's data returned and exported.
2018-09-10 10:46:16 -05:00
Shawn Kwang d924bb2eee db: Add necessary DB_CONSENT_TYPE declarations to boinc_db 2018-09-07 11:44:54 -05:00
Shawn Kwang 20d195e54e web: Fixed bug where disabled ENROLL consent_type still sent user to user-agreement Web form. 2018-09-06 12:48:13 -05:00
Shawn Kwang d094f16b97 web: renamed 'protectedct' field 'protect'. 2018-08-31 13:58:54 -05:00
Shawn Kwang 59697b7929 db: Renamed database field 'protectedct' to 'protect'. 2018-08-31 13:58:28 -05:00
Shawn Kwang 06ba429ca4 db: Add consent_type table to C++ database API. 2018-08-28 13:24:20 -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
Shawn Kwang 71046d4cef web: Fixed bug found in Scrutinizer. 2018-06-15 16:07:35 -05: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 8e023cc665 web: Replaced SESSION with temporary cookies.
Temporary cookies hold the userid information so the subsequent form can set the consent.
2018-06-11 11:43:16 -05:00
Shawn Kwang f7332ccdfb web: Add new constant for terms of use file.
Add new constant in project.inc, TERMSOFUSE_FILE, which is a path to the project's terms of use. This defaults to the previous location, a text file in the project's base directory.

get_project_config.php RPC modified to use this new constant, but if it is not defined, then the code will attempt to use the old path: this should be backwards-compatible for projects that do not update project.inc, but have a terms_of_use.txt file in their base directory.

HTML code modified to use this new constant.
2018-06-11 11:09:17 -05:00
Shawn Kwang f1bff5b229 db: fixed schema.sql bugs found in review. 2018-06-11 09:52:53 -05:00
Shawn Kwang 8944ba5ca7 web: minor changes found in review 2018-06-11 09:38:35 -05:00
Shawn Kwang 4e72cfad7c web: removed commented-out code. 2018-06-04 12:50:54 -05:00
Shawn Kwang f172822a94 web: Exiting users agree to terms of use when logging in.
Renamed 'optin consent' to 'agree to terms of use'. New config.xml variable name.
Decoupled new user agree to terms of use from existing users. If there is a ENROLL terms of use, and the project has enabled the 'enable_login_mustagree_termsofuse' boolean, then existing users must agree to the terms of use when the login, and this is recorded in the consent table.
2018-06-04 11:26:43 -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 a96ed6b4be web: modified RPCs to use new consent_type table definitions.
Added check consent type function for RPCs and Web forms.
2018-06-04 11:26:39 -05:00
Shawn Kwang 6482527bb5 web: refactored code to remove config option enable_record_optin_consent
Now the code uses the enabled flag for the consent_type ENROLL to detmerine if a terms of use
is showed to the user and whether or not consent is recorded for this general terms of use.
2018-06-04 11:26:38 -05:00
Shawn Kwang 1f70734f5f web: modified privacy prefs code
Privacy prefs now loads the the consent_types found in the database table dynamically based on the enabled and privacypref flags introduced.
Removed enable_record_optin_consent config settings. Now the 'enabled' field in consent_type takes its place, one a consent_type by consent_type basis.
2018-06-04 11:26:35 -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 0cd3aab3a3 web: added error message when attempting to set unknown consent_type 2018-05-24 14:21:38 -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 2d4f9e4236 web: updated form to use new consent table definitions 2018-05-24 12:03:18 -05:00
Shawn Kwang cbd1b5cc02 web: added consent table to delete functionality. 2018-05-24 12:02:43 -05:00
Shawn Kwang 35b446f243 web: Update web RPCs to use new consent defintions. 2018-05-24 12:02:31 -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 a8d7be5854 web: Misc minor changes.
Changed name of consent function to be more generic.
Added translation of ops page text.
2018-05-22 15:40:18 -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 284694c704 web: Fixed bug, variable restored. 2018-05-17 14:47:02 -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 4ad801ff30 web: project privacy preferences modified to add 'consent to data export' option.
Added new preferences sub-class for consent table modification.
Added privacy preference form item to record user giving consent to data exports.
User's consent is recorded in the consent table.
2018-05-17 14:07:46 -05:00
Kevin Reed 19bf320d7e
Update CODE_OF_CONDUCT.md
Add single space
2018-05-17 13:31:00 -05:00
Kevin Reed 958e8c22aa
Merge pull request #2428 from Ageless93/master
Code of Conduct for BOINC on Github
2018-05-17 13:29:56 -05:00
Shawn Kwang 16846e4986 web: Make sure that the terms of use file exists as well as opt-in consent project config. 2018-05-17 10:50:23 -05:00
Oliver Bock 16bbbea450
Merge pull request #2472 from BOINC/knr_right_to_erase
Delete Account
2018-05-17 17:36:54 +02: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 b6804ab5de web: add mising closing parenthesis 2018-05-17 09:15:27 -05:00
Kevin Reed ae7200490a web: Make the delay after invalidating the autheniticator something that
can be customized by projects in the project.inc file
2018-05-17 08:56:45 -05:00
Kevin Reed 7ce2370160 db: change index names to not be shortened 2018-05-17 08:46:37 -05:00
tristanolive 1a3f1d78b0
Merge pull request #2516 from drshawnkwang/drupal_update-fontawesome
Drupal: Update fontawesome library
2018-05-17 09:38:03 -04:00