Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle removed/absent data in update uploads #25

Open
jkeifer opened this issue Sep 6, 2015 · 1 comment
Open

How to handle removed/absent data in update uploads #25

jkeifer opened this issue Sep 6, 2015 · 1 comment
Labels

Comments

@jkeifer
Copy link
Member

jkeifer commented Sep 6, 2015

One option that has been discussed is allowing users to upload whole AOIs, geodatabases, and other such collections of data to be processed as an update/version. This idea is already discussed in issue #18, but one aspect that was not mentioned is what to do about data that has been removed or is otherwise absent from the update upload.

An easy assumption would be that any missing data has been deleted and should be marked as such in the ebagis database. Unfortunately, this scenario breaks down when we consider that an upload may only include portions of the data that are in the database due to selective downloads or the removal of unchanged data for more efficient uploads.

Similarly easy is the assumption that we cannot determine a user's intent merely by the fact that data is absent, and any absences should simply be ignored. I believe this assumption is much safer, but does not allow users with a "batch delete" method: if users want to mark data as removed in ebagis, it would have to be done on each data object individually though the API.

(This workflow may not be a problem, given that previous discussion has hinted at only allowing admin users to mark data as deleted, which would likely not be done using an uploaded update.)

Another option would be to include in the metadata in the upload specific flags for removed data. That is, if a user deletes data via the desktop bagis application, bagis will mark the metadata entry for that data as such. Upon processing the update upload, ebagis will read the metadata for any removed flags; only upon getting this confirmation of removal will ebagis mark data as removed. Otherwise absent data will be ignored.

I'm sure that other hybrid approaches to this problem exist. If after discussion, none of these three ideas adequately solve the problem, then we will have to brainstorm some other ideas.

@jkeifer
Copy link
Member Author

jkeifer commented Sep 6, 2015

I believe this discussion should actually be linked to #19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant