Commit Graph

56 Commits

Author SHA1 Message Date
David Anderson 2d0a6cc10f web: add badge stuff to db_update script 2013-12-22 20:53:10 -08:00
David Anderson 65b5ab5184 server/web: preliminary support for badges
- DB: add tables for badges and badge/user and badge/team associations
- add script that defines 3 RAC-based badges and assigns them
- add images for these badges
- add admin page for creating/editing badges
- show badges on user page
not done:
- figure out how to send badges to client
- display badges somewhere in the GUIs
- export badges in db_dump
- enable badges by default for new projects
2013-12-05 10:14:26 -08:00
David Anderson 2a73dc0e01 - remote file management stuff for Condor 2013-03-05 14:05:04 +01:00
David Anderson 6205ffed08 - scheduler: add extra check for not sending homogeneous app version
jobs to anonymous platform clients
- remote job submission: add DB table for keeping track of files
2013-03-04 15:16:58 +01:00
David Anderson 130d6ed4f0 - server: revamp the "assigned job" mechanism.
This now supports two main use cases:
    1) there's a job that you want to run once on all hosts,
        present and future
        (or all hosts belonging to a user, or to a team).
        The job is never transitioned, validated, or assimilated.
    2) There's a normal job for which you want to use only
        hosts belonging to a specific user (e.g. cluster or cloud hosts).
        This restriction can be made either when the job is created,
        or on the fly,
        e.g. as part of a scheme for accelerating batch completion.
        For the latter purposes we now provide a function
            restrict_wu_to_user(DB_WORKUNIT&, int userid);

        The job goes through the standard
        transitioner/validator/assimilator path.

    These cases are enabled by config flags
        <enable_assignment_multi/>
        <enable_assignment/>
    respectively.

    Assignment of type 2) are no longer stored in shared mem,
    so there is no limit on their number.

    There is no longer a rule that assigned job names must contain "asgn".

    NOTE: this requires a database update.


svn path=/trunk/boinc/; revision=25169
2012-01-30 22:39:13 +00:00
David Anderson fb851311e0 - server: various changes;
see http://boinc.berkeley.edu/trac/wiki/CreditNew

    Projects will need to update DB and recompile all back-end programs.

    Summary:
    - new way of computing credit
    - "reliable host" mechanism is per app version
    - "host punishment" mechanism is per app version
    - adjustment of wu.rsc_fpops_est provides the
        equivalent of per app version DCF
    - max jobs in progress is now per app
    - max jobs per RPC is now per app

    TODO:
    - reliable mechanism:
        - populate and use host_app_version.error_rate
        - populate host_app_version.turnaround
    - host punishment:
        - populate host_app_version.max_jobs_per_day
        - populate host_app_version.n_jobs_today
        - use app.max_jobs_per_day_init
    - job limits:
        - use app.max_jobs_in_progress, max_gpu_jobs_in_progress
        - use app.max_jobs_per_rpc
    - adjust wu.rsc_fpops_est
    - remove old credit stuff
        fpops_cumulative, credit_multiplier
        credit computation in scheduler

- AVERAGE class: use the Knuth algorithm (Wikipedia)


svn path=/trunk/boinc/; revision=21021
2010-03-29 22:28:20 +00:00
David Anderson 815b8fc043 Various preparation for handling multithreaded apps
and apps that use coprocessors.
There now can be several app_versions for the same
(app, platform, version_num) combination.
This changes a number of things.

- Added app_version.plan_class field to DB
- update_versions now looks for a :plan-class in the
    file or directory name, and puts it in the app_version's DB record
- Change uniqueness constraint to include plan_class
- Feeder: the feeder was putting non-deprecated app_versions
    in shared mem, and leaving it to the scheduler to
    find the latest version for a given platform.
    This is dumb.
    Instead, for each app/platform pair the feeder now
    finds the highest version number of a non-deprecated app version,
    and enumerates all non-deprecated app_versions with that
    app/platform/version
- Scheduler: add a BEST_APP_VERSION data structure that keeps track,
    for each app, what the best app_version is for this host.
    This saves the work of recomputing it for each job.

svn path=/trunk/boinc/; revision=14906
2008-03-13 22:57:24 +00:00
David Anderson f183b6f47f - web: add general-purpose notification mechanism.
Users can choose whether to get 1 email per notification,
    a daily "digest" email, or no email.
    (All notifications are shown on the Account page).
    Currently used for:
    - Friend requests and confirmations
    - Posts to subscribed threads
    - Private messages

    NOTE: To implement the "daily digest" feature, projects must add
    a periodic task for html/ops/notify.php to config.xml
- web: have project_footer() generate links for
    Account Page and Message Boards as well as Home
    NOTE: projects that want this change
    will have to modify their own project.inc.

svn path=/trunk/boinc/; revision=14447
2007-12-30 22:02:16 +00:00
David Anderson 13baee4302 - user web: add "friend" and "notification" features
- user web: code cleanup in Profile area
- GUI RPC: add missing "/" in auth2 RPC

svn path=/trunk/boinc/; revision=14394
2007-12-18 20:28:08 +00:00
David Anderson 4a81532043 - DB: add fulltext index on team.name
- user web: improve "team search" function,
    and get rid of the superceded "search by name" function
- user web: don't show team founder link to initiate transfer
- user web: show team types
- user web: fix "top teams by type" function
- client: tread NOT_FOUND error on file upload as transient;
    it means the project is missing its file_upload_handler

svn path=/trunk/boinc/; revision=14272
2007-11-20 22:58:14 +00:00
David Anderson 9970e2c71b - user web: bug fixes
svn path=/trunk/boinc/; revision=14204
2007-11-14 21:55:05 +00:00
David Anderson 87c0f98b10 - user web: a private message is considered "read" the
first time it's shown.
        No explicit "mark as read" action needed.
        Also, no confirmation for message delete.

svn path=/trunk/boinc/; revision=14077
2007-11-03 04:26:47 +00:00
David Anderson 7302f02544 - user web: added new framework for DB access from PHP.
Here's how things should eventually be:
    - inc/db_conn.inc defines DbConn, a PHP class representing
        a connection to a database with
        various generic operations (update, insert etc.).
        DbConn prepends the DB name to table names,
        so you don't have to select a DB;
        this means you can access multiple databases
        (e.g. BOINC and Bossa) and use persistent connections.
        ALL MYSQL-SPECIFIC CODE WILL EVENTUALLY BE HERE.
    - inc/boinc_db.inc defines classes BoincUser, BoincTeam etc.,
        representing the various BOINC DB tables.
        All access to the DB should use these classes.

    When you use this framework, no initialization calls are needed.
    db.inc is deprecated and should eventually be removed.

    I changed get_logged_in_user()
    and all team-related code to use this framework.
- user web: show team founder link to "management functions"
    even if they're not currently a member;
    allow team founder to perform all operations even if not a member.
- turned on E_ALL error checking,
    and fixed a bunch of warnings
    and a couple of bugs ($team, not team)

- database: update schema/constraints for team fulltext search
- user web: forgot to change Serbia and Montenegro to Serbia

svn path=/trunk/boinc/; revision=13968
2007-10-26 21:14:35 +00:00
David Anderson 14bc500cab - user web: added mechanism for recording team membership changes.
These are stored in a new DB table, "team_delta".
    The team founder can view the history in HTML or XML
    (links on Management Functions page)

svn path=/trunk/boinc/; revision=13231
2007-07-27 18:30:10 +00:00
David Anderson 3e340136da - feeder: simplified DB query
- make_project: remove space after URL in schedulers.txt

svn path=/trunk/boinc/; revision=13127
2007-07-09 20:09:49 +00:00
Matt Lebofsky 136ce49b84 svn path=/trunk/boinc/; revision=12536 2007-05-02 23:17:52 +00:00
Matt Lebofsky 846ec9fbb0 svn path=/trunk/boinc/; revision=12532 2007-05-02 18:51:51 +00:00
Rytis Slatkevičius ccff6971ca Big team change to allow founder transfer when he's no longer available
svn path=/trunk/boinc/; revision=11367
2006-10-27 16:06:42 +00:00
Bruce Allen 400896a94f comma -> semicolon typo
svn path=/trunk/boinc/; revision=5087
2005-01-12 21:16:45 +00:00
David Anderson 86c3728abe *** empty log message ***
svn path=/trunk/boinc/; revision=5020
2005-01-07 19:45:46 +00:00
David Anderson c417859785 *** empty log message ***
svn path=/trunk/boinc/; revision=4944
2004-12-27 21:14:18 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
David Anderson 0a516adac0 *** empty log message ***
svn path=/trunk/boinc/; revision=4029
2004-08-07 20:23:22 +00:00
David Anderson bcded77fcb *** empty log message ***
svn path=/trunk/boinc/; revision=3815
2004-07-08 19:20:19 +00:00
David Anderson a3f0e3ba73 checkin_notes
svn path=/trunk/boinc/; revision=3699
2004-06-24 21:00:46 +00:00
David Anderson fb06f2f372 *** empty log message ***
svn path=/trunk/boinc/; revision=3606
2004-06-16 19:10:24 +00:00
David Anderson 7a4ea37042 *** empty log message ***
svn path=/trunk/boinc/; revision=3486
2004-06-01 17:02:14 +00:00
David Anderson 7134a969cb *** empty log message ***
svn path=/trunk/boinc/; revision=3482
2004-05-31 17:37:22 +00:00
David Anderson f80a5f1a12 *** empty log message ***
svn path=/trunk/boinc/; revision=3083
2004-03-17 01:26:44 +00:00
David Anderson 13215f88cd *** empty log message ***
svn path=/trunk/boinc/; revision=2995
2004-02-17 02:16:53 +00:00
David Anderson 6d44e9ccc1 *** empty log message ***
svn path=/trunk/boinc/; revision=2844
2004-01-04 06:48:40 +00:00
David Anderson f4d30aa220 *** empty log message ***
svn path=/trunk/boinc/; revision=2840
2003-12-31 23:09:21 +00:00
David Anderson 645f77de1b *** empty log message ***
svn path=/trunk/boinc/; revision=2819
2003-12-21 05:55:48 +00:00
David Anderson 135cd63228 *** empty log message ***
svn path=/trunk/boinc/; revision=2760
2003-12-09 06:46:50 +00:00
David Anderson e6f9710032 *** empty log message ***
svn path=/trunk/boinc/; revision=2735
2003-12-02 22:04:26 +00:00
David Anderson 731cb45570 *** empty log message ***
svn path=/trunk/boinc/; revision=2703
2003-11-28 06:23:58 +00:00
David Anderson 032644aaaf *** empty log message ***
svn path=/trunk/boinc/; revision=2659
2003-11-11 20:49:07 +00:00
Karl Chen c090d1ef9c *** empty log message ***
svn path=/trunk/boinc/; revision=2560
2003-10-25 07:29:43 +00:00
David Anderson 04c00075d8 *** empty log message ***
svn path=/trunk/boinc/; revision=2557
2003-10-24 20:13:50 +00:00
David Anderson b089311fc3 *** empty log message ***
svn path=/trunk/boinc/; revision=2490
2003-10-16 18:10:56 +00:00
Karl Chen a0fb89cf3d *** empty log message ***
svn path=/trunk/boinc/; revision=2395
2003-10-03 02:49:26 +00:00
David Anderson 7edf91f52a backend logic
svn path=/trunk/boinc/; revision=2115
2003-08-15 20:35:44 +00:00
David Anderson 7d0cc4a6ab *** empty log message ***
svn path=/trunk/boinc/; revision=2112
2003-08-15 17:36:44 +00:00
Karl Chen e840468a1b test cases and make_project
svn path=/trunk/boinc/; revision=1734
2003-07-18 21:43:12 +00:00
David Anderson 8a3e89f698 random send order
svn path=/trunk/boinc/; revision=1121
2003-04-01 03:28:37 +00:00
Eric Heien 4b1f7c810c bug fix
svn path=/trunk/boinc/; revision=891
2003-02-11 19:28:02 +00:00
David Anderson 967f20777e db_dump
svn path=/trunk/boinc/; revision=851
2003-01-31 07:19:20 +00:00
Eric Heien c6000bbc99 indices for stats
svn path=/trunk/boinc/; revision=850
2003-01-31 00:04:51 +00:00
David Anderson 563db0cbe5 make_work
svn path=/trunk/boinc/; revision=795
2003-01-03 22:17:40 +00:00
David Anderson ca2a26987a added indices
svn path=/trunk/boinc/; revision=794
2003-01-03 21:55:05 +00:00