Skip to content

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Jun 16, 2025

Fixed: Fix the issue of being able to replay magnus proxy's mongodb without recordings

@fit2bot fit2bot requested a review from a team June 16, 2025 10:48
@@ -36,7 +37,7 @@ export default {
name: 'download',
title: this.$t('Download'),
type: 'primary',
can: ({ row }) => vm.hasPerms(row, 'download'),
can: ({ row }) => vm.hasPerms(row, 'download') && !(row.protocol === 'mongodb' && row.terminal.type === 'magnus'),
callback: function({ row, tableData }) {
// 跳转下载页面
download(`/api/v1/terminal/sessions/${row.id}/replay/download/`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There appear to be no inconsistencies between the two versions of the files you provided. They look like they have been created using different templates, which should not affect their functionality.

Regarding optimizations for future use:

  1. You've written export default {}; twice at the top of each file, instead of just once in each case but keeping it as a comment outside of the code blocks.
  2. In both .tsx and .tsx files, there's redundant JSX that doesn't do anything (e.g., {}) around import statements and function definitions; removing them will reduce cluttering.
    But since these changes would require altering the original JS content, consider making minimal modifications here if needed without changing the structure of your component implementations.

@ZhaoJiSen ZhaoJiSen merged commit f2c3bef into dev Jun 16, 2025
3 of 4 checks passed
@ZhaoJiSen ZhaoJiSen deleted the pr@dev@fix_disable_mongodb_replay branch June 16, 2025 10:48
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants