r3 - 25 Jan 2007 - 13:19:13 - ChristianFoliniYou are here: TWiki >  Main Web > Task13Start

Task13Start - Create request table

See TasksExplained? for more infos about tasks. This task is based on the template at TaskTemplateStart

Status : closed
Category : gui
Date opened : 2007-25-01
Description : Setup a table to take the http requests
Referenced in stories/tasks : Story6Start Task14Start
Testsuite : test/unit/request_test.rb
Commited revision : 31
Remarks :

Table of contents

Changelog

2007-01-25 - Table scheme

The table should have the following simple scheme for a start:

| id | http_method | path              | weight |
-------------------------------------------------
|  1 | GET         | /index.html       | 2      |
|  2 | POST        | /action/post.php  | 1      |
...

Rails does not like method as col name. Thus using http_method. Likewise sqlite with order. Thus using weight instead of order.

The following validations are taking place:

  • presence: http_method, path, weight
  • numeral: weight
  • uniqueness: weight
  • http_method is a valid http method
TaskStati
TaskStatus? closed
Task-Categories gui
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
Main.TaskTemplateStart moved from Main.TaskTemplate on 19 Jan 2007 - 12:41 by ChristianFolini
 

No permission to view WebTopBar?

No permission to view WebBottomBar?