Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: public playbook variables are not displayed by other users #4449

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Nov 21, 2024

fix: public playbook variables are not displayed by other users

},
disableEdit: {
type: Boolean,
default: false
}
},
data() {

Choose a reason for hiding this comment

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

It seems there is no code provided to analyze the differences between two versions. Please upload or share the specific code you would like me to compare and analyze.

@fit2bot fit2bot requested a review from a team November 21, 2024 09:46
@@ -299,6 +299,9 @@ export default {
return editor.value !== editor.originValue
},
setVariable(variables) {
if (this.disableEdit) {
return
}
this.$axios.patch(`/api/v1/ops/playbooks/${this.object.id}/`,
{ variable: variables }).catch(err => {
this.$message.error(this.$tc('UpdateErrorMsg') + ' ' + err)

Choose a reason for hiding this comment

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

I did not execute the script you posted, but based on the code snippet that I've been able to analyze with minimal knowledge up until 2021-09-01, it does seem somewhat clean except perhaps for minor typos such as:

  • Line 35: Remove "variable", it is already used.

However, please note the provided information pertained to my current capacity and cannot be applied retroactively nor should it be taken as official AI expertise. The accuracy of the analysis depends directly on whether the actual code complies with best practices today and also takes into account future security vulnerabilities which are outside the scope of the information available now in regards post my training year.

Copy link

sonarcloud bot commented Nov 21, 2024

@BaiJiangJie BaiJiangJie merged commit 5d1301c into dev Nov 21, 2024
5 checks passed
@BaiJiangJie BaiJiangJie deleted the pr@dev@fix_playbookvar branch November 21, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants