~launchpad-pqm/launchpad/devel

3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
1
default namespace = "https://launchpad.net/xmlns/2006/bugs"
2
3
start = lpbugs
4
5
# Data types
6
7
boolean = "True" | "False"
8
lpname = xsd:string { pattern = "[a-z0-9][a-z0-9\+\.\-]*" }
9
cvename = xsd:string { pattern = "(19|20)[0-9][0-9]-[0-9][0-9][0-9][0-9]" }
3691.440.21 by James Henstridge
add some new coments in response to Bjorn's review
10
4664.1.1 by Curtis Hovey
Normalized comments for bug 3732.
11
# XXX: jamesh 2006-04-11 bug=105401:
3691.440.21 by James Henstridge
add some new coments in response to Bjorn's review
12
# These status and importance values need to be kept in sync with the
13
# rest of Launchpad.  However, there are not yet any tests for this.
14
#     https://bugs.launchpad.net/bugs/105401
3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
15
status = (
4864.1.1 by James Henstridge
Add support for creating bug watches as part of a bug import.
16
  "NEW"          |
17
  "INCOMPLETE"   |
18
  "INVALID"      |
19
  "WONTFIX"      |
3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
20
  "CONFIRMED"    |
4864.1.1 by James Henstridge
Add support for creating bug watches as part of a bug import.
21
  "TRIAGED"      |
3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
22
  "INPROGRESS"   |
23
  "FIXCOMMITTED" |
24
  "FIXRELEASED"  |
25
  "UNKNOWN")
26
importance = (
27
  "UNKNOWN"   |
28
  "CRITICAL"  |
29
  "HIGH"      |
30
  "MEDIUM"    |
31
  "LOW"       |
32
  "WISHLIST"  |
33
  "UNDECIDED")
34
35
# Content model for a person element.  The element content is the
36
# person's name.  For successful bug import, an email address must be
37
# provided.
38
person = (
39
  attribute name { lpname }?,
40
  attribute email { text }?,
41
  text)
42
43
lpbugs = element launchpad-bugs { bug* }
44
45
bug = element bug {
3691.440.14 by James Henstridge
changes and extra tests suggested in BjornT's review
46
  attribute id { xsd:integer } &
3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
47
  element private { boolean }? &
48
  element security_related { boolean }? &
3691.440.14 by James Henstridge
changes and extra tests suggested in BjornT's review
49
  element duplicateof { xsd:integer }? &
3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
50
  element datecreated { xsd:dateTime } &
51
  element nickname { lpname }? &
3691.440.21 by James Henstridge
add some new coments in response to Bjorn's review
52
  # The following will likely be renamed summary in a future version.
3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
53
  element title { text } &
54
  element description { text } &
55
  element reporter { person } &
56
  element status { status } &
57
  element importance { importance } &
58
  element milestone { lpname }? &
59
  element assignee { person }? &
60
  element urls {
61
    element url { attribute href { xsd:anyURI }, text }*
62
  }? &
63
  element cves {
64
    element cve { cvename }*
65
  }? &
66
  element tags {
67
    element tag { lpname }*
68
  }? &
4864.1.1 by James Henstridge
Add support for creating bug watches as part of a bug import.
69
  element bugwatches {
70
    element bugwatch { attribute href { xsd:anyURI } }*
71
  }? &
3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
72
  element subscriptions {
73
    element subscriber { person }*
74
  }? &
75
  comment+
76
}
77
78
# A bug has one or more comments.  The first comment duplicates the
79
# reporter, datecreated, title, description of the bug.
80
comment = element comment {
81
  element sender { person } &
82
  element date { xsd:dateTime } &
83
  element title { text }? &
84
  element text { text } &
85
  attachment*
86
}
87
88
# A bug attachment.  Attachments are associated with a bug comment.
89
attachment = element attachment {
90
  attribute href { xsd:anyURI }? &
91
  element type { "PATCH" | "UNSPECIFIED" }? &
92
  element filename { text }? &
3691.440.21 by James Henstridge
add some new coments in response to Bjorn's review
93
  # The following will likely be renamed summary in a future version.
3691.440.1 by James Henstridge
rebase bug-import stuff on latest rocketfuel
94
  element title { text }? &
95
  element mimetype { text }? &
96
  element contents { xsd:base64Binary }
97
}