PacificEMIS / pacific-emis-education-survey-tool

Pacific EMIS Education Survey Tool is the android app used for survey data collection integrated with the Pacific EMIS
GNU General Public License v3.0
1 stars 4 forks source link

Deleting the cloudfile should delete it on the tablet #24

Closed ghachey closed 1 year ago

ghachey commented 3 years ago

Is this scenario feasible. When a cloudfile is deleted from the cloud service account from the EMIS web app it would also delete it from the tablet(s) where it resides.

This would make file management in the cloud easier.

maratomega commented 2 years ago

Hi @ghachey do we need to notify the user? Or there no need to show this pop up Note/error/etc. Screenshot_20220804_092712_org pacific_emis surveys

ghachey commented 2 years ago

I do not understand this pop-up and how it relates to this feature. Can you explain further what you are asking please?

maratomega commented 2 years ago

This is related to the inability to delete the survey from the device that was deleted in the cloud because there is no Internet connection. The question is whether to notify the user or not

maratomega commented 2 years ago

CReate new screen Logs, to keep the record of deleted surveys

maratomega commented 2 years ago

Main screen Survey Logs with email Logs no email

The design of Logs screen is ready, please review the icon on the Main screen, and the actual Logs screen, we have prepared 2 versions, 1 with email, 2 without email, which one do you want to go with?

ghachey commented 2 years ago

@maratomega The screens look good. However, it would be good to have a column with the description of the action. For example, "Delete" or in the future will log other actions as well such as "Created", "Edited", etc. But as it is it does not convey enough details.

maratomega commented 2 years ago

he screens look good. However, it would be good to have a column with the description of the action. For example, "Delete" or in the future will log other actions as well such as "Created", "Edited", etc. But as it is it does not convey enough details.

Can you please point where you would like to see that Column?

Also, please clarify, do we need to show email or there no need for that?

ghachey commented 2 years ago

@maratomega Yes, the email (user) should be shown. Just the user who created the survey. Put the action as the last column.

maratomega commented 2 years ago

pdated Logs Updated Logs screen, with Deleted column

ghachey commented 2 years ago

That's a perfect started point.

maratomega commented 2 years ago

Hi @ghachey on our new Logs screen at the moment we use the Date of creation of the Survey, should it be changed to the date of the activity (when survey was deleted)? Plus, what do you think about adding the additional functionality to Logs screen - the ability to view the info about certain activity by tapping on it?

ghachey commented 2 years ago

@maratomega

ghachey commented 2 years ago

@maratomega The delete from cloud seems to work only in the Development mode. In Development mode I can go and delete a cloufile and it will successfully delete it from the tablet and add the Delete record to the Log. However, if I am in Production mode this does not happen.

In fact, I can even edit it on the tablet after deleting the cloudfile from the online web app. It would seem to remain unsynced on the tablet (and not appear yet in EMIS web app) but then on the tabley I can Force Sync and it will re-appear in the EMIS Web App.

Why is this working in Development mode and not in Production mode?

ghachey commented 1 year ago

@maratomega Has the requested been implemented? Seems not.

Screenshot 2022-11-22 145812

I do not see the new setting in the app nor is the value in the firebase used.

ghachey commented 1 year ago

This seems to be working in latest build.