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

Remove dependence on session column #77

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

njakobsen
Copy link
Member

@njakobsen njakobsen commented Mar 9, 2021

TODO

  • Ensure Checklist spidering does not include commit entries from commits that are in progress. Currently the contained scope will no longer avoid this problem since we now always ensure the commit_id is present. We could possibly add a new column committed and populate that column only when the commit is ended, similar to how we did for the commit_id.
  • Ensure the start operation gets the same commit_id as the rest of the records in the commit.

By setting a session variable before we start recording entries for a commit we can ensure that entries are added with the correct commit_id instead of having to set the commit_id at the end of the commit. This in turn avoids issues where unexpected program termination could leave the commit entries in a state where the commit was not completed and its commits did not have a commit_id, making it impossible to know whether they are part of a commit or not.

It appears that mimemagic v0.3.5 is no longer available.
@njakobsen njakobsen force-pushed the remove-dependence-on-session-column branch 4 times, most recently from e62a9ff to 4436604 Compare March 29, 2022 23:06
By setting a session variable before we start recording entries for a commit we can ensure that entries are added with the correct `commit_id` instead of having to set the `commit_id` at the end of the commit. This in turn avoids issues where unexpected program termination could leave the commit entries in a state where the commit was not completed and its commits did not have a `commit_id`, making it impossible to know whether they are part of a commit or not.

It was necessary to add a `capturing` column to simplify the exclusion of commit entries that are in the process of being captured. This eliminates complex querying when detecting autosyncable entries because we can just ignore any entries that are marked as capturing.
This may help with forensic analysis in the event of an error.
@njakobsen njakobsen force-pushed the remove-dependence-on-session-column branch from 4436604 to 6986a62 Compare March 29, 2022 23:13
@njakobsen njakobsen removed the wip label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant