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

CHANGE: @W-17321151@: Only show fields in detail view of rules command if they are non-empty #1684

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

stephen-carter-at-sf
Copy link
Collaborator

No description provided.

Comment on lines +48 to +51
if (rule.getTags().length > 0) {
body['tags'] = rule.getTags().join(', ');
keys.push('tags');
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think there might be value in having a tag-less rule display with tags: none or something like that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You'll have to ask John and Marcelino if that's what they want. Last I heard, we just wanted to hide the fields if they were empty.

Comment on lines +61 to +64
if (rule.getDescription().length > 0) {
body['description'] = rule.getDescription();
keys.push('description');
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Genuine question: Why is it valid for a rule to have no description? That seems like it should be a required property.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

IDK... if people don't put in a description in their custom PMD that might occur.

@stephen-carter-at-sf stephen-carter-at-sf merged commit be7eb26 into dev-5 Nov 27, 2024
12 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the sc/W-17321151 branch November 27, 2024 16:32
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.

2 participants