I'm submitting a ...
Current behavior:
There is no such feature which shows uploading process
Expected behavior:
A box which would show progress of badge making
@fossasia/badgeyay-admin What do you think??
yes, we can have proggress bar 馃憤 but it can be handled in #210 as i don't think working on this UI would make sense
@vaibhavsingh97 After the UI is done.I would like to work on this..
And i am talking about progress as in the code execution..
@S2606 Here the need of logs for which process is unclear.
And where you are thinking to show the logs?
@S2606 How would you going to proceed?
@meets2tarun Right when the user clicks the upload button,the process of creating the .pdf and merging them can be shown.
@vaibhavsingh97 I can only start when new UI is created
The current upload process reloads the page. In order to show progress, we have to upload files asynchronously.
@jajodiaraghav I agree, presently merge_badges is executed as a separate process. Even if it is executed from main.py as a method still I am not sure how we can continuously pass state information(number of badges/pdfs generated) to the view. I guess only way is if we are able to decouple the file uploading process (ajax) or perhaps entire application. In that case we can use ajax requests to constantly poll the state of the server. What do you think? Should we decouple the entire application and go for REST approach?
@djmgit using REST approach is useful for integrating with open-event-orga-server as an API.
@djmgit @vaibhavsingh97 @ParthS007 Can i start work on this?
@S2606 How you are going to proceed? As of now, if the application is executed from main.py as a method still how you pass the state to the view continuously to show the logs?
One can start to work on the issue then we will track down its progress.
Why not we separate the frontend from the backend logic and that way if we build the frontend say in React then we can load up asynchronously without the need of reloading the entire page.
@S2606 any updates.
@Pravandan the front-end and backend is now seperated
@abishekvashok Actually this was last discussed long back and to be honest since the UI is now changed, do we need this?? If yes then once the new version is live, I will send a PR for it. What do you think?
Closing it then as this was for an old ui. Thank you.
Most helpful comment
@jajodiaraghav I agree, presently merge_badges is executed as a separate process. Even if it is executed from main.py as a method still I am not sure how we can continuously pass state information(number of badges/pdfs generated) to the view. I guess only way is if we are able to decouple the file uploading process (ajax) or perhaps entire application. In that case we can use ajax requests to constantly poll the state of the server. What do you think? Should we decouple the entire application and go for REST approach?