-
Notifications
You must be signed in to change notification settings - Fork 3
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
Clean up - data process api verification #59
Comments
Repository has been cleaned up. This version is running on Heroku. Please pay enough attention to all the features are working. This change is reversible if needed. Let me know if anything went wrong. |
@stlim0730 I'll be testing throughout the day |
@calo1 and @sohyeonlee, I think we should test api process. It's the only part we didn't see together yesterday. |
@stlim0730 @sohyeonlee : The test should go like this.
Then: Save the CSS and Html for data_point and data_polygon Rename or delete data_point and data_polygon Run Irene's tool through the admin again end |
@stlim0730 @sohyeonlee step 2 : getting the following error upon add new form data |
So, the error doesn't seem to look for missing stuff that I accidentally removed, which is good. For lookup: |
@sohyeonlee, is all I need to set |
@stlim0730 That is correct! |
Done
Then: Save the CSS and Html for data_point and data_polygon Rename or delete data_point and data_polygon Run Irene's tool through the admin again end |
@calo1 yes, force sync wouldn't work unless you have at least 15mins (16?) gap in between syncs! |
Great .. resuming testing |
What does
mean? |
when I temporarily sever the current |
Don't we want to test if it actually loses it or not, at some point? |
I can do that. |
Ok, force syncing is not bringing in the new data added on ONA. It might be a problem on my end with data entry ... ONA is showing the new record .. Carto is not. There is this 15 minute delay which slows down the testing ... I have a meeting for an hour and will resume trouble shooting then. In the meantime .. what does the "current" box mean on the admin panel? |
You may enter multiple entries of Form data (right?). The |
@sohyeonlee, @calo1 reported the data flow is not successful for now. Any suggestions? |
I have an idea.. I might not understand how the tool works ... Where is the dropbox folder? |
https://www.dropbox.com/
|
OK, Update:
however, the tool will be then adding new data to carto every time want to update the application .. not ideal.
|
Thank you for the report, @calo1. Sounds like a fixable bug. It seems that you ran the script on your command line. Did you? When do you not want to add new data if exist in updating the application (what does the update of the application mean, though)? -- sorry for so many questions. @sohyeonlee, could you confirm that the first report about add data above could be the possible behavior of the app? Also, can you parameterize the option of add data only when new data entries exist? I thought force sync runs on the admin page rather than the command line. Can we bring the optional add data command into the web UI? |
I did all of this through the admin, not the command line. Update of the application means .. there are new submissions on ONA but not on carto and not on farmview. Farmview needs those submissions to be updated. I wouldn't want to immediately add data because some data might be junk or sensitive .. It allows private editing via Ona before submission. |
The api_process should import to carto selectively ... let me put it this way: |
So, did you mean that the process is 1) you click add form data 2) check the data added, and 3) make force sync in the drop down? It sounds reasonable. When do you want to make force sync without adding new form data? @sohyeonlee, I see multiple current entries. Is this expected? |
Click add form data, go to dropbox and inspect geojson ... new data is added. check carto, two synced tables are now present the initial upload with say 9 rows and and a new entry with 10 rows. make force sync on the drop down .... but on the original form data entry (48). Both carto layers now have 10 rows and are up to date ... But synced tables cant be renamed .. so they must be made with the desired name |
update: sync tables can be renamed with SQL within carto, but then when you force sync that table, it becomes orphaned. For example I changed the sync table new_data_point_1 to "taek_rules" then I force synced through farmview dropdown ... taek rules still exists, but the sync function is broken |
I think @calo1 and @sohyeonlee should meet tomorrow unless we can deal with this issue by this evening.. Does this sound okay? |
Sounds good! I think in reality we are really close, but we need a reliable workflow to get new data into farmview. |
Hello, I am still outside and won't have time until tonight to take a look. So |
The issue is, running force sync doesn't add new data unless you first add a new table to carto ( vith add formdata). There is an unneeded redundancy. All that really needs to happen is to have api_process make the table names data_point and data_polygon. That would solve the problem temporarily. ... then the redundancy stuff could be addressed later. I think we can do this tonight with a backup thursday meeting |
Hmmm I am still not sure if I get exactly what the problem is. New data table |
It's @calo1's call, but I think it's good to address the redundancy issue. I see @sohyeonlee's concern in naming the tables, so It seems that what you want to do is 1) backup all the dataset on Carto and 2) test the process with the tables renamed. Do you think this will solve the redundancy issue? Forget about current field for now. |
This would not solve the redundancy issue .. but it would get the tool functional. |
I don't think so ...add form is adding a new table each time ..because of
carto naming conventions ..new data isn't passed to the old table. More in
the morning!
|
Merged and closed. |
We have lots of unnecessary -- also, not recommended to be distributed -- files in the repository. Actually, it's my fault that I didn't first share repo maintenance guideline with you, due to my trip and busy days at the beginning of this summer.
Also, issue #37 can't begin until this issue is resolved.
@sohyeonlee, @kbourque, @nutelIa, and @calo1, I may ask questions through this issue thread to learn what file is needed for what. I'm assigning myself for this issue.
The text was updated successfully, but these errors were encountered: