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

Update Tests for displaying images #3506

Merged
merged 6 commits into from
Sep 17, 2024

Conversation

Lentumunai-Mark
Copy link
Contributor

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes [link to issue]

Engineer Checklist

  • I have written Unit tests for any new feature(s) and edge cases for bug fixes
  • I have added any strings visible on UI components to the strings.xml file
  • I have updated the CHANGELOG.md file for any notable changes to the codebase
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the project's style guide
  • I have built and run the FHIRCore app to verify my change fixes the issue and/or does not break the app
  • I have checked that this PR does NOT introduce breaking changes that require an update to Content and/or Configs? If it does add a sample here or a link to exactly what changes need to be made to the content.

Code Reviewer Checklist

  • I have verified Unit tests have been written for any new feature(s) and edge cases
  • I have verified any strings visible on UI components are in the strings.xml file
  • I have verifed the CHANGELOG.md file has any notable changes to the codebase
  • I have verified the solution has been implemented in a configurable and generic way for reuseable components
  • I have built and run the FHIRCore app to verify the change fixes the issue and/or does not break the app

Lentumunai-Mark and others added 6 commits September 17, 2024 16:36
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
@ellykits ellykits merged commit 513c805 into fix-register-filters Sep 17, 2024
@ellykits ellykits deleted the Update-loadImages-tests branch September 17, 2024 15:00
dubdabasoduba added a commit that referenced this pull request Sep 20, 2024
* Refactor register filter with REL tags

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update default pageSize to 15

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading locations on map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor data structure used on base resource search results

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Delete unnecessary code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor retrieving related resources

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Optimize data structures and perform parallel processing

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use recent version of rules engine library

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor implementation for decoding image resources to bitmap

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix related resource count on register

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading related resources

This fix ensures all the nested related resources are loaded too.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch related resource queries

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Map resources to RepositoryResourceData with async map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Make infinite scroll the default register behavior

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Disable automatic intialization of emoji2

A lot of memory was used in heap during the allocation. Emojis are not
used in the app so intializing them automatically is unnecessary.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* ⬆️ Update the map box and kujaku versions

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update tests for displaying images (#3506)

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Remove unutilized imports.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Resolve conflicts.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

---------

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor navigation to GeowidgetLauncher workflow

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Load map data in batches (#3511)

* Load map data in batches

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update observer

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Deactivate infinite scroll by default

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix failing tests

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch searching when list might be large or when count is not defined (#3456)

* Fetch search results in batches for when loading all

* Fix infinite loop for mocks with FhirEngine#search in tests

* Add comparable FhirEngine#search vs batchedSearch integration tests

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix Geowidget tests

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix spotlessCheck

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Add missing import

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix rules execution before map render

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* - Update android manifest to use exported values

* Prevent leaking map features via viewmodel

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Format code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Only search map features via keyboard action

We need to reload all features when the search term is reset

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Co-authored-by: Benjamin Mwalimu <dubdabasoduba@gmail.com>
Co-authored-by: Lentumunai Mark <90028422+Lentumunai-Mark@users.noreply.github.com>
Co-authored-by: L≡ZRS <12814349+LZRS@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Nov 19, 2024
* Test single transaction save for questionnaires

* Caching questionnaires and their SM

* spotless ran

* Fetch search results in batches for when loading all

* Fix infinite loop for mocks with FhirEngine#search in tests

* [WIP] FhirEngine search integration tests

* spotless ran

* updated tests

* WIP tests updated

* resolved feedback

* spotess ran

* Upgrade FHIR SDK depenencies ⬆️

* Upragde SDC library

* Replace JWT token parser library

* Fix CQL Content Test

* Fix unit tests ✅

* Refactor to remove Dispatch Provider

* Fix unit test ✅

* Refactor Knowledge Manager Resources Persistance

* Refactor CQL Content tests

* Fix AppSettingModel unit tests  ✅

* Refactor Cancel previous worflow to use native commands

* Upgrade CI API level to 34

* Clean up Translations

* Fix measure reporting

* Fix Workflow Configuration

* Fix QuestionnaireViewModel unit tests ✅

* Clean up WorkManager after running unit tests

* Remove skyscreamer test dependency

* Fix build 💚

* Clean up gradle dependencies configuration

* Move measure reporting evaluation to BG thread

* Fix MeasureReportRepositoryTest

* Fix MeasureReportRepositoryTest

* Fix MeasureReportViewModel unit tests ✅

Co-authored-by: Roy Munge <roywanyaga@gmail.com>

* Fix Measure Reporting

* Migrate Engine and Workflow libraries
- Fix Measure reporting
- Optimization PRs added

* Refactor register filter with REL tags

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update default pageSize to 15

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading locations on map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor data structure used on base resource search results

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Process saveCredentials in the background

* Refactor code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Delete unnecessary code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor retrieving related resources

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Optimize data structures and perform parallel processing

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use recent version of rules engine library

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor implementation for decoding image resources to bitmap

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix related resource count on register

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading related resources

This fix ensures all the nested related resources are loaded too.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch related resource queries

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Map resources to RepositoryResourceData with async map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Make infinite scroll the default register behavior

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Disable automatic intialization of emoji2

A lot of memory was used in heap during the allocation. Emojis are not
used in the app so intializing them automatically is unnecessary.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update tests for displaying images (#3506)

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Remove unutilized imports.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Resolve conflicts.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

---------

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor navigation to GeowidgetLauncher workflow

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use dipatcher IO to handle questionnaire submission

* Hotfix space_asterisk

* Upgrade engine to v1.0.0-preview14.1-SNAPSHOT

* Update infiniteScroll to not be default

* Update sdk versions

* Update integration Faker to fix error

* Revert upgrade on workflow and knowledge libs

* Upgrade FHIR SDK depenencies ⬆️

* Upragde SDC library

* Replace JWT token parser library

* Fix CQL Content Test

* Fix unit tests ✅

* Refactor to remove Dispatch Provider

* Fix unit test ✅

* Refactor Knowledge Manager Resources Persistance

* Refactor CQL Content tests

* Fix AppSettingModel unit tests  ✅

* Refactor Cancel previous worflow to use native commands

* Upgrade CI API level to 34

* Clean up Translations

* Fix measure reporting

* Fix Workflow Configuration

* Fix QuestionnaireViewModel unit tests ✅

* Clean up WorkManager after running unit tests

* Remove skyscreamer test dependency

* Fix build 💚

* Clean up gradle dependencies configuration

* Move measure reporting evaluation to BG thread

* Fix MeasureReportRepositoryTest

* Fix MeasureReportRepositoryTest

* Fix MeasureReportViewModel unit tests ✅

Co-authored-by: Roy Munge <roywanyaga@gmail.com>

* Fix Measure Reporting

* Migrate Engine and Workflow libraries
- Fix Measure reporting
- Optimization PRs added

* Update Workflow library
- Fix build
- Fix reporting NPE

* Fix evaluate Population Measure

* Update SDC snapshot to 14.1

* Remove unrecommended forced portrait format

* Refactor from using deprecated KnowledgeManager methods loadResources

* Clean up TOML catalog file

* Revert Knowledge Manager and Workflow Library Upgrades

* Display symbol instead of unicode

* Refactor usage of FHIR JSONParser to support concurrency

* Update FHIR SDK library versions

* Geowidget configuration
- Update Kujaku library version
- Revert offline map downloads configuration via Kujaku network change receiver

* Fix build 💚
- Fix code coverage reporting

* SDK Engine to RC3

* Fix build

* Fix failing ci tests

* Update data-capture lib to v1.1.0-preview14-rc2-SNAPSHOT

* Fix errors in tests

* 🐛 Readd the eusm mg and bi flavour

* 🔥 Remove unnecessary files

* 🍻 Removing double flavour defination

* Fix failing QuestionnaireViewModel tests

* rename content cache to util.helper.CacheHelper

* only 2 dots

* remove unused cache var

* use assign if null operator

* format fixes

* remove left over cache

* update signature to require resourcetype

* fix test call and remove dup test

* refactor with setup and teardown

* Revert "Caching questionnaires and their SM"

This reverts commit 8129afd.

* Clean up 🗑

* Clean up caching to reset to main brach state

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Co-authored-by: L≡ZRS <12814349+LZRS@users.noreply.github.com>
Co-authored-by: Aurangzaib Umer <aurangzaib.umer@venturedive.com>
Co-authored-by: aurangzaibumer <35099184+aurangzaibumer@users.noreply.github.com>
Co-authored-by: Martin Ndegwa <mndegwa@ona.io>
Co-authored-by: Roy Munge <roywanyaga@gmail.com>
Co-authored-by: Elly Kitoto <junkmailstoelly@gmail.com>
Co-authored-by: Simon Njoroge <snjoroge@ona.io>
Co-authored-by: Lentumunai Mark <90028422+Lentumunai-Mark@users.noreply.github.com>
Co-authored-by: fikrimilano <fikrimilano1@gmail.com>
Co-authored-by: Simon Kiarie <696759+qiarie@users.noreply.github.com>
Co-authored-by: Peter Lubell-Doughtie <peter@ona.io>
qiarie pushed a commit that referenced this pull request Jan 15, 2025
* Refactor register filter with REL tags

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update default pageSize to 15

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading locations on map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor data structure used on base resource search results

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Delete unnecessary code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor retrieving related resources

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Optimize data structures and perform parallel processing

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use recent version of rules engine library

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor implementation for decoding image resources to bitmap

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix related resource count on register

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading related resources

This fix ensures all the nested related resources are loaded too.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch related resource queries

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Map resources to RepositoryResourceData with async map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Make infinite scroll the default register behavior

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Disable automatic intialization of emoji2

A lot of memory was used in heap during the allocation. Emojis are not
used in the app so intializing them automatically is unnecessary.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* ⬆️ Update the map box and kujaku versions

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update tests for displaying images (#3506)

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Remove unutilized imports.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Resolve conflicts.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

---------

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor navigation to GeowidgetLauncher workflow

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Load map data in batches (#3511)

* Load map data in batches

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update observer

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Deactivate infinite scroll by default

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix failing tests

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch searching when list might be large or when count is not defined (#3456)

* Fetch search results in batches for when loading all

* Fix infinite loop for mocks with FhirEngine#search in tests

* Add comparable FhirEngine#search vs batchedSearch integration tests

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix Geowidget tests

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix spotlessCheck

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Add missing import

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix rules execution before map render

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* - Update android manifest to use exported values

* Prevent leaking map features via viewmodel

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Format code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Only search map features via keyboard action

We need to reload all features when the search term is reset

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Co-authored-by: Benjamin Mwalimu <dubdabasoduba@gmail.com>
Co-authored-by: Lentumunai Mark <90028422+Lentumunai-Mark@users.noreply.github.com>
Co-authored-by: L≡ZRS <12814349+LZRS@users.noreply.github.com>
qiarie added a commit that referenced this pull request Jan 15, 2025
* Test single transaction save for questionnaires

* Caching questionnaires and their SM

* spotless ran

* Fetch search results in batches for when loading all

* Fix infinite loop for mocks with FhirEngine#search in tests

* [WIP] FhirEngine search integration tests

* spotless ran

* updated tests

* WIP tests updated

* resolved feedback

* spotess ran

* Upgrade FHIR SDK depenencies ⬆️

* Upragde SDC library

* Replace JWT token parser library

* Fix CQL Content Test

* Fix unit tests ✅

* Refactor to remove Dispatch Provider

* Fix unit test ✅

* Refactor Knowledge Manager Resources Persistance

* Refactor CQL Content tests

* Fix AppSettingModel unit tests  ✅

* Refactor Cancel previous worflow to use native commands

* Upgrade CI API level to 34

* Clean up Translations

* Fix measure reporting

* Fix Workflow Configuration

* Fix QuestionnaireViewModel unit tests ✅

* Clean up WorkManager after running unit tests

* Remove skyscreamer test dependency

* Fix build 💚

* Clean up gradle dependencies configuration

* Move measure reporting evaluation to BG thread

* Fix MeasureReportRepositoryTest

* Fix MeasureReportRepositoryTest

* Fix MeasureReportViewModel unit tests ✅

Co-authored-by: Roy Munge <roywanyaga@gmail.com>

* Fix Measure Reporting

* Migrate Engine and Workflow libraries
- Fix Measure reporting
- Optimization PRs added

* Refactor register filter with REL tags

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update default pageSize to 15

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading locations on map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor data structure used on base resource search results

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Process saveCredentials in the background

* Refactor code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Delete unnecessary code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor retrieving related resources

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Optimize data structures and perform parallel processing

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use recent version of rules engine library

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor implementation for decoding image resources to bitmap

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix related resource count on register

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading related resources

This fix ensures all the nested related resources are loaded too.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch related resource queries

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Map resources to RepositoryResourceData with async map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Make infinite scroll the default register behavior

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Disable automatic intialization of emoji2

A lot of memory was used in heap during the allocation. Emojis are not
used in the app so intializing them automatically is unnecessary.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update tests for displaying images (#3506)

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Remove unutilized imports.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Resolve conflicts.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

---------

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor navigation to GeowidgetLauncher workflow

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use dipatcher IO to handle questionnaire submission

* Hotfix space_asterisk

* Upgrade engine to v1.0.0-preview14.1-SNAPSHOT

* Update infiniteScroll to not be default

* Update sdk versions

* Update integration Faker to fix error

* Revert upgrade on workflow and knowledge libs

* Upgrade FHIR SDK depenencies ⬆️

* Upragde SDC library

* Replace JWT token parser library

* Fix CQL Content Test

* Fix unit tests ✅

* Refactor to remove Dispatch Provider

* Fix unit test ✅

* Refactor Knowledge Manager Resources Persistance

* Refactor CQL Content tests

* Fix AppSettingModel unit tests  ✅

* Refactor Cancel previous worflow to use native commands

* Upgrade CI API level to 34

* Clean up Translations

* Fix measure reporting

* Fix Workflow Configuration

* Fix QuestionnaireViewModel unit tests ✅

* Clean up WorkManager after running unit tests

* Remove skyscreamer test dependency

* Fix build 💚

* Clean up gradle dependencies configuration

* Move measure reporting evaluation to BG thread

* Fix MeasureReportRepositoryTest

* Fix MeasureReportRepositoryTest

* Fix MeasureReportViewModel unit tests ✅

Co-authored-by: Roy Munge <roywanyaga@gmail.com>

* Fix Measure Reporting

* Migrate Engine and Workflow libraries
- Fix Measure reporting
- Optimization PRs added

* Update Workflow library
- Fix build
- Fix reporting NPE

* Fix evaluate Population Measure

* Update SDC snapshot to 14.1

* Remove unrecommended forced portrait format

* Refactor from using deprecated KnowledgeManager methods loadResources

* Clean up TOML catalog file

* Revert Knowledge Manager and Workflow Library Upgrades

* Display symbol instead of unicode

* Refactor usage of FHIR JSONParser to support concurrency

* Update FHIR SDK library versions

* Geowidget configuration
- Update Kujaku library version
- Revert offline map downloads configuration via Kujaku network change receiver

* Fix build 💚
- Fix code coverage reporting

* SDK Engine to RC3

* Fix build

* Fix failing ci tests

* Update data-capture lib to v1.1.0-preview14-rc2-SNAPSHOT

* Fix errors in tests

* 🐛 Readd the eusm mg and bi flavour

* 🔥 Remove unnecessary files

* 🍻 Removing double flavour defination

* Fix failing QuestionnaireViewModel tests

* rename content cache to util.helper.CacheHelper

* only 2 dots

* remove unused cache var

* use assign if null operator

* format fixes

* remove left over cache

* update signature to require resourcetype

* fix test call and remove dup test

* refactor with setup and teardown

* Revert "Caching questionnaires and their SM"

This reverts commit 10465dafe49feff2571552fea37985a777c57c63.

* Clean up 🗑

* Clean up caching to reset to main brach state

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Co-authored-by: L≡ZRS <12814349+LZRS@users.noreply.github.com>
Co-authored-by: Aurangzaib Umer <aurangzaib.umer@venturedive.com>
Co-authored-by: aurangzaibumer <35099184+aurangzaibumer@users.noreply.github.com>
Co-authored-by: Martin Ndegwa <mndegwa@ona.io>
Co-authored-by: Roy Munge <roywanyaga@gmail.com>
Co-authored-by: Elly Kitoto <junkmailstoelly@gmail.com>
Co-authored-by: Simon Njoroge <snjoroge@ona.io>
Co-authored-by: Lentumunai Mark <90028422+Lentumunai-Mark@users.noreply.github.com>
Co-authored-by: fikrimilano <fikrimilano1@gmail.com>
Co-authored-by: Simon Kiarie <696759+qiarie@users.noreply.github.com>
Co-authored-by: Peter Lubell-Doughtie <peter@ona.io>
asad-zaman pushed a commit to Mpower-social/fhircore-smart-health-bd that referenced this pull request Jan 20, 2025
* Refactor register filter with REL tags

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update default pageSize to 15

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading locations on map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor data structure used on base resource search results

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Delete unnecessary code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor retrieving related resources

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Optimize data structures and perform parallel processing

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use recent version of rules engine library

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor implementation for decoding image resources to bitmap

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix related resource count on register

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading related resources

This fix ensures all the nested related resources are loaded too.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch related resource queries

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Map resources to RepositoryResourceData with async map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Make infinite scroll the default register behavior

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Disable automatic intialization of emoji2

A lot of memory was used in heap during the allocation. Emojis are not
used in the app so intializing them automatically is unnecessary.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* ⬆️ Update the map box and kujaku versions

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update tests for displaying images (opensrp#3506)

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Remove unutilized imports.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Resolve conflicts.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

---------

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor navigation to GeowidgetLauncher workflow

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Load map data in batches (opensrp#3511)

* Load map data in batches

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update observer

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Deactivate infinite scroll by default

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix failing tests

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch searching when list might be large or when count is not defined (opensrp#3456)

* Fetch search results in batches for when loading all

* Fix infinite loop for mocks with FhirEngine#search in tests

* Add comparable FhirEngine#search vs batchedSearch integration tests

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix Geowidget tests

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix spotlessCheck

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Add missing import

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix rules execution before map render

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* - Update android manifest to use exported values

* Prevent leaking map features via viewmodel

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Format code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Only search map features via keyboard action

We need to reload all features when the search term is reset

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Co-authored-by: Benjamin Mwalimu <dubdabasoduba@gmail.com>
Co-authored-by: Lentumunai Mark <90028422+Lentumunai-Mark@users.noreply.github.com>
Co-authored-by: L≡ZRS <12814349+LZRS@users.noreply.github.com>
asad-zaman pushed a commit to Mpower-social/fhircore-smart-health-bd that referenced this pull request Jan 20, 2025
* Test single transaction save for questionnaires

* Caching questionnaires and their SM

* spotless ran

* Fetch search results in batches for when loading all

* Fix infinite loop for mocks with FhirEngine#search in tests

* [WIP] FhirEngine search integration tests

* spotless ran

* updated tests

* WIP tests updated

* resolved feedback

* spotess ran

* Upgrade FHIR SDK depenencies ⬆️

* Upragde SDC library

* Replace JWT token parser library

* Fix CQL Content Test

* Fix unit tests ✅

* Refactor to remove Dispatch Provider

* Fix unit test ✅

* Refactor Knowledge Manager Resources Persistance

* Refactor CQL Content tests

* Fix AppSettingModel unit tests  ✅

* Refactor Cancel previous worflow to use native commands

* Upgrade CI API level to 34

* Clean up Translations

* Fix measure reporting

* Fix Workflow Configuration

* Fix QuestionnaireViewModel unit tests ✅

* Clean up WorkManager after running unit tests

* Remove skyscreamer test dependency

* Fix build 💚

* Clean up gradle dependencies configuration

* Move measure reporting evaluation to BG thread

* Fix MeasureReportRepositoryTest

* Fix MeasureReportRepositoryTest

* Fix MeasureReportViewModel unit tests ✅

Co-authored-by: Roy Munge <roywanyaga@gmail.com>

* Fix Measure Reporting

* Migrate Engine and Workflow libraries
- Fix Measure reporting
- Optimization PRs added

* Refactor register filter with REL tags

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update default pageSize to 15

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading locations on map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor data structure used on base resource search results

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Process saveCredentials in the background

* Refactor code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Delete unnecessary code

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor retrieving related resources

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Optimize data structures and perform parallel processing

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use recent version of rules engine library

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor implementation for decoding image resources to bitmap

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix related resource count on register

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Fix loading related resources

This fix ensures all the nested related resources are loaded too.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Batch related resource queries

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Map resources to RepositoryResourceData with async map

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Make infinite scroll the default register behavior

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Disable automatic intialization of emoji2

A lot of memory was used in heap during the allocation. Emojis are not
used in the app so intializing them automatically is unnecessary.

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Update tests for displaying images (opensrp#3506)

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Remove unutilized imports.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Run spotlessApply

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Refactor load images tests for different views.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

* Resolve conflicts.

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>

---------

Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Refactor navigation to GeowidgetLauncher workflow

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>

* Use dipatcher IO to handle questionnaire submission

* Hotfix space_asterisk

* Upgrade engine to v1.0.0-preview14.1-SNAPSHOT

* Update infiniteScroll to not be default

* Update sdk versions

* Update integration Faker to fix error

* Revert upgrade on workflow and knowledge libs

* Upgrade FHIR SDK depenencies ⬆️

* Upragde SDC library

* Replace JWT token parser library

* Fix CQL Content Test

* Fix unit tests ✅

* Refactor to remove Dispatch Provider

* Fix unit test ✅

* Refactor Knowledge Manager Resources Persistance

* Refactor CQL Content tests

* Fix AppSettingModel unit tests  ✅

* Refactor Cancel previous worflow to use native commands

* Upgrade CI API level to 34

* Clean up Translations

* Fix measure reporting

* Fix Workflow Configuration

* Fix QuestionnaireViewModel unit tests ✅

* Clean up WorkManager after running unit tests

* Remove skyscreamer test dependency

* Fix build 💚

* Clean up gradle dependencies configuration

* Move measure reporting evaluation to BG thread

* Fix MeasureReportRepositoryTest

* Fix MeasureReportRepositoryTest

* Fix MeasureReportViewModel unit tests ✅

Co-authored-by: Roy Munge <roywanyaga@gmail.com>

* Fix Measure Reporting

* Migrate Engine and Workflow libraries
- Fix Measure reporting
- Optimization PRs added

* Update Workflow library
- Fix build
- Fix reporting NPE

* Fix evaluate Population Measure

* Update SDC snapshot to 14.1

* Remove unrecommended forced portrait format

* Refactor from using deprecated KnowledgeManager methods loadResources

* Clean up TOML catalog file

* Revert Knowledge Manager and Workflow Library Upgrades

* Display symbol instead of unicode

* Refactor usage of FHIR JSONParser to support concurrency

* Update FHIR SDK library versions

* Geowidget configuration
- Update Kujaku library version
- Revert offline map downloads configuration via Kujaku network change receiver

* Fix build 💚
- Fix code coverage reporting

* SDK Engine to RC3

* Fix build

* Fix failing ci tests

* Update data-capture lib to v1.1.0-preview14-rc2-SNAPSHOT

* Fix errors in tests

* 🐛 Readd the eusm mg and bi flavour

* 🔥 Remove unnecessary files

* 🍻 Removing double flavour defination

* Fix failing QuestionnaireViewModel tests

* rename content cache to util.helper.CacheHelper

* only 2 dots

* remove unused cache var

* use assign if null operator

* format fixes

* remove left over cache

* update signature to require resourcetype

* fix test call and remove dup test

* refactor with setup and teardown

* Revert "Caching questionnaires and their SM"

This reverts commit 8129afd.

* Clean up 🗑

* Clean up caching to reset to main brach state

---------

Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
Signed-off-by: Lentumunai-Mark <lentumunai.mark@students.jkuat.ac.ke>
Co-authored-by: L≡ZRS <12814349+LZRS@users.noreply.github.com>
Co-authored-by: Aurangzaib Umer <aurangzaib.umer@venturedive.com>
Co-authored-by: aurangzaibumer <35099184+aurangzaibumer@users.noreply.github.com>
Co-authored-by: Martin Ndegwa <mndegwa@ona.io>
Co-authored-by: Roy Munge <roywanyaga@gmail.com>
Co-authored-by: Elly Kitoto <junkmailstoelly@gmail.com>
Co-authored-by: Simon Njoroge <snjoroge@ona.io>
Co-authored-by: Lentumunai Mark <90028422+Lentumunai-Mark@users.noreply.github.com>
Co-authored-by: fikrimilano <fikrimilano1@gmail.com>
Co-authored-by: Simon Kiarie <696759+qiarie@users.noreply.github.com>
Co-authored-by: Peter Lubell-Doughtie <peter@ona.io>
(cherry picked from commit 512c010)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants