Changes between Version 16 and Version 17 of BadgesOld
- Timestamp:
- Nov 14, 2013, 8:14:48 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BadgesOld
v16 v17 4 4 5 5 == Note == 6 ''The following represents a proposal, a basis for discussion. It's stillwork in progress! ''6 ''The following represents a proposal, a basis for discussion. Consider it work in progress! '' 7 7 8 8 == Requirements == … … 10 10 11 11 * Origin: badges should be assignable by projects and, eventually, in a cross-project way. 12 * Numbers: the numbers of assigned badges shouldn't be constrained. The could be tens of badges per volunteer, so prepare to visualise those.13 * Assignment: assignments should support temporary (incl. renewal) and unlimitedbadges.12 * Numbers: the numbers of assigned badges shouldn't be constrained. There could be tens of badges per volunteer, so prepare to visualise those. 13 * Assignment: assignments should support temporary (incl. renewal) and permanent badges. 14 14 * Visibility: badges should be visible across the whole BOINC universe, at least in managers (desktop/mobile) and the web front-end (forums/profile), eventually even on the stats sites. 15 15 * Types: badges should be represented by icons/images, supported by textual descriptions. There should also be the means to represent different levels of the same badge type (e.g. a "Continued Support" badge in "Bronze", "Silver" or "Gold") … … 32 32 * Display 33 33 * Forums 34 * Be sure to avoid clutter: limit number and link to full list34 * Be sure to avoid clutter: limit number of badges displayed and link to full list 35 35 * Make entire badge display optional via community preference 36 36 * Support badges display as port of "user of the month" feature 37 * Show descriptive text when hovering over badge (mouse/tool-tip) 37 * Show descriptive text when hovering over badge (mouse/tool-tip), full glory as part of badge list in profile 38 38 * Teams 39 39 * Show team badges also in profiles of team members (somewhat separately) 40 * Should member badges be accumulated on team page as well? 40 41 * Search (web) 41 42 * Support user profile searches filtered by badges … … 86 87 We refrained from adding another relation for tags and de-normalised this attribute in favour of performance. We could use MySQL's SET type to support a bitmap of up to 64 pre-defined tags. However, that list would become part of the data model and would hence be very inflexible. Thus we propose to use JSON as textual representation that can be searched using regular LIKE statements and can be modified easily by available JSON support, e.g. in PHP. Upcoming versions of MySQL and MariaDB are going to include JSON support and will allow more optimised processing. XML would be far too heavy-weight for this purpose. 87 88 88 Badge assignments provide the means to expire old ones by filtering (or even removal) based on the `create_dt` attribute. Sorting of badge assignments can be done based on the `reassign_dt`, e.g. newest-first.89 Badge assignments provide the means to expire old ones by filtering (or even removal) based on the reassign_dt attribute. Sorting of badge assignments can be done based on create_dt, e.g. newest-first. 89 90 90 91 === Badge assignment process === 91 * A script runs periodically (e.g. a project task) and updates allbadge assignments92 * The script iterates over alldefined badges (`badge` table) and executes the respective SQL rules92 * A script runs periodically (e.g. a project task) and updates the badge assignments 93 * The script iterates over '''all''' defined badges (`badge` table) and executes the respective SQL rules 93 94 * Each SQL rule (one per badge) returns a list if user IDs or team IDs (see next item) 94 * The attribute !badge:teamdefines a badge to be team or user assignable95 * The attribute `badge:team` defines a badge to be team or user assignable 95 96 * Upsert (insert or update) the user/team IDs for the current badge ID into the `user_badge` and `team_badge` tables respectively 96 97 * An update (only) resets the `reassign_dt` attribute to the current time