Comments (4)
Records are stored in the Ground database at the following path:
/projects/<PROJECT_ID>/records/<RECORD_ID>
Schema template:
{
featureId: ..., // Associated feature
featureTypeId: ..., // "layerId" in future versions.
formId: ..., // Associated observation form layout
responses: {
<FIELD_ID>: // Id of related field element in form
<RESPONSE> // Value(s) entered by user
...
}
created: <AUDIT_METADATA>,
lastModified: <AUDIT_METADATA>
}
<RESPONSE>
's type varies depending on the field type:
- String: Text values (e.g., "Pandas")
- float: Numeric value (e.g., 12.4)
- String array: Select one/many (e.g., ["A"] or ["A", "B"]). String values correspond to codes defined by user for each multiple choice option.
<AUDIT_METADATA> :=
user: {
id: ...,
displayName: ...,
email: ...
},
clientTimestamp: ..., // Time on client, timestamp datatype.
serverTimestamp: ..., // Time on server, timestamp datatype.
Creation/modified dates differs slightly from the current schema, but we are reimplementing these in the Android app now, so it's a good time to consolidate them.
Note that Record
will be renamed Observation
in future versions (#81).
TODO(#84): Add this to the Wiki.
from ground-platform.
Hi @gyarill!
Some notes from our recent design discussions:
- We'll use the URL for project and feature select, in the format /p/{projectId}/f/{featureId}
- We'll create a separate js module with the matchers for these paths to be used by the custom path change reducer, and by React routers
- The path reducer will put the selectedFeatureId into the Redux store as global state (note that selected != active as in activeProject..).
- The selected feature is already be in the Redux store thanks to this. It will then be accessible using the selectedProjectId.
- The connected Firestore HOC will bind to that id and load the relevant records for the selected feature.
Makes sense? Please feel free to reorganize as you see fit! Please send a PR to the branch feature-details
.
~gm
from ground-platform.
@hintzemichael Could you kindly past in the latest mock for this, with new "Add" button label/style? Let's discuss.
from ground-platform.
Moved URL update to separate issue #69
from ground-platform.
Related Issues (20)
- Load survey list using new structure
- Load survey and jobs using new structure
- [Export CSV] Order of columns does not reflect order of tasks
- [Create/edit survey] Describe what each task does in UI
- [Export CSV] Allow custom filename to be specified on download
- [Code health] Test build on Windows with GitBash and update docs
- [Create/edit survey] UX bug: font-family missing on "or" text
- [Create/edit survey] UX Bug - incorrect styling of "Add other" link
- [Create survey] Data loss warnings should not be shown in creation flow when deleting tasks or options
- [Submission list] Show graphic and message when an LOI has no submissions
- [Submission list] New submissions not appearing in submission list
- [Import GeoJSON] LOI properties not imported correctly HOT 1
- [Export CSV] "Other" text appears as "#ERR" in output HOT 2
- [Code health] Replace "number" with "numeric" in code in the context of questions and values
- [LOI Panel] Properties not shown on LOIs with properties HOT 1
- [Survey list] Clicking a survey brings user to the survey edit screen
- [Cloud Functions] Submission counts not updated on LOIs in db after new schema changes
- [LOI Editor] Importing LOIs for new unpublished job will end up having unassociated LOIs if user end up not publishing the job HOT 1
- [Code health] Delete code using old db schema
- [LOI Panel] Show properties widget in for LOIs with properties
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ground-platform.