pathom3 icon indicating copy to clipboard operation
pathom3 copied to clipboard

:com.wsscode.pathom3.error/attribute-missing vs :com.wsscode.pathom3.error/missing-output

Open wilkerlucio opened this issue 3 years ago • 1 comments

Seems like those attributes conflict for the same purpose, must be checked and if it's the case, remove one of them, otherwise get docs explaining the distinction.

wilkerlucio avatar Aug 02 '22 18:08 wilkerlucio

There is no :com.wsscode.pathom3.error/missing-output in com.wsscode.pathom3.error-test

souenzzo avatar Aug 02 '22 21:08 souenzzo

I did some digging, and this is the current situation:

  • :com.wsscode.pathom3.error/missing-output is used when verifying the entity data (happens every time after the graph is ran), if some expected attribute is not present in the output entity, and you are running on strict mode, you will get an error with this cause. This is only case where you will see this error
  • :com.wsscode.pathom3.error/attribute-missing is used when Pathom is checking for errors in lenient mode, when some attribute is missing, this is the cause that gets used.

After those observations, I think it doesn't make sense to keep both, the question now is just which one to keep, in any case it's gonna be a breaking change for users looking for the one getting removed.

I'm leaning towards keeping :com.wsscode.pathom3.error/attribute-missing and remove :com.wsscode.pathom3.error/missing-output.

Gonna think a bit more about it, but I plan to make this change soon.

wilkerlucio avatar Jan 20 '23 22:01 wilkerlucio