Commit Graph

313 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
e8a13de121 recipes.html: Add Last Updated column
Added a column in the recipes view that show
the last time a recipe was updated when is
not up-to-date

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:53 -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
d0e9d48ddb base_toplevel.html: Changed format of percentage done
Changed the text of percentage done to updated. Also
added a tooltip that shows how this percentage is calculated.

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:29:02 -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
1ced32020c README.rrs: Add current maintainer.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-06-09 11:33:10 -05:00
Aníbal Limón
5b795d964d README.rrs: Add Maintaince infomation
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-06-08 10:38:59 -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
573d2deb71 templates/rrs/maintainers.html: Added total row at the end of the table.
Added footer for the table and function updateTotals.
Added class and/or id attributes to some existing html tags.
Didn't modified existing class or id attributes for existing html tags.

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
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
ad548cb637 rrs: Change Django to <1.5 in order to get security updates
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-25 13:39:11 +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
0cbfc25eff scripts/tools/rrs_upstream_email.py: Update email body
Remove unavailable link to pkgupgrade info.
Change default contact person from Saul Wold to Anibal Limon.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-25 12:28:00 +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
5ca3a71286 lib/utils.py: Add support to log to file if LOG_DIR exist in settings
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-24 11:07:56 +00:00
Aníbal Limón
d98ff3845f templates/rrs: Recipes and Maintainers UI search improvments
Display button without btn-info to give consistency in the UI.
Don't display clear search button when search isn't active.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-23 07:55:23 +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
129d0521c4 templates/rrs/recipes.html: Only apply sort to Recipe column at load
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-20 08:17:25 +00:00
Aníbal Limón
e1c75f4788 templates/rrs/recipes.html: Fix url params in JS
Add parse with HTML entity to avoid problems when parameters
passed in URL to JS.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-19 16:35:09 +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
4ff336766b rrs: UI add clear search button in Recipes and Maintainers
This enables the user to clear current search content and restore
the orginial status.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-19 11:57:24 +00:00
Belen Barros Pena
1c5b1c4384 Restrict line length in the about page
Otherwise the content can be hard to read. Also,
make Paul Eggleton bold, to make him stand out! ;)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2015-02-19 11:32:44 +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
Belen Barros Pena
c0ddf464ef Remove milestone name from recipe details page
The idea of having the milestone name showing in the
h1 of the recipe details page was based on the assumption
that there would a recipe details page per recipe
per milestone. This is not the case: there is only one
recipe details page that shows all the existing updates
up to the current milestone.

In this situation, if you land on the recipe details page
from a past milestone, the display of the current milestone
is confusing, since it doesn't match the milestone you
came from.

An easy way to sort this out is simply remove the milestone
from the page heading.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2015-02-18 16:25:45 +00:00
Aníbal Limón
ba7f1f77f2 templates/rrs/base_toplevel.html: Remove Recipes word in statistics bar
Remove Recipes word in statistics bar to make UI more clean avoiding
repeat redundant word.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 16:19:33 +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
85a0c1bc16 rrs: Recipes frontend improvments clean search when select filter
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 14:11:18 +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
b2419f2b85 rrs: Add exception handling to vercmp_string call
Improve robustness adding a exception handling when two versions
are compared because sometimes fails due to incompatible version
format.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 09:46:42 +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
672e57ed0d templates/rrs/about.html: Fix topfunctions and update contributors
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 11:21:47 +00:00
Aníbal Limón
c2dc59357a scripts/tools/rrs_upgrade_history.py: Fix branch deletion
Add try/catch to branch deletion because at initial loop the branch
don't exist.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 10:46:16 +00:00
Aníbal Limón
f613270207 templates/rrs/{recipes, maintainers}.html: Improvment in alert div no
records

Add default display:none to alert div of no records this avoid view this
div at initial load because JS takes time to process the table and hide
it if records are found.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 10:43:53 +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