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-6788] Implement new period dialog in filters #3998

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

xavimolloy
Copy link
Contributor

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

@xavimolloy xavimolloy marked this pull request as draft February 21, 2025 09:56
@xavimolloy xavimolloy marked this pull request as ready for review February 24, 2025 11:13
@xavimolloy xavimolloy force-pushed the ANDROAPP-6788-Implement-period-picker-in-filters branch from 45e0f37 to 82c1410 Compare February 25, 2025 06:52
enrollmentPeriodFilters.clear();
try {
enrollmentPeriodFilters.clear();
} catch (Exception e) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

which is the possible exception that we could receive here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed that sometimes when applying filters and removing them manually and setting others when navigating back it ocassionally caused an exception due to the list already being empty

Copy link
Collaborator

Choose a reason for hiding this comment

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

so it is a threading problem. If we wrap it we will have it forever and wouldn't be visible, right?.
Are there stack traces in Sentry?, can we reach to the source of the problem?. May be not in this task

@xavimolloy xavimolloy force-pushed the ANDROAPP-6788-Implement-period-picker-in-filters branch from 82c1410 to 51fca2c Compare February 27, 2025 09:00
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3 New issues
3 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

3 participants