Generate warnings to remove unused dependencies
424
Views
6
Comments
New
1CP

Hi Team,

 As having more dependencies increases the size of your Module and increases the duration of 1-Click Publish.

It would be great if user get warnings in TrueChange to remove all unnecessary dependencies of module.

As of now i don't get any clue that no of unused dependency in module has increased to  a large number.

Thanks,

Preeti Kumari


That would be helpful, good idea!

I like the idea

I like this idea. Unused references require us more effort when investigating of modules for functional modifications and refactoring.

So, I like Tushar's idea "maybe remove the unused dependencies on 1-click publish" and its setting to turn off the feature, too.

Changed the category to
1CP
Merged this idea with 'Warning of unused dependencies when an application is deployed' (created on 17 Jun 2022 10:38:48 by David Castro)

As developers, after finishing the developments, we should always remove unused dependencies in each module that we have worked on. As this is a manual task, sometimes people miss this step before doing a deployment.

Impacts:

  1. Deploy unnecessary modules
  2. "False" architecture violations
  3. Heavy applications
  4. Time to analyze and confirm the need of each dependent module


Possible Solutions:

  1. Warnings of unused dependencies in the selected modules to be deployed
  2. Remove automatically all unused dependencies before the step to check dependent modules


Hi

Having this unnecessary references means that we have a bigger OSSYS_ESPACE_REFERENCE table and this could be a problem regarding publishing time and impact analysis.
One more reason to clean them automatically.