Commit Graph

57 Commits

Author SHA1 Message Date
Mariano Lopez
0d295280da models.py: Code cleanup
Cleaned up the class Raw to have better readability.
Also added docstring to methods in this class.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
2015-07-13 15:31:28 -05:00
Mariano Lopez
fcdbb060ae views.py: Changed date format to iso
Changed the day format to iso. Also, the outdated
field in the recipes views was changed from days
to the date the recipe was last updated.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-13 15:30:46 -05:00
Mariano Lopez
6a55267da0 views.py: Changed the behavior of percentage done
This changes the percetage done from recipes up to date
in the period to percentage of not updated recipes that
were updated in the period.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-13 15:28:54 -05:00
Mariano Lopez
fb83596a8a models.py: Added Raw SQL for percentage updated
This adds SQL queries that will be used for the
percentage of recipes updated in a period.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-13 15:28:32 -05:00
Mariano Lopez
d1846b35e0 views.py: Fix current up to date percentage
There was an issue where the current up to date was always
using the latest upstream version to get the percentage.
This uses the upstream version in the period displayed.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
2015-07-02 15:47:06 -05:00
Mariano Lopez
30c05382a8 views.py: Fix version in current milestone
Fixed the version displayed in current milestone.
Before the data was obtained from recipe upgrad table
and this allows to fetch the data from the recipe table.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
2015-07-02 14:47:45 -05:00
Mariano Lopez
62bbb0490c views.py: Added validation in recipe detail
Added the validation for the maintainer in the
recipe detail view. Also added a check if the
recipe exists.

[YOCTO #7904]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-02 14:47:13 -05:00
Mariano Lopez
444f77f2c9 views.py: Add how long a recipe hasn't been updated
This add a tooltip in the upstream status field that
show how long the recipe hasn't been updated.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-07-02 14:46:28 -05:00
Mariano Lopez
93eb061381 rrs/views.py: Changed ORM to raw SQL calls
Allow to use the new raw SQL call to get better performance in the
web page. Also removed SQL queries inside loops.
This is only for two views: recipes and maintainers

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-06-09 11:43:56 -05:00
Mariano Lopez
9fc1789756 rrs/models.py: Added raw SQL calls
The raw calls are going to be used instead of Django's ORM.
This improves the performance of the webpage.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-06-09 11:37:37 -05:00
Aníbal Limón
4e404870d4 rrs: Update uitablefilter
Due to filtering issues update to next version with same
license.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-04-13 20:18:58 +00:00
Mariano Lopez
920564d556 templates/rrs/maintainers.html: Added links to recipe page.
rrs/static/css/rrs-additional.css: Added formating to the table footer.

Added links to recipe page using the update status filter in the header.
Changed the <th> tags in the footer to <td>.
Added color to the footer format instead of bold.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-04-13 20:14:41 +00:00
Mariano Lopez
7666b94d4c rrs/views.py: Fix exception in Maintainer view
When try to get Maintainer view with empty database a exception
is raised due to don't have intervals.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-04-08 21:53:44 +00:00
Aníbal Limón
47d6a5de39 rrs: Add missing date indexes in RecipeUpstreamHistory
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-25 13:44:51 +00:00
Aníbal Limón
c5506a01e6 rrs: Add database indexes in models.py
Add database indexes in models.py also create migration for upgrade
the current database in order to improve performance.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-25 13:34:59 +00:00
Aníbal Limón
24998df801 rrs: Add wsgi file for serve with gunicorn
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-24 13:36:19 +00:00
Aníbal Limón
fd63f0191f rrs: Adding Yocto Project favicon
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-20 09:28:54 +00:00
Aníbal Limón
daa00fe7e6 rrs: RecipeDetail show milestone instead of all in upgrades table
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-20 09:21:35 +00:00
Aníbal Limón
16b894c535 rrs/fixtures/initial_data.json: Update dates from Release/Milestone
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-20 09:06:59 +00:00
Aníbal Limón
ca5cdf553f rrs/views.py: Recipes remove unnedded extra_url_params
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-19 15:20:36 +00:00
Aníbal Limón
c27b00e075 rrs: Release/Milestone improvments
rrs/models.py: Milestone now have unique in Release and Name fields
instead of only field. When try to get current milestone give priority
to Mn instead of All.

templates/rrs/base_toplevel.html: Display only release name when
milestone is All.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-19 15:01:08 +00:00
Aníbal Limón
9a9ae7ca24 rrs: Maintainers statistics fixed sorting of weeks
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-19 12:17:11 +00:00
Aníbal Limón
2a9bedd8ad rrs: Add support to display no update reason
Display no update reason when upstream status filter is Can't be updated
this helps to review the reason.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 16:57:14 +00:00
Belen Barros Pena
0c77459912 rrs: Set of UI improvments
Give some space to the tabs,
	Add some top margin to the nav-pills class so we
	create some breathing space between the milestone
	overview and the tabs.

Change 'No Maintainer' to 'No maintainer'
	Just to keep the capitalisation style consistent
	across the interface.

Apply the muted class to all not-sortable table headings
	The class was missing from the Recipe and Maintainer
	columns in the recipes table; and from the Not updated
	and % done column in the maintainers table.

Remove the strong tag from the recipe status information
	This is just to match the presentation of the milestone
	overview information in the base_toplevel.html template.

Separate the footer from the bottom of the viewport,
	It's hard to see the footer on click on its links when
	they are so close to the bottom of the veiwport, so
	add some margin at the bottom of the footer <div>.

Change the label of the recipes tab,
	From 'Recipes status' to 'Recipes upstream status' to
	match the label of the 'Upstream status' filter in the
	recipes table.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 16:39:51 +00:00
Aníbal Limón
f49f73dd30 rrs: Add img assets used to display sort status
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 16:16:28 +00:00
Aníbal Limón
1a4be69e89 rrs: Add support to display sort status Recipes and Maintainers UI
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 16:15:20 +00:00
Aníbal Limón
5c4f1058b0 rrs: Frontend improvments
Maintainer statistics use '' instead of zeros.
RecipeDetail don't display internal Downgrade status use Unknown instead.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 10:57:29 +00:00
Aníbal Limón
4b0995e0a7 rrs: Add script to migrate the Upstream info based on distrodata
reports

scripts/tools/rrs_upstream_history.py: Add script to migrate the
upstream info from distrodata reports.
scripts/rrs_update/recipe_upstream.py: Make vercmp_string function
public in order to import from rrs_upstream_history.
rrs/views.py: Now if a recipe have history but not upstream info
set to Unknown state.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 16:10:17 +00:00
Aníbal Limón
be264a4b03 rrs/models.py: RecipeMaintainerHistory if not found return the first
record

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 13:11:05 +00:00
Aníbal Limón
1fd639a91c rrs: Add missing __init__.py in migrations
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 11:19:57 -06:00
Aníbal Limón
9b5850ab9b rrs: Maintainers add support for display Milestone intervals
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 00:29:41 -06:00
Aníbal Limón
6f071b858f rrs/fixtures/initial_data.json: Fix end_date of 1.8All Milestone
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 00:29:09 -06:00
Aníbal Limón
61c9d490f3 rrs: Add support for export Recipes reports by Release/Milestone
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-16 23:26:55 -06:00
Aníbal Limón
a404d90c64 rrs: Add support for Release
Now Recipes and Maintainers page can be access by Release and Milestone,
to support this a url namespace was add also update views/templates
handle new URL's.

rrs/models.py: Add support model for store Release also foregin key in
Milestone.
rrs/admin.py: Add admin site for Release model.
rrs/fixtures/initial_data.json: Add initial data with Release/Milestone
relation.
rrs/{views, urls}.py: Add support for handle Release/Milestone.
templates/rrs: Update to handle new URL's.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-16 16:53:34 -06:00
Aníbal Limón
4be31d683e rrs: Recipes don't display if don't exit in Milestone
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-15 14:38:41 -06:00
Aníbal Limón
3a39caa055 rrs: Add support to display version by Milestone based on RecipeUpgrade's
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-15 13:53:52 -06:00
Aníbal Limón
f909f8d7f9 rrs: Maintainer statistics frontend improvments
Show percentage sign for every item in percentage column.

Don't display zero's in week columns instead use blank '' to
avoid noisy.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-09 11:58:45 -06:00
Aníbal Limón
e269d7853d rrs: Improve recipes filtering
Now filter recipes are done by JS this avoid to made request for every
change in the filters also add support for share filters between pages.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-06 17:25:41 -06:00
Aníbal Limón
d2b9133138 rrs: Add support for display Can't be updated recipe upstream status.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-05 18:09:34 -06:00
Aníbal Limón
1149b6fdef rrs/fixtures/initial_data.json: Improve Milestone names.
Remove Release from milestone name.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-05 16:55:19 -06:00
Aníbal Limón
55394a92b1 rrs: Frontend improvments
templates/base.html: Disable login button and set content class
type to container-fluid when app is RRS.

templates/rrs/base_toplevel.html: Disable top functions.

templates/rrs/recipedetail.html: Fix class type for different
upstream status and better display of recipe info don't display
element if no have content.

rrs/views.py: Don't display percentages with two decimals and
separate filters for set and elements.

templates/rrs/recipes.html: Add support for display filters with
set and element separation.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-05 16:33:44 -06:00
Aníbal Limón
49a274779c rrs: Now display recipes when not found upstream info.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-30 14:49:17 -06:00
Aníbal Limón
a75c462167 rrs: Maintainers add support for display statistics of recipe
upgrades by week in Milestone.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-30 13:49:26 -06:00
Aníbal Limón
cb6bc39591 rrs: Recipes when upstream_status is Downgrade display as Unknown
In order to provide only one status when recipe upstream backend
script fails display display Unknown as Unknown + Downgrade.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-30 10:38:31 -06:00
Aníbal Limón
79396d7b7c rrs: Add Maintainer statistics page.
Maintainer statistics page gives information by Milestone and
Maintainers assigned recipes, status of recipes (up-to-date,
not-update, unknown) and percertange of work done.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-29 18:13:28 -06:00
Aníbal Limón
47070ee605 rrs/views.py: Recipes modularize improve milestone statistics
Modularize get milestone statistics not at private function in order
to use in Manitainers view.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-29 15:50:37 -06:00
Aníbal Limón
8d2223c7f2 rrs: RecipeDetail view fix
scripts/tools/rrs_upgrade_history.py: For initial import of recipe
use NoMaintainer by default.
rrs/views.py: Now is necessary to test if a RecipeMaintainer exists by
milestone to avoid errors for undefined variables.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-29 14:46:15 -06:00
Aníbal Limón
902076b270 rrs/models.py: fix RecipeMaintainerHistory get_by_end_date.
If not maintainer info is found return None instead of the first
one entry in the table, this made reporting more consistency.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-28 18:10:13 -06:00
Aníbal Limón
9119b5d777 rrs: Add support for Recipe maintainership history
Now can you get maintainers based on Milestones.

Feature changes,

	rrs/models.py: Add RecipeMaintainerHistory to store maintainer updates.
	rrs/admin.py: Add admin site for RecipeMaintainerHistory.
	scripts/tools/rrs_maintainer_history.py: Add script for update
	maintainership history.
	scripts/update.py: Drop maintainer update support use
	rrs_maintainer_history.py instead.

Adapt changes,

Now you need to specify RecipeMaintainerHistory to get RecipeMaintainer.

	rrs/views.py:
	scripts/tools/rrs_upstream_email.py:
	scripts/rrs_update/recipe_upgrade.py:

These set of changes are incompatible with the previous version you need
to do initial setup described in README.rrs.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-28 17:38:04 -06:00
Aníbal Limón
26b84b3a73 rrs: Recipes page improve table display
Improve CSS in order to handle column width better also
use styles to display upstream status column.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-26 18:04:29 -06:00