-
Notifications
You must be signed in to change notification settings - Fork 0
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
Issues with measurement dates: date_measured column & EditDate column #62
Comments
Hi @llmorreale, I just opened the app and played with it a bit. If I click on a stem, the original date is listed in 'date_measured'. If I click edit, it does change the 'date_measured' to the now default date and time of the edit. I can do two things:
Again, for the census itself I think it is important to have these settings as-is so folks aren't having to enter the date for every stem. But, for conducting field edits I completely understand why this would be a problem. Would you like me to change those settings? |
Does this mean For the future, would there be a way to auto-populate |
@teixeirak Currently, yes because it is being calculated when the 'team' field is filled. Again, this was setup so during the census the technicians weren't having to enter it for every stem. At the time, this was most convenient and made sense, but I see how it is causing trouble. I can turn that off and make it editable. If I turn off the calculation, 'date_measured' would hold as the first date. The 'EditDate' field would reflect the most recent submission for that stem. I may also be able to have it work on the DBH field rather than the 'Team' field, but because the DBH is already filled, we may have the same issue. I either need to make some changes and do some testing, and/or also contact David and Milton. I had access to BCI's recensus group, so I was going to check their date field, but I no longer have access or it has been deleted since the census is finished. |
@jess-shue I totally understand and agree that the field crew should not have to fill out the date manually in the field! In the meantime regarding the completed census - on your end, is there a record of edits to the database? I agree with Krista that while possible to reconstruct the actual date of measurement from Github, the effort would be substantial. If there were a single log of edits, that would make it easier to fix the data. |
@llmorreale Currently, that functionality is not possible. At BCI, I'm pretty sure they entered it each time. I was being 'smart' and trying to reduce that issue, but one 'solution' sometimes creates other problems... Let me take a look for the list of edits. I'm sure it is recoverable/kept, but I have not accessed it previously. |
Forgot to get clarification: I can turn off the calculation for the population of the date. This would leave it 'as-is', but the 'EditDate' field would track any changes. If folks are in the field today, I can do that once they've returned to prevent any disruptions. |
@jess-shue I think turning that off for now would be great! No one is in the field, but we are occasionally updating the data on the iPad as we find errors that need to be fixed. Thanks very much! |
@llmorreale Thank you Luca, I have turned off the Arcade calculation code that was running in the background. I just checked it in the app, and when I opened up the editing section the date did not change. I have left the 'date_measured' field as read only, so it cannot be edited. The census measurement date should now remain when making edits to a tree. I am looking into how to download the change log for the previous edits. |
@llmorreale, FYI, I made a list of all the commits' SHA (using command Prompt: `git log --pretty=oneline`) so we can read the data at every stage and figure out a way to retrieve the actual measurement date. I started a script to do that, I am pushing it now even though I really just started it and it doesn't do anything yet. My download speed at home is too slow to work on this, so I'll wait until I am at work to continue.
There appears to be an issue where the date_measured column is being updated when errors are fixed/data is edited on the iPads instead of the EditDate being fixed. Because of this, there is not a fully reliable way to find the original measurement date within the census dataset at the moment.
@jess-shue I think this is an issue in the app that may need to be addressed before the SERC census starts.
For now, I will be addressing this problem for the 2023 census manuscript by replacing measurement dates of stems that have a measurement date after the edit date using the modal measurement date of the quadrat.
The text was updated successfully, but these errors were encountered: