[
https://issues.apache.org/jira/browse/METRON-1662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16566849#comment-16566849
]
ASF GitHub Bot commented on METRON-1662:
----------------------------------------
Github user merrimanr commented on a diff in the pull request:
https://github.com/apache/metron/pull/1118#discussion_r207239050
--- Diff:
metron-interface/metron-alerts/src/app/pcap/pcap-panel/pcap-panel.component.ts
---
@@ -22,33 +22,35 @@ import { PcapRequest } from '../model/pcap.request'
import { Pdml } from '../model/pdml'
import {Subscription} from "rxjs/Rx";
+class Query {
+ id: String
+}
+
@Component({
selector: 'app-pcap-panel',
templateUrl: './pcap-panel.component.html',
styleUrls: ['./pcap-panel.component.scss']
})
-export class PcapPanelComponent implements OnInit {
+export class PcapPanelComponent {
@Input() pdml: Pdml = null;
-
@Input() pcapRequest: PcapRequest;
statusSubscription: Subscription;
queryRunning: boolean = false;
+ queryId: string;
progressWidth: number = 0;
selectedPage: number = 1;
errorMsg: string;
- constructor(private pcapService: PcapService ) { }
-
- ngOnInit() {
- }
+ constructor(private pcapService: PcapService ) {}
onSearch(pcapRequest) {
console.log(pcapRequest);
this.pdml = null;
this.progressWidth = 0;
this.pcapService.submitRequest(pcapRequest).subscribe(id => {
+ this.queryId = id;
--- End diff --
The submitRequest function should return an observable of type
PcapStatusResponse.
> PCAP UI - Downloading PCAP page files
> -------------------------------------
>
> Key: METRON-1662
> URL: https://issues.apache.org/jira/browse/METRON-1662
> Project: Metron
> Issue Type: Sub-task
> Reporter: Tibor Meller
> Priority: Major
>
> As a user, I like to be able to download the filtered PCAP query output in
> PCAP binary format.
> As a user, when I click the download button below the result grid, I like to
> get the result page selected by the paginator component.
>
> *Acceptance criteria*
> Given
> * the user is logged in
> * and navigated to the PCAP panel
> * submitted a PCAP query
> * the valid result appeared on the UI
> When
> * the user clicking the download button below the result grid
> Then
> * the selected page of the result should download in PCAP binary format
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)