Changes between Version 11 and Version 12 of TeamCalendarPlugin


Ignore:
Timestamp:
May 1, 2015, 9:01:54 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TeamCalendarPlugin

    v11 v12  
    11[[PageOutline(2-5,Contents,pullout)]]
    2 = Team calendar =
    32
    4 == Description ==
     3= Team calendar
     4
     5== Description
    56
    67This plugin adds a new navigation tab, "Team calendar", that can be used to keep track of team availability in a project. The data is stored in the database, which means it can be used in reports and queries.
     
    89See also: GoogleCalendarPlugin, GanttCalendarPlugin, CalendarPlugin
    910
    10 == Bugs/Feature Requests ==
     11== Bugs/Feature Requests
    1112
    1213Existing bugs and feature requests for TeamCalendarPlugin are
     
    1617[http://trac-hacks.org/newticket?component=TeamCalendarPlugin&owner=ChrisNelson new ticket].
    1718
    18 == Download ==
     19[[TicketQuery(component=TeamCalendarPlugin&group=type,format=progress)]]
     20
     21== Download
    1922
    2023Download the zipped source from [download:teamcalendarplugin here].
    2124
    22 == Source ==
     25== Source
    2326
    2427You can check out TeamCalendarPlugin from [http://trac-hacks.org/svn/teamcalendarplugin here] using Subversion, or [source:teamcalendarplugin browse the source] with Trac.
    2528
    26 == Prerequisites ==
     29== Installation
    2730
    28 Note that the plugin is currently tied to MySQL. Updates to make it more
    29 database agnostic would be welcome.
    30 ''See #4243 - MySQL Testers needed!''
     31=== Prerequisites
    3132
    32 == Installation ==
     33Note that the plugin is currently tied to MySQL. Updates to make it more database agnostic would be welcome. See #4243 - MySQL Testers needed!
     34
     35=== Installation steps
    3336
    3437Install [http://trac.edgewall.org/wiki/TracPlugins#InstallingaTracPlugin as usual].
    3538
    36 Create table in database: (this is MySQL, sqlite version appreciated)
     39For MySQL, the table can be created as follows:
    3740
    38 {{{
    39 #!sql
     41{{{#!sql
    4042CREATE TABLE `team_availability` (
    41   `username` varchar(255) NOT NULL DEFAULT '',
    42   `ondate` date NOT NULL DEFAULT '0000-00-00',
    43   `availability` float unsigned DEFAULT NULL,
    44   PRIMARY KEY (`username`,`ondate`)
     43  `username` VARCHAR(255) NOT NULL DEFAULT '',
     44  `ondate` DATE NOT NULL DEFAULT '0000-00-00',
     45  `availability` FLOAT UNSIGNED DEFAULT NULL,
     46  PRIMARY KEY (`username`, `ondate`)
    4547);
    4648}}}
    4749
    48 For PostgreSQL 8.3, we created the table with:
     50For PostgreSQL 8.3, the table can be created as follows:
    4951
    50 {{{
    51 #!sql
     52{{{#!sql
    5253CREATE TABLE team_availability (
    53    username varchar(255) NOT NULL DEFAULT '',
    54    ondate date NOT NULL,
    55    availability float DEFAULT NULL,
    56    PRIMARY KEY (username,ondate)
     54   username VARCHAR(255) NOT NULL DEFAULT '',
     55   ondate DATE NOT NULL,
     56   availability FLOAT DEFAULT NULL,
     57   PRIMARY KEY (username, ondate)
    5758);
    5859}}}
    5960
    60 For Sqlite3:
     61For Sqlite3, the database and table can be created as follows:
    6162{{{
    6263sqlite3 trac.db
    6364}}}
    6465 
    65 {{{
    66 #!sql
     66{{{#!sql
    6767CREATE TABLE team_availability (
    6868   username text not null default '',
    6969   ondate date not null default (datetime('now')),
    7070   availability float default null,
    71    PRIMARY KEY (username,ondate)
     71   PRIMARY KEY (username, ondate)
    7272);
    7373}}}
    74 == Under the hood ==
    7574
    76 This plugin adds a new tab, Team Calendar, to users with the TEAMCALENDAR_VIEW
     75== Under the hood
     76
     77This plugin adds a new tab, Team Calendar, to users with the `TEAMCALENDAR_VIEW`
    7778permission. This shows a simple tables with dates running down the rows
    78 and team members across the columns. Users with TEAMCALENDAR_UPDATE_OWN
     79and team members across the columns. Users with `TEAMCALENDAR_UPDATE_OWN`
    7980permissions can change the state of the tick boxes under their own name,
    80 and save the results. Users with TEAMCALENDAR_UPDATE_OTHERS permission can
     81and save the results. Users with `TEAMCALENDAR_UPDATE_OTHERS` permission can
    8182update everyone's.
    8283
     
    8788e.g. half-day, but there is no UI for this at present.
    8889
    89 The calendar does not do anything more by itself. However, the
     90The calendar does not do anything else by itself. However, the
    9091team_availability table can be used in reports.
    9192
    92 == Recent Changes ==
     93== Recent Changes
    9394
    9495[[ChangeLog(teamcalendarplugin, 3)]]
    9596
    96 == Author/Contributors ==
     97== Author/Contributors
    9798
    9899'''Author:''' [wiki:optilude] [[BR]]
    99 '''Maintainer:''' [wiki:ChrisNelson] [[BR]]
     100'''Maintainer:''' [[Maintainer]] [[BR]]
    100101'''Contributors:'''