Commit Graph

313 Commits

Author SHA1 Message Date
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
1df5f3b6b0 templates/rrs/recipes.html: Add button for search
Add button for search instead of did with keyUp function in the input
this avoid overprocessing and icrements usability.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-13 17:48:17 -06:00
Aníbal Limón
9f45d64201 scripts/rrs_update/recipe_upstream.py: Show traceback when except
getting upstream version.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-12 21:27:23 -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
c0840ce1b5 rrs: Maintainers page fix maintainer count
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-06 17:52:10 -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
e007baa2a8 layerindex: Fix increase length of Recipe provides field
packagegroup-base provides packages that exceds 255 characters.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-30 15:43:11 -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
83dbc6ac36 templates/rrs/maintainers.html: Change the link from maintainer
ownership from name to assigned recipes.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-30 10:39:50 -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
4845921f89 README.rrs: Add instruction for serve static content in development
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-28 09:42:57 -06:00
Belen Barros Pena
2cebea4c3a readme: add missing instruction
When setting up the rrs application you must uncomment
the 'rrs' line in INSTALLED_APPS. Adding that to the
settings.py configuration instructions.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-28 09:41:50 -06:00
Aníbal Limón
d90469c1b3 rrs: Add support for filter in recipes page.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-26 18:26:01 -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
Aníbal Limón
de3cdd338d rrs: Add support for Recipe detail page
Recipe detail page gives information about Recipe like summary,
section, license, file, etc. also display's upgrade history.

rrs/models.py: Milestone add get_by_date and rewrite get_current
for use get_by_date and RecipeDistro add get_distros_by_recipe.

rrs/urls.py: Add url for recipe_detail with pk.
rrs/views.py: Add RecipeUpgradeDetail view.
templates/rrs/recipedetail.html: Add recipedetail template.

templates/rrs/recipes.html: Add link to Recipe detail by row.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-26 16:59:04 -06:00
Aníbal Limón
da47f8f344 templates/base.html: Add link to Yocto Project when APP is RRS
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-26 14:43:40 -06:00
Aníbal Limón
39e256cb11 scripts/update.py: Fix update of poky repository
Add pull option to update_repo for specify when pull or fetch
this is needed when updating poky.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-26 11:43:44 -06:00
Aníbal Limón
150e834932 rrs: Recipes add url validation
Add url validation for Milestone and Upstream status and maintainer name
params if isn't valid raise HTTP 404.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-22 17:53:59 -06:00
Aníbal Limón
02b0f4814d rrs: Add initial support of recipes page
templates/rrs/base_toplevel.html: Add support for display statistics by
Milestone.
templates/rrs/recipes.html: Add initial page that display Recipe
status by Milestone also details of every recipe.
rrs/views.py: Add RecipeLitView for support recipes page.
rrs/models.py: Add helper functions.
rrs/static/*: Add css and js resources.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-22 10:47:46 -06:00
Aníbal Limón
6b2b08456a rrs: Add support for store RecipeUpstreamHistory
To provide statistics about RecipeUpstream information based on
Milestones we need to store RecipeUpstreamHistory that contains when the
update script was executed.

rrs/admin.py: Add admin page for RecipeUpstreamHistory.
rrs/models.py: Add model for RecipeUpstreamHistory with helper functions
for get last and last by date range also add migration.
scripts/rrs_update/recipe_upstream.py: Add support in update.py for store
RecipeUpstreamHistory relation in RecipeUpstream.
scripts/tools/rrs_upstream_email.py: Update email script for take into
account RecipeUpstreamHistory get the last one for generate report.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-20 17:46:53 -06:00
Aníbal Limón
06b0cfe8bf rrs: Add milestone selection bar for recipes and milestone.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-19 22:41:07 -06:00
Aníbal Limón
27c318542f scripts/rrs_update/__init__.py: Improve remove old recipes
Now if recipe have two differente versions there are compared using
bb.utils.vercmp_string in order to delete the old one.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-15 16:51:58 -06:00
Aníbal Limón
9a5de0e7ec scripts/rrs_update/recipe_upstream.py: Also create_recipe_upstream when
no_update_reason changes.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-14 11:02:28 -06:00
Aníbal Limón
07293ec835 rrs: Add about page
templates/base.html: Discard bulk change and submit layer when app is
rrs.

templates/rrs/about.html: Add about page that extends of base.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-09 09:49:22 -06:00
Aníbal Limón
c1e48613f1 rrs: Add README.rrs to help in setup.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-08 12:48:11 -06:00
Aníbal Limón
0e79557e26 scripts/tools/rrs_*: Add tool scripts for rrs.
rrs_create_milestone.py: Helps in Milestone creation.

rrs_upgrade_history.py: Recreates upgrade history from recipes, this
should be run at initial installation.

rrs_upstream_email.py: Send Upstream report to mailing list, this
report contains information about recipes that need upgrade.

requirements.txt: Add tabulate module that is needed by
rrs_upstream_email.py.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-08 12:43:35 -06:00
Aníbal Limón
1152195b9e scripts/update.py: Add support for rrs
conf/local.conf: Add meta-yocto includes for get distro information
(distro aliases, maintainers, upstream {regex, tracking}) needed by
rrs.

scripts/update.py: Add support for rrs, ability to download poky layer
and set BBPATH to support meta-yocto includes in bitbake.

scripts/rrs_update/*: Modules for update data needed by rrs, distros,
maintainers, upgrades and upstream.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-08 12:32:05 -06:00
Aníbal Limón
36d5746acd layerindex: Add support for rrs in settings.py and urls.py
settings.py: Add APPLICATION variable to switch between layerindex
rrs also add context_processors decision layerindex or rrs.

urls.py: Add decision for load urls for layerindex or rrs.

layerindex/context_processors.py: Add application variable for use
templates.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-08 12:10:23 -06:00
Aníbal Limón
eae7b91a11 rrs: Add application
Add models for store Milestone, Maintainer and Recipe{Maintainer,
Upgrade, Upstream, Distro}, add initial data for Milestone and
Maintainer, initial migration and admin sites.

Add rrs/context_processors.py for return the site_name and application
for use in templates.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-08 10:56:26 -06:00
Aníbal Limón
e10eb3c7f5 layerindex/admin.py: Change readonly fields from non-set to set
If you specify what fields are non readonly using get_all_field_names()
causes a fail when have two Apps because this method returns reference
to models in other App (foregin keys) that isn't defined.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-07 17:21:29 -06:00
Aníbal Limón
9e4c8a2d88 lib/recipeparse.py: Add support for preserve BBPATH env
Recipe reporting system need meta-yocto with contains several
distro include files, with this changes is posible to tell
bitbake where search for includes.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-07 17:19:07 -06:00
Aníbal Limón
7fe10746c0 layerindex: Add support for store src_uri and depends into Recipe
This fields are needed by Recipe reporting system also add a migration
for this change.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-07 17:16:43 -06:00
Aníbal Limón
60fd912b44 layerindex: Reorder code in order to use in the Recipe reporting system
For use the same code base for Recipe reporting system moves non-WEB
code outside layerindex, create lib directory that contains common code
for Layerindex and RRS.

Create scripts directory that contains common infraestructure to populate
db and tool scripts, modularize update.py script move Layerindex update
to own folder.

Update references for utils and recipeparse modules to point lib directory.

Add missing GitPython into requirements.txt.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-07 17:06:17 -06:00
Aníbal Limón
219bac4229 layerindex/models.py: Branch model fix inital_data fixture
Add default = datetime.now attr to updated field of Branch
model because it fails when try to insert inital data with NULL.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2014-12-08 16:07:53 -06:00
Alexandru DAMIAN
40d05f928c adding updated field for certain models
We add an automatically-updateing "updated" datetime
field to Branch, LayerItem, LayerBranch, Recipe and
Machine models to allow date-based incremental updates
through the API.

The added field does not interfere with the existing
form-based pages (auto_now sets editable to false).

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-09-24 11:32:34 +01:00
Alexandru DAMIAN
1d84f282de adding CORS policy for the API
We add the corsheaders application in order to
enable the CORS policy for the read-only REST API.

This is needed to allow AJAX queries to the layerindex
application from a browser environment.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-09-24 11:32:34 +01:00