Skip to content

✨ feat: Namespace should be correctly tracked for managed packages (ENTERING_MANAGED_PKG) #508

Description

@biswajith-s-pso-maxval

✨ Feature Request

Group By and filter on Namespace should work on the Database tab, as they do on Analysis and Call Tree.

🧩 Problem This Solves

Under the Analysis tab or under the Call Tree tab, if we Group By Namespace then it shows up
image
image

But unfortunately, under the Database tab, the group by feature or filtering on Namespace doesn't work. It only shows default.
image
image

🧠 Proposed Solution

Blocked on Salesforce: the log gives ENTERING_MANAGED_PKG but no matching exit event, so after entering a package we cannot tell whether a later SOQL ran inside it or back in the caller. We default to default rather than guess. Full analysis, with nested packages and triggers, is in this comment.

Until the log output changes, the options are:

  1. Show a message to explain the behaviour.
  2. Show all the possible namespaces the SOQL could be in.
  3. Guess at the most likely and risk getting it wrong.

🔄 Alternatives

Leave the Database tab attributing everything to default, which is what happens today. Never wrong, but it hides real package activity.

📎 Additional context

Salesforce idea to add the missing exit event. Kept open as a feature so others hitting the same behaviour can find the explanation.

Pinned by lcottercertinia

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions