Bug 839780 - RFE: Add support for other languages in the alert CLI scripts
Summary: RFE: Add support for other languages in the alert CLI scripts
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Alerts, Core Server
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: RHQ 4.5.0
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-12 19:59 UTC by Lukas Krejci
Modified: 2013-09-01 10:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-01 10:07:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Lukas Krejci 2012-07-12 19:59:14 UTC
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 14:59:28 UTC
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>
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 10:07:55 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.