-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
chore: removed unwanted metrics #37052
chore: removed unwanted metrics #37052
Conversation
WalkthroughThe changes involve the removal of two static final string constants from the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java (2)
Line range hint
529-580
: Consider adding debug logging for bindingsInDsl population.Adding debug logging when bindingsInDsl is populated would improve troubleshooting capabilities without impacting performance.
if (!bindingsWithExecutableReference.isEmpty() && bindingsInDsl != null) { + log.debug("Adding {} bindings to DSL references", bindingsWithExecutableReference.size()); bindingsInDsl.addAll(bindingsWithExecutableReference); }
Line range hint
529-580
: Consider optimizing collection operations for better performance.The current implementation performs multiple iterations over collections. Consider using a more efficient approach:
-Set<EntityDependencyNode> bindingsWithExecutableReference = new HashSet<>(); -entry.getValue().stream().forEach(binding -> { +Set<EntityDependencyNode> bindingsWithExecutableReference = entry.getValue().stream() + .filter(binding -> { Executable executable = executableMap.get(binding.getValidEntityName()); - if (executable != null) { - if (binding.getEntityReferenceType().equals(executable.getEntityReferenceType())) { - binding.setExecutable(executable); - bindingsWithExecutableReference.add(binding); - if (!TRUE.equals(binding.getIsFunctionCall())) { - possibleEntitiesReferences.add(binding); - } - } - } else if (EntityReferenceType.WIDGET.equals(binding.getEntityReferenceType())) { - possibleEntitiesReferences.add(binding); - } -}); + return executable != null && + binding.getEntityReferenceType().equals(executable.getEntityReferenceType()); + }) + .peek(binding -> { + Executable executable = executableMap.get(binding.getValidEntityName()); + binding.setExecutable(executable); + if (!TRUE.equals(binding.getIsFunctionCall())) { + possibleEntitiesReferences.add(binding); + } + }) + .collect(Collectors.toSet());
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (2)
- app/server/appsmith-interfaces/src/main/java/com/appsmith/external/constants/spans/ce/OnLoadSpanCE.java (0 hunks)
- app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java (2 hunks)
💤 Files with no reviewable changes (1)
- app/server/appsmith-interfaces/src/main/java/com/appsmith/external/constants/spans/ce/OnLoadSpanCE.java
🔇 Additional comments (1)
app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java (1)
506-506
: LGTM! Clean implementation of method overloading.The addition of the
bindingsInDsl
parameter and its handling in the implementation is well-structured. The code maintains backward compatibility through method overloading while extending functionality to track DSL bindings.Also applies to: 529-580
This reverts commit 88b987f.
## Description > This PR removes the extra metrics that were added which clouded up the newrelic. Old PR appsmithorg#37010 is to be closed because extra indentation was added due to the IDE configuration. Fixes appsmithorg#37051 ## Automation /ok-to-test tags="@tag.Sanity" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!IMPORTANT] > 🟣 🟣 🟣 Your tests are running. > Tests running at: <https://github.com/appsmithorg/appsmith/actions/runs/11493693400> > Commit: 51ecb28 > Workflow: `PR Automation test suite` > Tags: `@tag.Sanity` > Spec: `` > <hr>Thu, 24 Oct 2024 06:16:14 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No
Description
Fixes #37051
Automation
/ok-to-test tags="@tag.Sanity"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/11493693400
Commit: 51ecb28
Cypress dashboard.
Tags:
@tag.Sanity
Spec:
Thu, 24 Oct 2024 06:48:22 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?