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: add skip rounding option (DHIS2-15629) #424

Merged
merged 16 commits into from
Jan 30, 2024

Conversation

edoardo
Copy link
Member

@edoardo edoardo commented Aug 7, 2023

Implements DHIS2-15629


Key features

  1. add skipRounding option in Options modal

Description

The analytics request can already handle the rounding of numeric values via skipRounding parameter.
LL didn't have the option exposed in the Options modal which allows to control the parameter in the analytics request.


TODO

  • Cypress tests
  • Update docs
  • KFMT
  • Figure out if rounding of program indicators is broken

Screenshots

Option in the Options modal:
Screenshot 2023-08-07 at 16 04 41

Example with the rounding (default):
Screenshot 2023-08-07 at 16 05 02

Example without the rounding:
Screenshot 2023-08-07 at 16 05 24

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Aug 7, 2023

🚀 Deployed on https://pr-424--dhis2-line-listing.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify August 7, 2023 14:14 Inactive
@cypress
Copy link

cypress bot commented Aug 7, 2023

Passing run #2431 ↗︎

0 523 0 0 Flakiness 0

Details:

Merge 07207fe into 47ff288...
Project: line-listing-app Commit: c7302447a8 ℹ️
Status: Passed Duration: 15:21 💡
Started: Jan 30, 2024 11:08 AM Ended: Jan 30, 2024 11:23 AM

Review all test suite changes for PR #424 ↗︎

@dhis2-bot dhis2-bot temporarily deployed to netlify August 9, 2023 08:10 Inactive
@edoardo edoardo force-pushed the feat/add-skip-rounding-option branch from 3467ff5 to c71f03b Compare August 11, 2023 12:16
@dhis2-bot dhis2-bot temporarily deployed to netlify August 11, 2023 12:19 Inactive
@janhenrikoverland janhenrikoverland changed the title feat: add skip rounding option DHIS2-15629 feat: add skip rounding option (DHIS2-15629) Aug 28, 2023
@dhis2-bot dhis2-bot temporarily deployed to netlify August 28, 2023 11:44 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify September 11, 2023 11:39 Inactive
@martinkrulltott martinkrulltott added the Awaiting Core Release Should not be released / merged until a supported backend version has been released first label Sep 13, 2023
@edoardo edoardo requested a review from a team as a code owner November 23, 2023 12:16
@dhis2-bot dhis2-bot temporarily deployed to netlify November 23, 2023 12:23 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 29, 2023 14:53 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 29, 2023 15:08 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 29, 2023 15:30 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 30, 2023 14:16 Inactive
@edoardo edoardo force-pushed the feat/add-skip-rounding-option branch from 11c5d4e to be58e83 Compare November 30, 2023 14:18
@dhis2-bot dhis2-bot temporarily deployed to netlify November 30, 2023 14:20 Inactive
edoardo and others added 7 commits December 7, 2023 14:26
showHierarchy option should translate into a custom header, instead of a
analytics request parameter.
Other options like skipRounding instead should be treated like a normal
parameter passed to the analytics request.
For now it toggles on 2.41, but it can be adjusted if the backend fix is
going out on a patch release before 41.
Co-authored-by: Martin <martin@moid.se>
@edoardo edoardo force-pushed the feat/add-skip-rounding-option branch from be58e83 to b405a12 Compare December 7, 2023 13:26
@dhis2-bot dhis2-bot temporarily deployed to netlify December 7, 2023 13:29 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 8, 2023 10:35 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 4, 2024 14:16 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 17, 2024 09:27 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 29, 2024 08:42 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 30, 2024 10:42 Inactive
@janhenrikoverland janhenrikoverland merged commit 4ddbed9 into master Jan 30, 2024
28 checks passed
@janhenrikoverland janhenrikoverland deleted the feat/add-skip-rounding-option branch January 30, 2024 13:49
dhis2-bot added a commit that referenced this pull request Jan 30, 2024
# [100.15.0](v100.14.0...v100.15.0) (2024-01-30)

### Features

* add skip rounding option (DHIS2-15629) ([#424](#424)) ([4ddbed9](4ddbed9))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 100.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@@ -18,6 +18,11 @@ export const clickMenubarOptionsButton = () =>
.contains('Options')
.click()

export const openDataOptionsModal = () => {
clickMenubarOptionsButton()
return cy.getBySel('options-menu-list').contains('Data').click()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should use return here. Since Cypress doesn't actually return anything. I know this is probably just a copy paste from the code below (written by @HendrikThePendric originally) but still it should be avoided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analytics Team Testing Awaiting Core Release Should not be released / merged until a supported backend version has been released first on hold released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants