Commit Graph

760 Commits

Author SHA1 Message Date
Kevin Reed 8ae81c10d6
Merge pull request #3603 from stream1972/stream_for_merge
transitioner: Fix race condition with file_upload_handler
2020-05-11 09:50:54 -05:00
Kevin Reed 8fb90941c1
Merge pull request #3694 from hristog/fix-comments
Fix comment typos and remove an outdated todo.
2020-05-11 09:32:46 -05:00
Hristo Georgiev 159c63a4db Fix comment typos and remove an outdated todo. 2020-05-08 13:40:04 +01:00
David Anderson 28c57d6ae3 Server programs: try to print error message if can't connect to DB 2020-05-01 22:57:49 -07:00
Roman Trunov b3fb4c1134 transitioner: Fix race condition with file_upload_handler 2020-04-15 09:35:31 +03:00
Roman Trunov c206e93c7e db_purge: fix truncated mod_time data (field too small for timestamp) 2020-03-28 13:27:05 +03:00
James Molson 86cb25c12d Change my_bool to bool - see https://bugs.mysql.com/bug.php?id=85131 2019-07-11 16:39:08 +02:00
Christian Beer c68d906ac7 Server: initialize struct members
found by Coverity (CIDs 27931 27957 278928)
2019-05-29 20:50:25 +02:00
lfield fe8f0c51fe Added option to purge retired batches 2019-05-15 15:52:40 +02:00
Christian Beer d2442d13b8
Merge pull request #2630 from BOINC/dpa_trickle
server: add the ability to have > 1 stages of trickle handling
2019-02-02 10:56:03 +01:00
Vitalii Koshura 1ce3793c76
Remove unused BOINC_RCSID constants
This fixes #2953

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2019-01-12 23:43:48 +02:00
David Anderson 9e58be90e1 scheduler: parse <wsl> and <wsl_available>
Currently these generate a server log error message.
TODO: add plan class support for WSL
2018-11-07 09:44:23 -08:00
Shawn Kwang 096fde11cf db: explicit add of delete restrict 2018-10-25 10:19:43 -05:00
Shawn Kwang b44a8c8455 db: Renamed database field 'protect' to 'project_specific' 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 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 4531d5644c db: Update index for consent table 2018-09-13 10:08:05 -05:00
Shawn Kwang fd3fb65047 fixed semicolons should be colons 2018-09-12 15:43:13 -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
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 d924bb2eee db: Add necessary DB_CONSENT_TYPE declarations to boinc_db 2018-09-07 11:44:54 -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 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
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 3e365013fb server: add the ability to have > 1 stages of trickle handling
Some projects (namely CPDN) need to process trickle-up messages
with two different daemons.
We do this as follows:
- daemon 1 enumerates messages with handled==0, and sets handled=1
- daemon 2 enumerates messages with handled==1, and sets handled=2
You can then purge records with handled==2

To implement this, trickle_handler.cpp has two global vars,
int handled_enum and int handled_set.
By default these are 0 and 1.
For daemon 2, set them to 1 and 2 in trickle_handler_init()
2018-08-02 12:32:51 -07: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 f1bff5b229 db: fixed schema.sql bugs found in review. 2018-06-11 09:52:53 -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
David Anderson 83b9de7b08
Merge pull request #2518 from BOINC/dpa_credit4
Server: add support for post-assigned credit
2018-05-28 17:32:15 -07: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 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 7ce2370160 db: change index names to not be shortened 2018-05-17 08:46:37 -05:00
Kevin Reed 328a901ff3 db: add indexes in support delete account 2018-05-16 15:38:34 -05:00
David Anderson b857a37008 Add support for post-assigned credit
Add --post_assigned_credit option to validator.
If set, it gets claimed credit from result.claimed_credit
(put there by project's init_result() function).
The claimed credit of the canonical result is the job's granted credit.

Also changed --credit_from_runtime so that it averages
claimed credit across instances,
instead of just using the canonical instance.
2018-05-15 14:55:30 -07: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 12a3933d76 Updated boinc_db.cpp to print email address change columns. 2018-05-14 19:09:00 -05: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
Keith Uplinger 7749c643a6 Added database call for previous email address in c++ code. 2018-05-08 10:02:34 -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
David Anderson 128fcda228 Add fields at end of table 2018-05-07 15:23:01 -07:00
David Anderson cc3171fa5b Update comments in db/schema.sql
Please read these before changing the schema.
Recent schema changes don't follow these rules.
At some point they should be revised.
2018-05-07 15:13:14 -07: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 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