Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer dashboard test #3

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
dc0dad7
bin dir added
Jul 15, 2018
065ba41
test config added
Jul 15, 2018
27b628d
Log4perl basic config added for dashboard logger
Jul 15, 2018
c5843a1
Log4perl for db added for test
Jul 15, 2018
63c38e2
Log dir added to scaleton
Jul 15, 2018
c140e36
Basic test added
Jul 15, 2018
64da4b5
Uploads and finished dir added
Jul 15, 2018
edfab79
Env dir added
Jul 15, 2018
0853c58
layout dir added
Jul 15, 2018
4178eae
Custom own 404 505 abou and upload page added
Jul 15, 2018
de1c38a
own PERL lib added
Jul 15, 2018
aa14df1
logstation dir added
Jul 15, 2018
df4c543
Custom js added
Jul 15, 2018
836fb9b
Custom javascript added
Jul 15, 2018
fde0796
Custom css added
Jul 15, 2018
a48dd44
Custom Public dir added
Jul 15, 2018
a4cfad6
Merge pull request #1 from spajai/BackEnd-Code-WIP
spajai Jul 15, 2018
f45b77c
adding js files
Jul 16, 2018
280649e
removing unwanted files
Jul 16, 2018
5b2bef6
adding views and js
Jul 18, 2018
bd5b6a3
Major changes and clean up
Jul 23, 2018
abf10da
Cleanup
Jul 23, 2018
c80ac18
resolved dashboard issues
durvesh09 Aug 3, 2018
3b2ded7
Cpan modules added for offline use
Aug 8, 2018
cb819e9
Confirm js css added
Aug 8, 2018
3053244
Fonts added
Aug 8, 2018
634285e
Views added for test
Aug 8, 2018
93760a5
Lib updated new routes addedd and cleanup
Aug 8, 2018
606e8ad
giignore updated
Aug 8, 2018
b82bc14
giignore updated
Aug 8, 2018
5f117ce
giignore updated
Aug 8, 2018
ee0cb27
Update developerdashboard.pm
spajai Aug 8, 2018
46ee046
Routes added
Aug 9, 2018
d4b31f4
report processor loggin enhanced and new fetures added
Aug 9, 2018
8785694
add update delete dev added new routes added
Aug 9, 2018
a33ab1c
committing add user page
Dur09 Aug 11, 2018
a15a23c
re-positioned site hits, added tooltips, restart button
Dur09 Aug 11, 2018
42f9337
adding restart report processor functionality with confirmation box
Dur09 Aug 11, 2018
6b44350
Return should never be in eval
Aug 13, 2018
9067a19
Custom js upadated with better aproach
Aug 13, 2018
ff0f01c
Js moved to dedicated file
Aug 13, 2018
30ec606
adding routes for system interface and trends
Dur09 Aug 16, 2018
b5fa9cc
adding trends, system interface, updating upload
Dur09 Aug 21, 2018
06203f8
adding validator JS and CSS
Dur09 Aug 21, 2018
59acc44
new routes added
Aug 21, 2018
f9f62b8
fixed routes,added odometer and changed position
Dur09 Aug 21, 2018
1f2aeea
Sql file added
Aug 22, 2018
b2d2cd4
Merge branch 'developer-dashboard-test' of https://github.com/spajai/…
Aug 22, 2018
3854f90
bug fix and script moved to head
Aug 22, 2018
a05b4a5
modified route for system interface
Dur09 Aug 22, 2018
bf109bb
modified sql file
Dur09 Aug 22, 2018
4ca9dc1
Updated Conf
spajai Aug 22, 2018
c318e93
Treds api and route has been added
Aug 23, 2018
8fe35a9
added validation to add developer page
Aug 31, 2018
440ce64
adding trends javascript and view
Dur09 Aug 31, 2018
a9a008a
refactored dashboard, developer stats
Dur09 Aug 31, 2018
44be18d
New routes and api added
Sep 1, 2018
2dfd2b4
Merge branch 'developer-dashboard-test' of https://github.com/spajai/…
Sep 1, 2018
9df24a3
Update Utils.pm
spajai Jan 31, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
46 changes: 11 additions & 35 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
!Build/
.last_cover_stats
/META.yml
/META.json
/MYMETA.*
*.o
*.pm.tdy
*.bs

# Devel::Cover
cover_db/

# Devel::NYTProf
nytprof.out

# Dizt::Zilla
/.build/

# Module::Build
_build/
Build
Build.bat

# Module::Install
inc/

# ExtUtils::MakeMaker
/blib/
/_eumm/
/*.gz
/Makefile
/Makefile.old
/MANIFEST.bak
/pm_to_blib
/*.zip
config
logs/
logs
*.log
config/log4perl.conf
lib/Custom/
test_Script
uploads/finished/
uploads/
.*.log.LCK
lib/Conf.pm
46 changes: 46 additions & 0 deletions bin/app.psgi
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env perl

use strict;
use warnings;
use lib '/developer_dashboard/cpanlib';
use lib '/developer_dashboard/lib';
use File::FindLib 'lib';
use File::FindLib 'cpanlib';
# use this block if you don't need middleware, and only have a single target Dancer app to run here
use developerdashboard;


developerdashboard->to_app;

=begin comment
# use this block if you want to include middleware such as Plack::Middleware::Deflater

use developerdashboard;
use Plack::Builder;

builder {
enable 'Deflater';
developerdashboard->to_app;
}

=end comment

=cut

=begin comment
# use this block if you want to mount several applications on different path

use developerdashboard;
use developerdashboard_admin;

use Plack::Builder;

builder {
mount '/' => developerdashboard->to_app;
mount '/admin' => developerdashboard_admin->to_app;
}

=end comment

=cut

21 changes: 21 additions & 0 deletions bin/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
environment : production
appname: developerdashboard
charset: UTF-8
engines:
session:
YAML:
cookie_name: eshop.session
is_http_only: 1
is_secure: 1
JSON:
allow_blessed: '1'
canonical: '1'
convert_blessed: '1'
allow_nonref: '1'
layout: main
port: 6776
template: template_toolkit
logger: file
log_path : '/home/ubuntu/test_dancer/logs'
log_file : 'Applog.log'
10 changes: 10 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
environment : production
appname: developerdashboard
charset: UTF-8
template: template_toolkit
engines:
session:
Simple:
cookie_name: dashboard.user
cookie_duration: '1 hours'
23 changes: 23 additions & 0 deletions config/log4perl.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
log4perl.category.dashboardlog = ALL, Logfile
log4perl.appender.Logfile = Log::Dispatch::FileRotate

log4perl.appender.Logfile.Threshold = ALL
log4perl.appender.Logfile.filename = /developer-dashboard-for-jira/developerdashboard.log
log4perl.appender.Logfile.max = 50
log4perl.appender.Logfile.DatePattern = yyyy-MM-dd
log4perl.appender.Logfile.TZ = UTC
log4perl.appender.Logfile.layout = Log::Log4perl::Layout::PatternLayout
log4perl.appender.Logfile.layout.ConversionPattern = [%d] [%P] [%F] [%L] [%C] [%5p] %m%n
log4perl.appender.Logfile.mode = append

log4perl.category.dblog = ALL, DBlogs

log4perl.appender.DBlogs = Log::Dispatch::FileRotate
log4perl.appender.DBlogs.Threshold = ALL
log4perl.appender.DBlogs.filename = /developer-dashboard-for-jira/logs/DB.log
log4perl.appender.DBlogs.max = 50
log4perl.appender.DBlogs.DatePattern = yyyy-MM-dd
log4perl.appender.DBlogs.TZ = UTC
log4perl.appender.DBlogs.layout = Log::Log4perl::Layout::PatternLayout
log4perl.appender.DBlogs.layout.ConversionPattern = [%d] [%P] [%F] [%L] [%C] [%5p] %m%n
log4perl.appender.DBlogs.mode = append
177 changes: 177 additions & 0 deletions cpanlib/B/Hooks/EndOfScope.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
package B::Hooks::EndOfScope; # git description: 0.23-2-ga391106
# ABSTRACT: Execute code after a scope finished compilation
# KEYWORDS: code hooks execution scope

use strict;
use warnings;

our $VERSION = '0.24';

use 5.006001;

BEGIN {
use Module::Implementation 0.05;
Module::Implementation::build_loader_sub(
implementations => [ 'XS', 'PP' ],
symbols => [ 'on_scope_end' ],
)->();
}

use Sub::Exporter::Progressive 0.001006 -setup => {
exports => [ 'on_scope_end' ],
groups => { default => ['on_scope_end'] },
};

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

B::Hooks::EndOfScope - Execute code after a scope finished compilation

=head1 VERSION

version 0.24

=head1 SYNOPSIS

on_scope_end { ... };

=head1 DESCRIPTION

This module allows you to execute code when perl finished compiling the
surrounding scope.

=head1 FUNCTIONS

=head2 on_scope_end

on_scope_end { ... };

on_scope_end $code;

Registers C<$code> to be executed after the surrounding scope has been
compiled.

This is exported by default. See L<Sub::Exporter> on how to customize it.

=head1 LIMITATIONS

=head2 Pure-perl mode caveat

This caveat applies to B<any> version of perl where L<Variable::Magic>
is unavailable or otherwise disabled.

While L<Variable::Magic> has access to some very dark sorcery to make it
possible to throw an exception from within a callback, the pure-perl
implementation does not have access to these hacks. Therefore, what
would have been a B<compile-time exception> is instead B<converted to a
warning>, and your execution will continue as if the exception never
happened.

To explicitly request an XS (or PP) implementation one has two choices. Either
to import from the desired implementation explicitly:

use B::Hooks::EndOfScope::XS
or
use B::Hooks::EndOfScope::PP

or by setting C<$ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION}> to either C<XS> or
C<PP>.

=head2 Perl 5.8.0 ~ 5.8.3

Due to a L<core interpreter bug
|https://rt.perl.org/Public/Bug/Display.html?id=27040#txn-82797> present in
older perl versions, the implementation of B::Hooks::EndOfScope deliberately
leaks a single empty hash for every scope being cleaned. This is done to
avoid the memory corruption associated with the bug mentioned above.

In order to stabilize this workaround use of L<Variable::Magic> is disabled
on perls prior to version 5.8.4. On such systems loading/requesting
L<B::Hooks::EndOfScope::XS> explicitly will result in a compile-time
exception.

=head2 Perl versions 5.6.x

Versions of perl before 5.8.0 lack a feature allowing changing the visibility
of C<%^H> via setting bit 17 within C<$^H>. As such the only way to achieve
the effect necessary for this module to work, is to use the C<local> operator
explicitly on these platforms. This might lead to unexpected interference
with other scope-driven libraries relying on the same mechanism. On the flip
side there are no such known incompatibilities at the time this note was
written.

For further details on the unavailable behavior please refer to the test
file F<t/02-localise.t> included with the distribution.

=head1 SEE ALSO

L<Sub::Exporter>

L<Variable::Magic>

=head1 SUPPORT

Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=B-Hooks-EndOfScope>
(or L<[email protected]|mailto:[email protected]>).

=head1 AUTHORS

=over 4

=item *

Florian Ragwitz <[email protected]>

=item *

Peter Rabbitson <[email protected]>

=back

=head1 CONTRIBUTORS

=for stopwords Karen Etheridge Tatsuhiko Miyagawa Christian Walde Tomas Doran Graham Knop Simon Wilper

=over 4

=item *

Karen Etheridge <[email protected]>

=item *

Tatsuhiko Miyagawa <[email protected]>

=item *

Christian Walde <[email protected]>

=item *

Tomas Doran <[email protected]>

=item *

Graham Knop <[email protected]>

=item *

Simon Wilper <[email protected]>

=back

=head1 COPYRIGHT AND LICENCE

This software is copyright (c) 2008 by Florian Ragwitz.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut
Loading