manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishore Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONNECTORS-1196) Proposal to update Manifold Crawler UI
Date Mon, 20 Mar 2017 23:36:42 GMT

    [ https://issues.apache.org/jira/browse/CONNECTORS-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15933796#comment-15933796
] 

Kishore Kumar commented on CONNECTORS-1196:
-------------------------------------------

Hi [~daddywri],

I have added two new methods for testing jobs

{code:java}
/**
   * Perform an action (Start, Start minimal, Pause, Restart, Restart minimal, Abort) on a
specified job.
   * @param jobID
   * @param action
   */
  public void performJobAction(String jobID,String action)
  {
    waitElementClickable(By.xpath("//tr[@job-id=" + jobID + "]//a[contains(@class,'btn') and
text()='" + action + "']")).click();
  }
  
  /**
   * Wait until the status of an job become as mentioned
   * @param jobID
   * @param jobStatus
   * @param timeoutAmount
   * @throws Exception
   */
  public void waitForJobStatus(String jobID,String jobStatus,int timeoutAmount) throws Exception
  {
    while (!exists(By.xpath("//tr[@job-id='" + jobID + "' and @job-status-name='" + jobStatus
+ "']")))
    {
      System.out.println("Job Status: " + getJobStatus(jobID));
      if (timeoutAmount == 0)
      {
        throw new Exception("Timed out waiting for job " + jobID + " to go away");
      }
      clickButton("Refresh");
      waitForElementWithName("liststatuses");
      //Let us wait for a second.
      Thread.sleep(1000L);
      timeoutAmount--;
    }
    System.out.println("Final Job Status: " + getJobStatus(jobID));
  }
{code}

I think we should wait till early April to move it to trunk, we may need to modify few things
when we start writing test cases for other connectors, just a thought.
I need to do one more major change to javascript file, replacing jquery.history.js with HTML
5 History Web API.

Thanks,
Kishore Kumar

> Proposal to update Manifold Crawler UI
> --------------------------------------
>
>                 Key: CONNECTORS-1196
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1196
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Framework core
>    Affects Versions: ManifoldCF next
>            Reporter: Kishore Kumar
>            Assignee: Kishore Kumar
>             Fix For: ManifoldCF next
>
>         Attachments: Bandwidth Report.png, Index.jsp.png, List Repository.png, Report.png,
View.png
>
>
> Hi,
> I have been working on a new User Interface for ManifoldCF.
> This UI is based on Bootstrap, jQuery and some other opensource scripts.
> Only the index.jsp will be loaded once and other page are rendered using AJAX call, making
it more responsive and modern.
> Please find the attached screenshots.
> *Backward compatibility:*
> Since most of our tab comes from connectors, those tabs will be displayed as it is with
no immediate attention required. (see sample screenshot attached)
> *What next?*
> In future we can add Charts to our reports where ever applicable, so that it will be
more user friendly & informative for end users.
> Can make use of Web socket to notify exception or error to users as Notifications.
> *Browser compatibility*
> Has been tested with most latest browser and IE10, will try to add support for IE8 with
acceptable degradation.
> Any suggestion, concern much appreciated.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message