-
Notifications
You must be signed in to change notification settings - Fork 92
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
Document odkData.js functions #260
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on these and good idea to divide up!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on these! @wbrunette should review for more technical details as well.
|
||
#. obtaining information about the runtime environment (e.g., Android OS version, etc.) | ||
#. obtaining information about the currently-selected locale. | ||
#. obtain the active user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obtaining here and next for consistent tense.
|
||
- :file:`system/tables/js/odkTables.js` | ||
|
||
This wrapper object mostly invokes `odkCommon` to perform its actions, but does call the `odkTablesIf` injected interface's one method to load the list view portion of the split-screen detail-with-list-view layout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove line 193. Simply state that odkTables.js is for controlling the tables app.
|
||
This wrapper object mostly invokes `odkCommon` to perform its actions, but does call the `odkTablesIf` injected interface's one method to load the list view portion of the split-screen detail-with-list-view layout. | ||
|
||
The Survey interface is invoked within the Javascript that implements the survey presentation and navigation logic and should not be directly called by form designers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You list the file location of the other 4 java script files, so it seems like to match, you should list the location like others for consistency.
|
||
:file:`system/tables/js/odkTables.js` | ||
|
||
It provides methods to open Tables generic web pages and list and detail views. These are generally just wrappers for calls to `odkCommon` to invoke the intents for those views. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a better summary of tables interface. I suggest just having it one place.
It would be better to be separated into separate pages per interface. |
@permission-error good progress on dividing out the data page! @wbrunette were there other pages needing splitting? |
@elmps2018 I think I need to split the three of them in the 3 pull requests. I just started with this, am working on others as well |
@permission-error great, please let us know when you are done with all of them so we can review them together. |
Tags @wbrunette @elmps2018
Fixes part of odk-x/tool-suite-X#149
I've spent the past three days working on this pull request. The odkData.js functions are quite many, and as a result, this PR is likely to be quite slow. To make the review process more manageable, I've decided to document only half of the functions for now.
In addition to this PR, I have two more similar PRs in progress, each with some issues that need addressing. Therefore, I plan to focus on addressing the feedback and issues for these three PRs first. Once those are in good shape, I'll continue documenting the remaining functions in odkData.js.