Retrieve not retrieving components component, then deleting while push

Issue #1736 resolved
Michele Roncalli created an issue

Suppose dev1 create myCmp.cmp aura component and push it to the org.

Then dev2 retrieve the cmp and add, for example, myCmpHelper.js. Dev2 then push and both cmp and helper are on the org.

At this point, if dev1 perform a retrieve, helper file is not retrieved. Dev1 can’t get the helper and, when he push the component, the bundle without the helper is saved on the org, i.e. the helper is lost.

If dev1 perform a “retrieve for merge” is able to see the helper, but this is not bearable when you have a lot of components on the org.

In my work group, atm we are force to use this approach: when a dev add an helper/controller/css/renderer.. every other dev in the group is required to re-download the project.

I suppose the same happens with LWC components.

Maybe this is some limit in metadata API, but is there some sort of “fix” that could be implemented in IC2?

IC2 version: 2.0.8.4

Build: 20190920101315

IDE: WebStorm

Comments (5)

  1. Scott Wells repo owner

    Just so I understand, are you saying in the third step that when the component is retrieved by dev1, it does not include the helper file that was added by dev2? If so, I'd need to see a debug log. Aura components are retrieved at the bundle-level, not the individual bundle file-level, so I would expect the entire bundle to be retrieved. The same holds for LWC components.

    Please let me know if I've misunderstood the situation.

  2. Michele Roncalli reporter

    Yes, that’s correct. The simple “retrieve” in step2 do not add the helper in the bundle for dev1.

    That’s fine, I’m more than willing to provide you with a debug log. I see that I need to enable some logging level (http://www.illuminatedcloud.com/support/debuglogging) but, stupid question, where is the log placed at? How can I find it to post it here?

  3. Scott Wells repo owner

    Yes, just enable debug logging for metadata retrieval based on that linked document. Note that the leading #s are important and must be present. Then reproduce the behavior. The resulting log can be found using Help>Show Log in Explorer/Finder/Files and is called idea.log. You can either attach that here or, if you prefer, email it to support@illuminatedcloud.com referencing this issue number and I'll take a look.

  4. Scott Wells repo owner

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

  5. Log in to comment