Remove unused references automatically in SS and SC.
1480
Views
21
Comments
New
Service Center

Hello, we have thousand of fake references between espaces, created by unused references, that are created wrong outdated espaces. 

Also are creating false positive architecture violations, and we suspect that can affect solution publish time.


We have more that 400 publish per day, so asking developers to click on remove unused references on each publish does not make any sense.


If we think that most of these references come from invisible actions, like copy paste between espaces, on add references with multiple other references, these should be and automatic action, on Service Studio publish, or on Service Center solution publish, like publish with full compilations one. 


In my opinion, in Service Center, its mandatory, specially when you have huge factory like ours with 1500 espaces, and you want to clean up legacy code.

Good idea Diogo!

Allow me to add, probably a warning with a count of unused references in the module publish process (SS/SC) will be very helpful, indeed.


Best regards,

ROM

2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Service Center

Isn't this feature a bit coupled to SS itself? 

With TrueChange taking action in making sure the model is still valid after removing unused references? How would it work in the server-side?

.Net factories have SS available locally... but you still have some Java ones out there :)

I think it can be understood from both sides, as SC, when publish, use SS to refresh references.

Just to add more information, one of the reasons why we have the references, is that the only way to debug an non UI espace, is creating one of this unused references from BL espace to the UI espace. One more Outsystems Service Studio limitations.

If this unused direct reference those not exists (if it is not direct), when I try to select the debug entry point on BL, I dont have the UI, so I cant debug it.

Merged this idea with 'Remove unused references/Dependencies automatically when we will publish an application using 1-click options or lifetime' (created on 16 Apr 2020 08:20:37 by JitendraYadav)

Remove unused references/Dependencies automatically when we will publish an application using 1-click options or lifetime/service center.


We can show in 1-Click option progess




This comment was:
- originally posted on idea 'Remove unused references/Dependencies automatically when we will publish an application using 1-click options or lifetime' (created on 16 Apr 2020 by JitendraYadav)
- merged to idea 'Remove unused references automatically in SS and SC.' on 17 Apr 2020 09:52:17 by Kilian Hekhuis
2016-04-21 20-09-55
J.
 
MVP

Only when it's a toggle or something similar.

When you are developing you want to keep "references" for widgets because you might add it or not.

if you lose the references everytime, it will also be annoying as hell.


Agreed J, especially when starting a new Module, you wouldn't want to lose everything after the first publish :)

Hi J. and Kilian,

Agree with you, that's the best option, both in SC and SS. 

Specially because adding references take a long time :)

If they add on SC with a toggle its more that enough.

Good idea for manutention to clean up legacy code.

Merged this idea with 'New option on Solution Publish | Ability to publish solution which auto remove the unused references.' (created on 07 Dec 2020 18:38:33 by assif_tiger)

Hi folks,
Pardon for the inappropriate title, it was tough for me to sum-up idea there.

It would be much helpful if we can have an option on Service Center under Solution Publish, Which will publish the modules & remove unused dependencies from the same.


For instance:


so when I check the option; it should remove the unused ref from the modules.

Thanks,
Assif



This comment was:
- originally posted on idea 'New option on Solution Publish | Ability to publish solution which auto remove the unused references.' (created on 07 Dec 2020 by assif_tiger)
- merged to idea 'Remove unused references automatically in SS and SC.' on 08 Dec 2020 14:37:46 by Justin James
Merged this idea with 'Remove unused references when publishing a solution in SC:' (created on 06 Oct 2021 14:45:02 by Telmo Oliveira)

When publishing a solution in the Service Center, it would be nice if the developer could remove all the unused references in the modules belonging to that solution.

Although we have already this feature in the SS, we are only able to apply it module by module.

Instead, when finishing a sprint the developer could publish the solution with this feature and thus ease the deployment in PRD environment.



This comment was:
- originally posted on idea 'Remove unused references when publishing a solution in SC:' (created on 06 Oct 2021 by Telmo Oliveira)
- merged to idea 'Remove unused references automatically in SS and SC.' on 07 Oct 2021 08:43:44 by Daniël Kuhlmann
Merged this idea with 'Remove SS and SC unused auto references' (created on 31 Jul 2023 06:32:25 by Chetan Khairnar)

Hello, we have thousand of fake references between espaces, created by unused references, that are created wrong outdated espaces. 

Also are creating false positive architecture violations, and we suspect that can affect solution publish time. If we think that most of these references come from invisible actions, these should be and automatic action, on Service Studio publish, or on Service Center solution publish, like publish with full compilations one. 


In my opinion, in Service Center, its mandatory, specially when you have huge factory like ours with 1500 espaces, and you want to clean up legacy code.


Changed the category to
References
Merged this idea with 'One-Click Dependency Optimization: Automated Unused Reference Detection and Removal in OutSystems' (created on 06 Oct 2024 10:16:23 by Kalaivanan)

To streamline the application development process in OutSystems, I propose a feature that automatically highlights or removes unused references and dependencies upon a one-click publish. This enhancement would focus on optimizing the development lifecycle by simplifying code management, improving system performance, and reducing technical debt.

When a developer clicks 'Publish,' the system will automatically detect any unused references and dependencies within the application.

  1. Highlight and Prompt: Unused items will be highlighted, prompting the user to either confirm their removal or review them before proceeding with the publish.
  2. Performance Impact: By eliminating unnecessary code and dependencies, the application will have reduced resource usage, leading to improved performance in both runtime and deployment speed.
  3. Error Reduction: With this feature, developers can minimize the risk of errors associated with outdated or irrelevant code, thus improving the overall stability of the application.


This solution would provide developers with an intuitive, streamlined process to maintain clean code, enhance system performance, and facilitate faster, error-free deployments in OutSystems.

Changed the category to
1CP