Bump devel version to 0.1.5

Change-Id: I345b7e6d078b756c7038154486cc7b6121296b1e
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
Print request.POST to stderr in events api.

This log will be redirected to apache error log in production
server so we can use it for debug purpose.

Change-Id: Iad6684385225d04e852184f9290d9ead6fc6c1f8
Add Django view cache to speed up page load time

Add cache for gittrees and packages views

Fixes: #1983

Change-Id: I5f120ce8f473b71ef9b24d34a2731bb316c08a18
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
Put event type into URL.

This makes url more readable and could get more info from
accees log.

Change-Id: I534175ef9d3554fe638d91e6d7284bbc87c03554
Change code to show package building information.

Now we receive binary package building information from jenkins.
Actually they are OBS_BUILD_SUCCESS and OBS_BUILD_FAILED events.

Change-Id: I5885dc9c206e038ed218c5ea4e33220be08195b9
Fix a typo

comit => commit

Change-Id: I158b248e8f7813d9fc72a4ba30a5fc166f8cb662
Change submissions index page.

When a user logged-in, index redirect to "my submissions" page,
otherwise it redirect to "opened submissions". Then the submissions
application can be accessed anonymously.

Remove js code which related to dataTable plugin, not it's not
used.

Change-Id: Ib82a1f7564b22d5dcb3f7aea31ecfe4f23daeb50
Change code according to real image/repa events.

Operator given by REPA is only a string not email. For example,
it's "Admin". We can't make it as foreign key for now, so I
changed foreign key into char field.

Add combined unique key (project, image name) for ImageBuild
table, since image name in a obs project can't duplicate. In
order to make that mysql index, we have to change text field
into char field with a max length.

Split long detail.html into small parts. packages.html contains
html for packages information. images.html contains information
about images building status. In images.html, I also give
summary information about how many images in total and how many
of them failed, just like packages.html.

Change-Id: I376866c8d38c2f4fb97a335b8406876daec8740e
Code cleanup.

Remove two models Log and TestResult. Log model contains only one
field, we use simple URLField instead. TestResult should contain
result about testing result, but we don't support this feature in
0.2 version. So we remove it, we can add it back when we need in
future by schema migration.

Remove some views and templates of create/update/delete submission
and submission group. Since in 0.2 version, all submission data
should come from jenkins-scripts project rather than call iris
rest api directly. If we need those code in future, we can get
them back from git history.

Move SubmissionGroup class into core/models/submissions.py although
it's not a real django db model. It's a business model, so put it
there is also fine.

Change-Id: Ie496de7e2ba0ae14e6719063deba5811367c86bf
Schema migrations for submissions models.

Make small steps of migration files for 0.2.

* 0015: Delete useless models, such as Log, TestResult, SubmissionGroup.
* 0016: Add model BuildGroup
* 0017: Alter model PackageBuild
* 0018: Alter model ImageBuild
* 0019: Alter model Submission
* 0020: Add model SubmissionBuild

Change-Id: I76e09a7cac1f3ae0c2ab8105488e34b533953d9f
Add a smoking test for submission api.

events.log contains real events data collected from ppfarm.

Test in test_events_smoking.py call api with each line of data
and verify reponse code is 2xx.

$ cat events.log | awk -F'|' '{print $2}' | sort | uniq -c
     20 /api/submissions/events/image_building/
     23 /api/submissions/events/image_created/
     11 /api/submissions/events/package_built/
      2 /api/submissions/events/pre_created/
      2 /api/submissions/events/repa_action/
      1 /api/submissions/events/submitted/

Change-Id: I14afd50afb37923813c7af83a24d8c4135b9c851
Bump dev version to 0.2.

The next release will be 0.2, so change devel version for that.

Change-Id: I69a4f2d0f3e8d21e3f9f6c24e24c1fa60db54d6b