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

Add background-geopoint question type which exposes xforms-value-changed event with odk:setgeopoint action #726

Merged

Commits on Oct 19, 2024

  1. add new XLSForm question type called background-geopoint which saves …

    …an odk:setgeopoint action in response to an xforms-value-changed event
    RuthShryock authored and lindsay-stevens committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    157c429 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f502254 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f762598 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    389c31c View commit details
    Browse the repository at this point in the history
  5. consolidate validation for trigger values with validation for section…

    … name uniqueness in survey class
    RuthShryock authored and lindsay-stevens committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    ed213cd View commit details
    Browse the repository at this point in the history
  6. add more tests for background-geopoint questions when used with other…

    … setvalue question types and also when used in groups and repeats
    RuthShryock authored and lindsay-stevens committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    402c669 View commit details
    Browse the repository at this point in the history
  7. chg: improvements for the addition of background-geopoint

    - builder.py:
      - de-duplicate elif call to create_question_from_dict
      - use relevant class dictionaries directly instead of passing around
      - replace regex with strip() to avoid replacing whitespace everywhere
        in the question name (whitespace invalid in question names).
    - question.py:
      - avoid calling self.get_root() repeatedly as it iterates the form
        (up the tree from the current question).
      - remove `if` block in nest_set_nodes since it is only called when
        there are items to be processed.
    - question_types.py:
      - add validation functions for workbook_to_json. used external strings
        for re-use, easier testing, and (maybe someday) i18n.
    - xls2json.py:
      - move background-geopoint questions to workbook_to_json from
        survey.py and question.py to allow row references in errors
    - test_background_geopoint.py:
      - change the test class name to match unittest idiom / test discovery
      - remove `note` question from all tests since this is not relevant to
        the feature being tested or any specific edge cases of interest.
      - remove xpath expressions testing only the presence of groups, since
        these are tested already as part of the xpath to find the inputs
        within the groups.
      - readability improvements:
        - structured test method names
        - state the overall test case expectation in docstring
        - indicate the topic of the xpaths
        - wrap long xpaths and use single-quotes for predicates
        - shorten test fixture names and tidy up markdown formatting
    lindsay-stevens committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    705174b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f673525 View commit details
    Browse the repository at this point in the history