Skip to content

[#793] feat: update feasible value quantile from 90th to 80th#794

Merged
wayangalihpratama merged 1 commit intostagingfrom
feature/793-data-upload-change-feasible-values-to-be-80th-quantile
May 1, 2026
Merged

[#793] feat: update feasible value quantile from 90th to 80th#794
wayangalihpratama merged 1 commit intostagingfrom
feature/793-data-upload-change-feasible-values-to-be-80th-quantile

Conversation

@wayangalihpratama
Copy link
Copy Markdown
Contributor

@wayangalihpratama wayangalihpratama commented Apr 30, 2026

Summary

Updated the "feasible value" calculation logic across the stack to use the 80th quantile instead of the 90th. This change ensures that the targets displayed in Step 2 are more realistically achievable for farmer segments based on the uploaded data.

Key Changes

  • Backend: Updated case_import_process_confirmed_segmentation.py to calculate feasible_value using values.quantile(0.8).
  • Frontend: Updated the tooltip in EnterIncomeData.js to inform users that feasibility is now calculated as the 80th quantile.
  • Documentation: Synchronized CASE_MANAGEMENT_UX.md and updated GEMINI.md.

Verification

  • Unit Tests: Backend unit tests and a targeted mathematical test for quantile(0.8) passed.
  • Linting: Frontend linting (yarn lint) passed.
  • Full Check: Full backend check (./check.sh) passed.

@wayangalihpratama wayangalihpratama self-assigned this May 1, 2026
@wayangalihpratama wayangalihpratama linked an issue May 1, 2026 that may be closed by this pull request
@wayangalihpratama wayangalihpratama merged commit 17578f5 into staging May 1, 2026
1 check passed
@wayangalihpratama wayangalihpratama deleted the feature/793-data-upload-change-feasible-values-to-be-80th-quantile branch May 1, 2026 03:55
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.

[Data Upload] Change feasible values to be 80th quantile

1 participant