Bugzilla – Attachment 174313 Details for
Bug 38383
say_info messages in web installer have bad contrast/font color
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38383: [DO NOT PUSH] Dbrev for testing
Bug-38383-DO-NOT-PUSH-Dbrev-for-testing.patch (text/plain), 2.04 KB, created by
David Nind
on 2024-11-10 18:20:36 UTC
(
hide
)
Description:
Bug 38383: [DO NOT PUSH] Dbrev for testing
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-11-10 18:20:36 UTC
Size:
2.04 KB
patch
obsolete
>From fcc09cf85cdd9c6417f9712cf429e9c1f476602e Mon Sep 17 00:00:00 2001 >From: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >Date: Fri, 8 Nov 2024 15:48:33 -0500 >Subject: [PATCH] Bug 38383: [DO NOT PUSH] Dbrev for testing > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../data/mysql/atomicupdate/dbrev_test.pl | 44 +++++++++++++++++++ > 1 file changed, 44 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/dbrev_test.pl > >diff --git a/installer/data/mysql/atomicupdate/dbrev_test.pl b/installer/data/mysql/atomicupdate/dbrev_test.pl >new file mode 100644 >index 0000000000..eec27863e7 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/dbrev_test.pl >@@ -0,0 +1,44 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "BUG_NUMBER", >+ description => "Test dbrev", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ say_success($out, "Success!"); >+ say_info($out, "Info..."); >+ say_warning($out, "Warning!!"); >+ say_failure($out, "Failure :("); >+ >+ # Do you stuffs here >+ $dbh->do(q{CREATE TABLE borrowers}); >+ >+ # Print useful stuff here >+ # tables >+ say $out "Added new table 'XXX'"; >+ say $out "Added column 'XXX.YYY'"; >+ >+ # sysprefs >+ say $out "Added new system preference 'XXX'"; >+ say $out "Updated system preference 'XXX'"; >+ say $out "Removed system preference 'XXX'"; >+ >+ # permissions >+ say $out "Added new permission 'XXX'"; >+ >+ # letters >+ say $out "Added new letter 'XXX' (TRANSPORT)"; >+ >+ # HTML customizations >+ say $out "Added 'XXX' HTML customization"; >+ >+ # Other information >+ say_failure( $out, "Use red for danger/failure" ); >+ say_success( $out, "Use green for success" ); >+ say_warning( $out, "Use yellow for warning/a call to action" ); >+ say_info( $out, "Use blue for further information" ); >+ }, >+}; >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38383
:
174298
|
174299
|
174313
|
174314
|
174409
|
174411
|
174412
|
174413
|
174738
|
174739