Bug 839780

Summary: RFE: Add support for other languages in the alert CLI scripts
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: Alerts, Core ServerAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5CC: hrupp
Target Milestone: ---Keywords: FutureFeature
Target Release: RHQ 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-01 06:07:55 EDT Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Lukas Krejci 2012-07-12 15:59:14 EDT
Description of problem:

The CLI proper can now support multiple programming languages and we already have implemented support for python.

On the other hand, alert scripts in the server are still bound only to javascript.
Without much effort it would be possible to enhance the support for python even in the server even though it would need a change in the scripting apis to be able to  pick a script engine based on the script file extension (which is trivial but still an API change - which would not be a problem if we implemented this before we release 4.5.0 ;) ).

Version-Release number of selected component (if applicable):
4.5.0-SNAPSHOT

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Lukas Krejci 2012-07-13 10:59:28 EDT
To test this, you just need to make sure that javascript alert scripts work if the scripts have the filename with the "js" extension.

Python support is not built in the RHQ server yet, so you can't test that with that.

commit 33db4718581ca09afc259a8e73310ce65a573025
Author: Lukas Krejci <lkrejci@redhat.com>
Date:   Fri Jul 13 16:54:14 2012 +0200

    [BZ 839780] - The scriptengine providers now can tell the file extension of
    the scripts they support. The alert-cli plugin then picks the correct
    script engine implementation for a script based on its file name extension.
Comment 2 Heiko W. Rupp 2013-09-01 06:07:55 EDT
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.