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

feat: [ANDROAPP-6780] Add Sdk to aggregate module #3968

Merged
merged 7 commits into from
Jan 30, 2025
Merged

Conversation

Balcan
Copy link
Collaborator

@Balcan Balcan commented Jan 27, 2025

Description

Please include a summary of the change and include the related jira issue if it exists.

[ jira issue ](https://dhis2.atlassian.net/browse/ANDROAPP-

Solution description

If this PR is a fix include a brief description on how the issue is solved.

Covered unit test cases

Describe the tests that you ran to verify your changes.

Where did you test this issue?

  • Smartphone Emulator
  • Tablet Emulator
  • Smartphone
  • Tablet

Which Android versions did you test this issue?

  • 4.4
  • 5.X - 6.X
  • 7.X
  • 8.X
  • 9.X - 10.X
  • 11.X - 13.X
  • Other

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

@Balcan Balcan force-pushed the ANDROAPP-6780 branch 2 times, most recently from ef8e646 to 160bac3 Compare January 29, 2025 14:27
aggregates/build.gradle.kts Outdated Show resolved Hide resolved
aggregates/build.gradle.kts Outdated Show resolved Hide resolved
.byAttributeOptionComboUid().eq(attrOptionComboUid)
.blockingGet().map {
it.toDataSetDetails()
}.first()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you are processing the list to then get the first, if the list were bigger than one, it will affect performance, why don't you get the first and the map it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this always returns a 1 item list. I've already asked the sdk to have a more straightfoward way to get the data set instance.

@Balcan Balcan requested review from xavimolloy and andresmr January 30, 2025 10:50
@andresmr andresmr merged commit 36071c8 into develop Jan 30, 2025
4 checks passed
@andresmr andresmr deleted the ANDROAPP-6780 branch January 30, 2025 16:35
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.

4 participants