Refreshing metadata causes validation
Hi, Every time I refresh metadata, a validation is run. That's not a big deal, unless it's done on production, because it causes all tests on production to run and that blocks all other deployments (unless someone else stops it, but that person won't know if it was run accidentaly or on purpose). In my opinion, validation shouldn't be run after refresh, because metadata on server is already compiled and should be valid.
Comments (6)
-
repo owner -
repo owner Kamil, I looked at this today. Do you happen to have Deploy on external change enabled? That's the only situation in which I can see this happening right now. Otherwise the changes from the external change (in this case, refresh) should be ignored. If you are seeing this happen without Deploy on external change enabled, let me know and we'll get some debug logging information to try to understand why.
-
repo owner - changed component to Deployment and Retrieval
-
assigned issue to
- changed version to 1.7.8.8
-
reporter Hi Scott, yes, it was because that option was enabled. I think it's enabled by default. Thank you for help :)
-
repo owner - changed status to resolved
Okay. That should be disabled by default, but you've had the plugin for quite a while so perhaps it changed across some upgrade unintentionally or something. Anyway, it sounds like disabling that addresses the issue, correct? If so, I'm going to resolve this. Please feel free to reopen if you observe the same behavior with that option disabled.
-
repo owner - changed component to Metadata Deployment/Retrieval/Removal
- Log in to comment
Your last statement is 100% correct. Validation should not occur in reaction to a refresh operation. I'll take a look at why this is happening. In the interim, the obvious workaround is to disable validation temporarily. Not even close to ideal, I know, but I understand your point about it causing issues again production environments. Thanks for filing and sorry for the issue...