Commit Graph

735 Commits

Author SHA1 Message Date
David Anderson ce8e78e10e web: add script for granting badges based on per-subproject credit totals
See http://boinc.berkeley.edu/trac/wiki/PerAppCredit
2014-08-18 13:48:27 -07:00
David Anderson c4a480be29 XML stats export: fix bug in credit-by-app files 2014-08-18 10:00:59 -07:00
David Anderson 8f0893b140 db_dump: export credit_by_app files in XML stats
It does this by running html/ops/export_credit_by_app.php.
I added a cmdline arg to this script saying where to write the files.
2014-08-17 23:29:41 -07:00
David Anderson 126183ce19 server: add script to export per-app credit data as XML
Add an official notion of "sub-project": see
http://boinc.berkeley.edu/trac/wiki/PerAppCredit
2014-08-15 16:20:40 -07:00
David Anderson dbd2d03a0d server/web: add support for per-application credit
See http://boinc.berkeley.edu/trac/wiki/PerAppCredit
If enabled (by the <credit_by_app> config flag)
validators will maintain on a per-(app, user, credit type) basis,
and same for teams,
in new DB tables credit_user and credit_team.
This info is displayed in the web site, on user and team pages,
using project-supplied functions to generate the HTML.

Note: update_stats doesn't decay the recent-average values
for per-app credit; I'll add this if needed.
2014-08-15 14:01:32 -07:00
David Anderson 3788d0c337 web: code cleanup 2014-08-11 14:57:34 -07:00
David Anderson cd1a12d4f4 web: show badges in more places
Also: improve the badge admin page
Also: zebra-stripe top user and team lists
2014-08-11 09:50:06 -07:00
David Anderson e6b7da8278 admin web: allow changing plan class of app versions 2014-07-25 12:11:23 -07:00
David Anderson b9f0fe0298 admin web: add "assigned jobs" link 2014-07-24 23:42:45 -07:00
David Anderson 3156ea56fd delete spammers script: fix --id_range command 2014-07-23 09:51:02 -07:00
David Anderson 9df6e43863 web: handle the case of missing user records in a few places
The delete-spammers script was creating dangling user references
(although this is now fixed).
Detect these dangling references and clean them up.
2014-07-12 14:32:59 -07:00
David Anderson cb1bb4069a web: be more thorough when deleting users
When deleting a spammer, delete
- forum_logging
- private messages
- notifications

Also, when displaying private messages, check if sender
doesn't exist, and delete if so
2014-07-11 15:20:01 -07:00
David Anderson 41a2b2c658 admin web: fix warning 2014-06-24 09:09:36 -07:00
David Anderson a243e19bdc web: replace lookup_* functions with their DB API equivalents
also:
- fix bug in db_cleanse.php
- replace some uses of deprecated mysql_* API
2014-06-23 18:29:20 -07:00
David Anderson eebfca71d3 delete_spammers script: log start/end times 2014-06-21 09:32:41 -07:00
David Anderson 8ffef379b8 update_forum_activities: handle team forum posts properly 2014-06-18 16:39:12 -07:00
David Anderson 9fbe00a2ff delete_spammers script: tweaks 2014-06-16 16:52:58 -07:00
David Anderson b7478c09c3 delete_spammers: fix comments 2014-06-10 14:03:12 -07:00
David Anderson 780284b9fa delete_spammers tweak 2014-06-10 00:45:45 -07:00
David Anderson d6962a70f0 delete_spammers.php script: add feature for delete forum spammers 2014-06-10 00:39:58 -07:00
David Anderson 4616d1d0c3 mass email scripts: check for PHP_MAILER properly 2014-06-06 15:57:52 -07:00
David Anderson f02c349800 server: add "beta" flag to app versions
Add beta flag to app version table.
If set, send that app version only to users whose prefs allow beta work.
2014-06-05 09:51:01 -07:00
David Anderson d337f91563 admin web: link to app version details from app version mgt page 2014-06-03 14:00:14 -07:00
David Anderson 68ba20c9d6 admin web: tweak 2014-06-01 10:14:13 -07:00
David Anderson b3a36cd8ca admin: add --delete_banished option to delete_spammers.php 2014-05-20 10:41:44 -07:00
David Anderson 9ba2f03669 admin tools: change delete_spammers.php to delete message board posts too
Also add --id_range N M command (delete range of users)
Also forum moderation "done" pages now contain link back to forum or thread
2014-05-11 00:36:45 -07:00
David Anderson cf5a7d3770 admin web: fix bug in login function 2014-05-08 16:37:22 -07:00
David Anderson e5810f3061 client/server: change implementation of "exact fraction done".
My last commit did this using a new API call.
But this would require rebuilding apps any time you want to change it;
too much work.
So instead make it an attribute of apps,
which you can set via the admin web interface.

Corresponding changes to client.
2014-05-04 00:02:32 -07:00
U-X1\korpela c6995ce06b These files aren't modified. Git claims otherwise.
Subversion was so much better then git.  I spend all my effing time dealing
with git's issues.  What a PITA.
2014-04-29 07:59:06 -07:00
David Anderson 6c3a5792e2 admin web: display badge images correctly in badge admin page 2014-04-21 13:18:25 -07:00
David Anderson 2f5c452b33 admin web: fix bug when marking app non-CPU-intensize 2014-04-20 00:29:32 -07:00
David Anderson af99251e79 web: let projects disable forums
Do this by putting
define("DISABLE_FORUMS", true);
in your html/project/project.inc.

If this is set, admin users can still see enough forum functionality
to post and edit news items
(this is linked to from the Admin web interface).

Other users, or non-logged-in access, sees news but no forums
or forum-related info.
2014-04-18 15:54:28 -07:00
David Anderson 6706f5c893 admin: add "delete_spammers.php": script to help delete spam profiles 2014-04-17 12:41:04 -07:00
David Anderson 936556b4ac Admin web: don't use project banner; use stylesheets
It doesn't make sense to show the project banner in admin pages;
the banner typically has (broken) links to non-admin pages.

Also, include basic stylesheets in admin pages.
2014-04-03 12:14:37 -07:00
David Anderson fc7c75b200 server: parse peak memory/disk info from client, store in DB, display in web
The latest client reports the peak working set size, swap size,
and disk usage for completed jobs.
Add fields to the results table to store these.
Parse them in scheduler request messages, and write to the DB.
Display them in the result web page.

This data can be used to improve (or even automate)
the job estimates for memory and disk usage.
2014-04-02 19:35:59 -07:00
David Anderson f5fea9c3d3 team_import script: decode entities properly 2014-03-28 14:52:37 -07:00
David Anderson 0cdee0af4e Fixes for the BOINC-wide teams site
- the exported team list wasn't parsing due to non-ASCII characters
    in some team descriptions.
    htmlspecialchars() wasn't doing the job.
    Use DOMDocument instead.
- If SHOW_NONVALIDATE_TEAMS is set (as on the BOINC-wide teams site)
    show teams whose founders email addresses are not validated
    (and hence won't be exported).
2014-03-07 00:37:44 -08:00
David Anderson 5381def663 server: use gpu_active_frac in scheduling decisions
On some hosts, gpu_active_frac may be much less than active_frac
(i.e., GPUs may be available much less than CPUs).
Use gpu_active_frac in the following places:

- scheduler: in estimating the elapsed time of jobs,
    to decide whether they can meet deadline
- scheduler: in computing the effective speed of a (host, app version),
    when deciding what size class it belongs to
- size_census: in computing effective speed of (host, app versions)

(Previously, we were just using active_frac in all these cases)
2014-03-06 21:23:02 -08:00
David Anderson df1d8e2bde server: store and display gpu_active_frac
- gpu_active_frac is the fraction of time GPU use is allowed
  while the client is running.
  Previously the client reported it but we weren't storing it in the DB.
  We may need it in the future for batch scheduling logic.
- fix a crashing bug in scheduler
- client: minor message tweak
2014-03-06 13:23:52 -08:00
David Anderson bb9d53336e server: add app_select_edit.php script
Use this if your project allows user app selection,
and you add a new app.
It makes the new app selected for all users.
2014-03-04 11:14:15 -08:00
David Anderson 6f6168896b admin web: code cleanup in manage_user.php (ancient, undergrad-written) 2014-03-03 00:44:18 -08:00
David Anderson 20c11bccf7 fixes for Android/x86 build scripts, from Jon 2014-03-02 22:47:24 -08:00
David Anderson 28ff9223ab Server: add feature to mass email script to send to ID list 2014-03-01 12:07:46 -08:00
David Anderson 603bca7b0b admin web: fix small bugs in manage_user.php 2014-02-21 12:05:39 -08:00
David Anderson 054d70b4ee Job-size matching: fix bug in size_census.php, and add an --all_apps option. From Jon Sonntag 2014-02-20 09:43:46 -08:00
David Anderson 9220ceb02a Admin web: deprecate problem_host.php, which sends a confusing email to user 2014-02-05 17:21:03 -08:00
David Anderson fe1db8060a Remote job submission: allow a limit on the # of in-progress jobs per user 2014-01-13 21:52:55 -08:00
David Anderson b12b85cfdb Admin web: convert create_forums.php to use DB abstraction layer (from Janus) 2014-01-06 14:20:25 -08:00
David Anderson ef245d456b web: show badges on private user page 2013-12-23 22:13:27 -08:00
David Anderson 92fec3e4ae admin web: enhance badge admin page
- add delete button
- show # of badges assigned
- don't use separate head/tail function are admin pages
- add badge assign task for new projects
- turn on db_dump, update_uotd, update_forum_activities,
  update_profile_pages, notify for new projects
2013-12-23 21:02:55 -08:00