Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate connection on Preprocess step (#227)
This *could* be fixed in the collectionspace-mapper (see below) but I am doing it here on the principle of saving the user time and effort. They shouldn't have to go through the preprocess step (which can take a few minutes) and click through to Processing and starting that step to find out their connection credentials will not let them complete a batch. The preprocessing step doesn't require a connection to the CollectionSpace instance, but it does make calls to methods on the collectionspace-mapper handler associated with the batch. On instantiation, the handler class attempts to set instance domain by calling client.domain, which fails if the client cannot authenticate. It probably shouldn't do that on instantiation, I will make a note to improve that later, but again, an unusable connection should be caught/reported to users ASAP by the importer, which means at the beginning of preprocessing (if not on batch creation).
- Loading branch information