- edited description
Problem: I have nested modules in my project, but I cannot set the same connection I use for the main project on the modules. After selecting the same connection, I'm getting popup that connection could not be resolved.
Here's my use case:
Due to how Salesforce retrieves metadata (profiles, objects etc). and how inconvenient it is to manage that in repository, we are trying new approach.
In the main project I will only have certain metadata - Apex Classes, pages, aura components - metadata which is always retrieved as a whole and deploying this file would always override. Let's call this overriding metadata.
Then I have modules which contain CR specific metadata - profiles with certain fields, objects with certain fields etc. The point is, I can deploy this module as if it was a change set with all my changes regarding that CR and I could refresh this module from Dev sandbox and the module would still contain only metadata related to that CR.
How it looks like - let's say I have a client called JohnDoe which we have been maintaining for years and there's new CR to create a new community with some logic (There's little to no dependency with current code base, but the sandbox is the same and repository is the same). Our project would look like this:
- JohnDoeDev - root of the project / main module
-
- modules
-
-
- CommunityCR
-
-
-
-
- src
-
-
-
-
-
-
- classess
-
-
-
-
-
-
-
- pages
-
-
-
-
-
-
-
- profiles
-
-
-
-
-
-
-
- objects
-
-
-
-
-
-
-
- permissionsets
-
-
-
-
- src
-
-
- aura
-
-
-
- classess
-
-
-
- pages
-
-
-
- triggers
-