App Skuidified, but now code coverage in managed package is an issue.

  • 2
  • Question
  • Updated 4 years ago
  • Answered
Have a managed package that used to use a lot of Apex and Visualforce. Since skuidifying the app, none of it is required any longer.

Problem is that code coverage is now at 69%. Is there an easy way to fix this? I would just as delete it after backing it up, but it's part of a managed package.

TBH I don't have any experience with code coverage.

Can I simply comment it out?

Also, I probably just need a quick 5-10 session on how to do this. It's likely that what needs to be done will be done multiple, so as soon as I've done once with assistance, I'll be good to go.

For the time being, we are not submitting a new package due to time constraints.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 years ago

  • 2
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
This is also rather urgent to get this resolved. :S
Photo of Greg Jarrett

Greg Jarrett

  • 3,496 Points 3k badge 2x thumb
Hey Pat, you can enable deletion of managed package components by logging a case with salesforce support - not everything can be deleted, and you need to be careful about the structure of your package, but you can delete triggers & classes if needed (assuming they are now completely unnecessary). Good overview of deleting managed components here - https://help.salesforce.com/HTViewHelpDoc?id=viewing_deleted_components.htm&language=en_US
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
We'll do. Not sure we have enough time to execute that. :/ Need to the package for show this weekend.
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,006 Points 5k badge 2x thumb
Pat,  

Ping me via back channel tomorrow and I will pair up with you and take a look.

Regards,
Irvin
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Var you = da man
Photo of Nash Zgonjanin

Nash Zgonjanin

  • 60 Points
How about option to uninstall managed package and go from there. 
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
This is an odd situation. I would do just that, but this is for an app that is already on the AppExchange. It was completely reliant on the visualforce and apex to meet many non-standard requirements.

The owners of the app then discovered Skuid and decided to essentially scrap everything they done, other than the schema, and build with Skuid.

Now the interesting part. They have a trade show they are going to and they want to release the new version for it. The show is next week. So, they are obligated to keep the apex and visualforce as orphans in order in order to not have to do another 6  week security review to submit a new app without any orphans.

Besides, it would be cruel to jettison the orphans so quick.

I did manage to make the necessary updates to the code with the help Irvin.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
I really like this line:

"discovered Skuid and decided to essentially scrap everything they done, other than the schema, and build with Skuid."

Cool....
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
some good english they're two "....scrap everything they done... "

Reminds me of a joke.

You know you're a redneck when you move the fridge and the grass is yellow underneath.