The custom labels from managed package are retrieved when they aren't subscribed

Issue #1840 resolved
Vitali Kunts created an issue

In the metadata subscription, I select Custom Labels and previously it retrieves all my custom labels not related to the managed package.

After one of the last updates, it started to retrieve custom labels with labels from the managed package and include them in the translations as well. Previously it didn’t work this way.

Comments (8)

  1. Vitali Kunts reporter

    I added entries for Metadata Retrieval and retrieved everything again. I got this log and analyzed from my side what we have there for custom labels. I see that there only we have selected subscription “Custom Labels” and nothing related to the Managed Package.

  2. Scott Wells repo owner

    Hi, Vitaly. I'd likely still need to see a debug log configured as described above. That will show me the exact request and response for this retrieval operation. I did just try to reproduce this by setting up a metadata subscription against an org with multiple installed managed packages that include custom labels that wildcards both the CustomLabel and CustomLabels metadata types, and only the unpackaged labels were retrieved. IC2 does include a filter to allow inclusion of only subscriber-editable metadata types from installed managed packages, and neither of those metadata types are considered subscriber-editable, so I'll be curious to see how/why packaged labels are being returned. It's certainly possible it's due to an IC2 bug, but it's also possible it's due to a bug in the CLI (if this is an SFDX-based project) or the API itself (which seems least likely to me, though).

    Please reproduce the behavior and send over the logs--privately to support@illuminatedcloud.com if preferred--and hopefully they'll show what's happening.

  3. Vitali Kunts reporter

    Hi, Scott. It’s interesting but in my another project (partial copy sandbox) it works fine. I tried to uninstall and install this Managed Package, the same. Tried to reproduce it in another sandbox it works fine. Really strange.

    If I’m able to do the same in any of my test environment I’ll send you logs and details.

  4. Scott Wells repo owner

    Yeah, I'm honestly surprised that it's happening. My guess--though I'd like to bear it out--is that the CLI is for some reason retrieving the packaged labels against that specific org. A log would show that for sure because it would show the manifest used when running the retrieval followed by the actual metadata returned by that retrieval. Feel free to send such a log over when you corner it a bit more.

  5. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  6. Log in to comment