FLUID-3305: Create a component that create the bug-parade mail content during bug parade period.

Metadata

Source
FLUID-3305
Type
New Feature
Priority
Minor
Status
Closed
Resolution
Won't Fix
Assignee
N/A
Reporter
joan garcia
Created
2009-10-19T11:14:38.000-0400
Updated
2014-06-25T16:28:26.558-0400
Versions
  1. 1.4
Fixed Versions
N/A
Component
  1. Infrastructure

Description

Create a component that query jira during bug parade time.

As params: gets the tags (Bug Parade ...) to filter.

As a result: The mail content to be summit (after validation) to the mailing list.

Comments

  • joan garcia commented 2009-10-20T09:23:51.000-0400

    Basic functionality already posted.

    Next steps:
    1.- Extract component and create the parametrization and the public methods and events.
    2.- Component testing.
    3.- Component documentation (wiki page?).
    4.- kettle integration to get data from real server :question:.
    5.- Wiki page integration.

  • joan garcia commented 2009-10-20T10:00:54.000-0400

    basic functionality code posted here: https://source.fluidproject.org/svn/scratchpad/bug-parade

  • joan garcia commented 2009-10-20T13:56:19.000-0400

    First component alpha commited to scratchpad.

  • joan garcia commented 2009-11-04T11:28:16.000-0500

    (Inside Aptana in debug) When I ajax call from the parade component to kettle i get:

    [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://127.0.0.1:8000/infusion/src/webapp/lib/jquery/core/js/jquery.js Line: 3517"]

    But from the browser it works fine.
    http://localhost:8080/kettleParade/index.html

  • joan garcia commented 2009-11-05T06:20:35.000-0500

    Right now the component extracts data from jira server.

    I need (to get it working):

    1.- Apache2 (as reverse proxy):

    ProxyPass /kettleParade "http://w.x.y.z:8080/kettleParade"
    ProxyPassReverse /kettleParade "http://w.x.y.z:8080/kettleParade"

    2.- Apache2 (as a server for the component itself):

    Alias /bug-parade/ "/local_path_to_aptana_workspace/bug-parade/"
    <Directory "/local_path_to_aptana_workspace/bug-parade/">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    3.- Jetty running kettle (with the kettleParadeComponent.js deployed on it).

    /*
    Copyright 2009 University of Cambridge
    Copyright 2009 University of Toronto

    Licensed under the Educational Community License (ECL), Version 2.0 or the New
    BSD license. You may not use this file except in compliance with one these
    Licenses.

    You may obtain a copy of the ECL 2.0 License and BSD License at
    https://source.fluidproject.org/svn/LICENSE.txt
    */

    // Declare dependencies.
    /global jQuery, fluid/

    fluid = fluid || {};

    (function($, fluid) {
    fluid.kettleDemo = fluid.kettleDemo || {};

    fluid.kettleDemo.initParadeComponent = function(config, app) {

    var getData = function(theUrl) {
    var model = {};

    var successCallback = function(data, status) {
    model.data = data;
    }

    $.ajax( {
    url : theUrl,
    success : successCallback,
    dataType : "text",
    async : false
    })

    return model;
    }

    var handler = function(context, env) {
    var url = decodeURIComponent(env.QUERY_STRING.substring(3))
    var aux = getData(url);
    fluid.setLogging(true);
    fluid.log("Retrieved [" + url + "]=>\n" + aux.data.substring(0,512) + "...");
    return [ 200, {
    "Content-Type" : "text/xml"
    }, aux.data ];
    };

    fluid.engage.mountHandler(app, "kettleParade/", handler);
    };
    })(jQuery, fluid);

  • joan garcia commented 2009-11-10T13:41:00.000-0500

    files needed to patch kettle. To add the parade server side component functionality.

  • joan garcia commented 2009-11-10T13:43:42.000-0500

    I can't create a patch for the new js file, aptana refuses to create the patch.
    Here I place the path to help the merging task (to be done).

    fluid-engage-kettle/src/main/webapp/services/kettleDemo/js/kettleParadeComponent.js

  • joan garcia commented 2009-11-17T06:17:20.000-0500

    This a review patch of kettle parade server component (having build with the latest directory alias refactor done in kettle [adding "fuild-" before project directory ]

  • Andrea Leutgoeb commented 2009-12-18T08:12:20.000-0500

    Patch to be reviewed pls.

    Changes

    • Jslinted parade.html & parade.js
    • New jslinted standalone version parade-standalone.html
  • Andrea Leutgoeb commented 2010-01-05T05:26:28.000-0500

    Code changes to be reviewed:

    1. Load local demo data by setting connectivity mode to standalone:
    http://[...]/parade.html?mode=standalone
    2. Structural issues addressed & jslinted

  • Andrea Leutgoeb commented 2010-01-13T09:53:46.000-0500

    Patch to be reviewed pls:

    1. Changed parade.js in order to work straight off the file system.
    2. Refactored ajax calls to server.