Closed stb-kslater3 closed 3 years ago
So this is wierd, but a moment ago I just hit Snapshot and it saved. Then I selected the newly saved Snapshot and it dowloaded. Maybe the Amazon CSP just took a few minutes to kick in.
Okay, the Snapshots are Officially Working, but the toast error is still an issue. But yeah, it would seem that the CSP was just taking a moment to kick in.
Fixed the toast error.
A couple things have come up when trying to use Snapshots.
One, thing that came up is that it had an issue when trying to save a snapshot. As a consequence of that. There is some other error when trying to Select a Saved Snapshot. And, it saves AdminSnapshot Objects, which raises a question. To handle that, first off, it has to make an AdminSnapshot Object because its Id is used to Save the file in S3, so after that when I tries to put it in S3, if it fails, then you should delete the Object in Salesforce. I just figured out this last question. I thought I wouldn't want to delete it if it saved previously, but every snapshot is a new save, so that is totally fine. So, delete the Object if the push to S3 fails. Then figure out the other 2 things.
Another thing has come up, anytime I do anything Snapshot related. I am getting an error, and my toast handler is not able to dispatch the toast message for some reason because it errors, saying that it cannot use dispatchEvent.