Skip to content

Commit 32865b5

Browse files
authored
Merge pull request #124 from canonical/issue#123
Add channel field to NoticePackage schema
2 parents f38c494 + 66f6eca commit 32865b5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/fixtures/payloads.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"is_source": "false",
7777
"name": "linux-oem",
7878
"version": "4.15.0-1080.90",
79+
"channel": "Test channel",
7980
}
8081
],
8182
},
@@ -99,6 +100,7 @@
99100
"version": "4.15.0-1080.90",
100101
"package_type": "golang",
101102
"pocket": "soss",
103+
"channel": "Test channel",
102104
}
103105
],
104106
},

webapp/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ class NoticePackage(Schema):
185185
version_link = String(allow_none=True)
186186
pocket = Pocket()
187187
package_type = PackageType()
188+
channel = String(allow_none=True)
188189

189190

190191
class NoticeSchema(Schema):

0 commit comments

Comments
 (0)