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

Hera/Improve parity #1337

Open
wants to merge 102 commits into
base: develop
Choose a base branch
from
Open

Hera/Improve parity #1337

wants to merge 102 commits into from

Conversation

nicolachr
Copy link
Contributor

Summary

This PR brings additional CSS to improve parity between Dradis CE and Dradis Pro.

Check List

  • Added a CHANGELOG entry

@@ -26,34 +50,18 @@ def flash_messages
end.join("\n").html_safe
end

def in_project?
defined?(current_project) && current_project&.persisted?
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
defined?(current_project) && current_project&.persisted?
current_project && current_project.persisted?

Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need the safeguard since we shouldn't end up on the right side of this expression unless current_project exists

Copy link
Contributor

@caitmich caitmich Feb 13, 2025

Choose a reason for hiding this comment

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

defined?(current_project) returns "method" but we only need to check whether it's nil or not

Copy link
Contributor

Choose a reason for hiding this comment

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

Unless this is due to a strange case where it's defined and not set? There is probably a nicer way to handle this case

'in-project': in_project?
),
data: {
env: (Rails.env unless Rails.env.production?),
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the purpose of this line?

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