Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Lemonldap::NG::Manager::Conf::Parser - Perl extension for parsing new uploaded configurations.

Authors

       LemonLDAP::NG team <http://lemonldap-ng.org/team>

Bug Report

       Use        OW2        system       to       report       bug       or       ask       for       features:
       <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>

       If you want to report a bug concerning configuration upload, please change HIGHDEBUG  constant  value  to
       produce more logs. Then post them in the Gitlab ticket.

Description

       Lemonldap::NG::Manager::Conf::Parser checks new configuration

       This package is used by Manager to examine uploaded configuration. It is currently called using check()
       which return a boolean.  check() looks if a newConf is available. If not, it builds it from uploaded JSON
       (using scanTree() subroutine)

       Messages are stored in errors(), warnings() and changes() as arrays.

       This interface uses Plack to be compatible with CGI, FastCGI,...

Download

       Lemonldap::NG is available at <https://lemonldap-ng.org/download>

Name

       Lemonldap::NG::Manager::Conf::Parser - Perl extension for parsing new uploaded configurations.

See Also

       Lemonldap::NG::Manager, <http://lemonldap-ng.org/>

Synopsis

         require Lemonldap::NG::Manager::Conf::Parser;
         my $parser = Lemonldap::NG::Manager::Conf::Parser->new(
             { tree => $new, refConf => $self->currentConf }
         );
         my $res = { result => $parser->check };
         $res->{message} = $parser->{message};
         foreach my $t (qw(errors warnings changes)) {
             push @{ $res->{details} }, { message => $t, items => $parser->$t }
               if ( @{$parser->$t} );
         }

See Also