Closed se7entyse7en closed 5 years ago
@dpordomingo I completely agree with you. But I think that it has been already discussed somewhere the possibility of being fully error-resilient instead of just exiting at first error seen. Regarding the kallax thing, yes I've just gone with the fastest way given the deadline and given my complete ignorance with kallax, and applied the do and iterate approach in mind. And definitely with this table, we can already show something useful to the user.
Regarding the failed
counter I'm gonna take a look into it.
@carlosms in the end I also include the user
part here as it was straightforward to add it.
Also, now that we have a table storing the progress of the process, why not being failure resilient, and not stopping if we can try with a different document, org?
In my opinion these are not related, and it will be better if we just limit this PR to the table counters, and address error handling separately.
In my opinion these are not related, and it will be better if we just limit this PR to the table counters, and address error handling separately.
Agree.
Again: not trying to block this merge, which LGTM, so it'll be great if we move on, and iterate later. Just tried to document my concerns in the PR, in order to be considered in the future when improving the import process.
Imo there are some very sane concerns raised by David. Let's at least discuss them before merge. And better fix.
@dpordomingo I'm merging, but please feel free to open issues if you think that some points should be improved 👍
Closes #31.
This PR adds the
status
table as follows:So for each organization, we can track separately different steps so that we can have more fine-grained progress information. On the other hand, we can just group by org and sum to have overall progress. Unfortunately, with the current architecture, the total number of resources is not available, so if we want to show the overall progress it will just go up and down as the total number changes over time. On the contrary, every single row can show the correct progress or be in a
pending
state that is identified by thetotal
column beingNULL
.Then on UI we can use this table for charting the progress, or at first even just print this table as-is (maybe with just a little guide on the meaning).
Some parts are copy-pasted and could be refactored, I just tried to close the issue without very big thing to fix.