[Rt-commit] rt branch, 5.0/add-self-service-article-components, repushed

Dianne Skoll dianne at bestpractical.com
Thu Dec 10 11:12:16 EST 2020


The branch 5.0/add-self-service-article-components was deleted and repushed:
       was e94d361931853f082760ea31cc5fb8ac6e730223
       now 76f9f7083ac4bc3c3b05da86cc1e197d08a19802

1: 8d13c41de2 ! 1: 9d6abbcaaa Add SelfService portals to show Top and Newest Articles.
    @@ -1,54 +1,59 @@
     Author: Dianne Skoll <dianne at bestpractical.com>
     
    -    Add components to self-service dashboard to show Top or Newest articles.
    -    
    -    Git is claiming that Article/autohandler was renamed to
    -    ../Elements/SelfServiceNewestArticles, but that is wrong; the
    -    rename-detection algorithm failed.
    -    
    -    The autohandler was unnecessary and has been deleted; its permission
    -    check was wrong.  The existing permission checks in
    -    Elements/SelfService* are correct and sufficient.
    -
    -diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
    ---- a/etc/RT_Config.pm.in
    -+++ b/etc/RT_Config.pm.in
    -@@
    - Set(
    -     $SelfServicePageComponents,
    -     [
    --        qw(QuickCreate QueueList MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards SavedSearches FindUser MyAssets FindAsset FindGroup) # loc_qw
    -+        qw(SelfServiceTopArticles SelfServiceNewestArticles)
    -     ]
    - );
    - 
    --=back
    --
    - =head2 Articles
    - 
    - =over 4
    -
    -diff --git a/share/html/SelfService/Article/autohandler b/share/html/Elements/SelfServiceNewestArticles
    -similarity index 87%
    -rename from share/html/SelfService/Article/autohandler
    -rename to share/html/Elements/SelfServiceNewestArticles
    ---- a/share/html/SelfService/Article/autohandler
    +    Add SelfService portals to show Top and Newest Articles.
    +
    +diff --git a/share/html/Elements/SelfServiceNewestArticles b/share/html/Elements/SelfServiceNewestArticles
    +new file mode 100644
    +--- /dev/null
     +++ b/share/html/Elements/SelfServiceNewestArticles
     @@
    - %# those contributions and any derivatives thereof.
    - %#
    - %# END BPS TAGGED BLOCK }}}
    --<%INIT>
    --
    --if ( $session{'CurrentUser'}->HasRight( Right => 'ShowArticle',
    --                   Object => $RT::System )) {
    --    $m->comp( { base_comp => $m->request_comp }, $m->fetch_next, %ARGS);    
    --}
    --else {
    --    RT::Interface::Web::Redirect($RT::WebURL."SelfService/");
    --}
    --
    --</%INIT>
    ++%# BEGIN BPS TAGGED BLOCK {{{
    ++%#
    ++%# COPYRIGHT:
    ++%#
    ++%# This software is Copyright (c) 1996-2020 Best Practical Solutions, LLC
    ++%#                                          <sales at bestpractical.com>
    ++%#
    ++%# (Except where explicitly superseded by other copyright notices)
    ++%#
    ++%#
    ++%# LICENSE:
    ++%#
    ++%# This work is made available to you under the terms of Version 2 of
    ++%# the GNU General Public License. A copy of that license should have
    ++%# been provided with this software, but in any event can be snarfed
    ++%# from www.gnu.org.
    ++%#
    ++%# This work is distributed in the hope that it will be useful, but
    ++%# WITHOUT ANY WARRANTY; without even the implied warranty of
    ++%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    ++%# General Public License for more details.
    ++%#
    ++%# You should have received a copy of the GNU General Public License
    ++%# along with this program; if not, write to the Free Software
    ++%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    ++%# 02110-1301 or visit their web page on the internet at
    ++%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
    ++%#
    ++%#
    ++%# CONTRIBUTION SUBMISSION POLICY:
    ++%#
    ++%# (The following paragraph is not intended to limit the rights granted
    ++%# to you to modify and distribute this software under the terms of
    ++%# the GNU General Public License and is only of importance to you if
    ++%# you choose to contribute your changes and enhancements to the
    ++%# community by submitting them to Best Practical Solutions, LLC.)
    ++%#
    ++%# By intentionally submitting any modifications, corrections or
    ++%# derivatives to this work, or any other work intended for use with
    ++%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
    ++%# you are the copyright holder for those contributions and you grant
    ++%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
    ++%# royalty-free, perpetual, license to use, copy, create derivative
    ++%# works based on those contributions, and sublicense and distribute
    ++%# those contributions and any derivatives thereof.
    ++%#
    ++%# END BPS TAGGED BLOCK }}}
     +<& /Elements/SelfServiceShowArticles &>
     
     diff --git a/share/html/Elements/SelfServiceShowArticles b/share/html/Elements/SelfServiceShowArticles
2: e94d361931 < -:  ------- Fix POD error that cause unit test failure.
-:  ------- > 2: 6e3192cb15 Remove possible components from Self-Service Home Page dashboard.
-:  ------- > 3: 76f9f7083a Add the self-service article portals to the available self-service home page components.



More information about the rt-commit mailing list