Allow public dashboards
[?]
May 27, 2016, 10:00 AM
BKMQXGBOQIANQGBI3JMMVE3CA32SJF2MI4XMXAJA3EWZ2MYPZDTQCDependencies
- [2]
4AKMU4ZBClean up user editing - [3]
ZB3JV52WAdd a "My jobsets" tab to the dashboard - [4]
XJRJ4J7MAdd user registration - [5]
SB2V735VKeep track of the database schema version - [6]
D44B24QCStore the account type ("hydra" or "persona") explicitly in the database - [7]
KSBB33REAdd a dashboard - [8]
Y6AHH4THRemove the logfile and logSize columns from the database - [9]
LZVO64YGMerge in the first bits of the API work - [10]
CGVHVQOJIn the "My jobs" tab, ignore disabled projects/jobsets - [11]
ZDENAYQI* email notification of evaluation errors to project owner (if desired) - [12]
PF72JKWQAdd a "My jobs" tab to the dashboard - [13]
SYLVCTT6Start api cleanup with the User model - [14]
KN3VYE5P* Cleaned up the foreign key constraints. - [*]
MQMF2LBWRe-enable adding new users via the web interface - [*]
S66BOMVU* Added authentication. - [*]
ZWCTAZGLadded newsitems, added some admin options to clear various caches. - [*]
SZYDW2DGhydra: added some user admin - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- edit in src/lib/Hydra/Controller/User.pm at line 232
, publicdashboard => $c->stash->{params}->{"publicdashboard"} ? 1 : 0 - replacement in src/lib/Hydra/Controller/User.pm at line 340
sub dashboard :Chained('user') :Args(0) {sub dashboard_old :Chained('user') :PathPart('dashboard') :Args(0) {my ($self, $c) = @_;$c->res->redirect($c->uri_for($self->action_for("dashboard"), $c->req->captures));}sub dashboard_base :Chained('/') PathPart('dashboard') CaptureArgs(1) {my ($self, $c, $userName) = @_;$c->stash->{user} = $c->model('DB::Users')->find($userName)or notFound($c, "User $userName doesn't exist.");accessDenied($c, "You do not have permission to view this dashboard.")unless $c->stash->{user}->publicdashboard ||(defined $c->user && ($userName eq $c->user->username || !isAdmin($c)));}sub dashboard :Chained('dashboard_base') :PathPart('') :Args(0) { - replacement in src/lib/Hydra/Controller/User.pm at line 373
sub my_jobs_tab :Chained('user') :PathPart('my-jobs-tab') :Args(0) {sub my_jobs_tab :Chained('dashboard_base') :PathPart('my-jobs-tab') :Args(0) { - replacement in src/lib/Hydra/Controller/User.pm at line 392
sub my_jobsets_tab :Chained('user') :PathPart('my-jobsets-tab') :Args(0) {sub my_jobsets_tab :Chained('dashboard_base') :PathPart('my-jobsets-tab') :Args(0) { - edit in src/lib/Hydra/Schema/Users.pm at line 68
is_nullable: 0=head2 publicdashboarddata_type: 'boolean'default_value: false - edit in src/lib/Hydra/Schema/Users.pm at line 91
"publicdashboard",{ data_type => "boolean", default_value => \"false", is_nullable => 0 }, - replacement in src/lib/Hydra/Schema/Users.pm at line 195
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-11-05 10:22:03# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Gd8KwFcnVShZ/WihvwfgQw# Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-27 11:32:14# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Az1+V+ztJoWUt50NLQR3xg - edit in src/root/user.tt at line 64
</label></div></div><div class="control-group"><div class="controls"><label class="checkbox"><input type="checkbox" name="publicdashboard" [% IF !create && user.publicdashboard; 'checked="checked"'; END %]/>Public dashboard - replacement in src/sql/hydra.sql at line 13
type text not null default 'hydra' -- either "hydra" or "persona"type text not null default 'hydra', -- either "hydra" or "persona"publicDashboard boolean not null default false - file addition: upgrade-49.sql[21.3004]
alter table Users add column publicDashboard boolean not null default false;