MCPcopy
hub / github.com/apache/echarts / deleteMark

Function deleteMark

test/runTest/client/client.js:560–594  ·  view source on GitHub ↗
(mark)

Source from the content-addressed store, hash-verified

558 this.showMarkAsExpectedDialog();
559 },
560 deleteMark(mark) {
561 this.$confirm('Are you sure you want to delete this mark? This action cannot be undone.', 'Warning', {
562 confirmButtonText: 'Delete',
563 cancelButtonText: 'Cancel',
564 type: 'warning'
565 }).then(() => {
566 socket.emit('deleteMark', {
567 testName: this.currentTest.name,
568 markTime: mark.markTime
569 }, (err) => {
570 if (err) {
571 this.$message.error('Failed to delete: ' + err);
572 return;
573 }
574
575 if (this.currentTest && this.currentTest.markedAsExpected) {
576 if (Array.isArray(this.currentTest.markedAsExpected)) {
577 this.currentTest.markedAsExpected = this.currentTest.markedAsExpected.filter(
578 item => item.markTime !== mark.markTime
579 );
580
581 if (this.currentTest.markedAsExpected.length === 0) {
582 this.currentTest.markedAsExpected = null;
583 }
584 } else if (this.currentTest.markedAsExpected.markTime === mark.markTime) {
585 this.currentTest.markedAsExpected = null;
586 }
587 }
588
589 this.$message.success('Mark deleted successfully');
590 });
591 }).catch(() => {
592 // User canceled
593 });
594 },
595 showMarkAsExpectedDialog() {
596 // Only initialize identity fields from user meta
597 let markedBy = this.userMeta?.myGitHubId || '';

Callers

nothing calls this directly

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…