openspp-modules icon indicating copy to clipboard operation
openspp-modules copied to clipboard

[ADD] spp_change_request_event_data

Open shashikala1998 opened this issue 9 months ago • 3 comments

Why is this change needed?

When approving a change request,An event data to update

How was the change implemented?

  1. Inherit spp_event_data and spp_change_request modules and add event data page on notebook of change request. Once approve a change request data will be save on event data section on change request

New unit tests

N/A

Unit tests executed by the author

N/A

How to test manually

  1. In a fresh database install spp_event_data and spp_change_request modules or install spp_change_request_event_data then other dependency modules will install automatically.
  2. Define user roles to users
  3. Create a change request (ex: add farmer CR, update farmer CR)
  4. once approve the CR, system will automatically create event data on relevant change request Screenshot 2025-03-25 at 22 24 31

Related links

#714

shashikala1998 avatar Mar 25 '25 16:03 shashikala1998

Codecov Report

:x: Patch coverage is 43.75000% with 18 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 75.02%. Comparing base (aa7a32f) to head (5274200). :warning: Report is 60 commits behind head on 17.0.

Files with missing lines Patch % Lines
...change_request_event_data/models/change_request.py 28.00% 18 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             17.0     #786      +/-   ##
==========================================
- Coverage   75.07%   75.02%   -0.06%     
==========================================
  Files         730      734       +4     
  Lines       19285    19317      +32     
  Branches     2400     2404       +4     
==========================================
+ Hits        14479    14492      +13     
- Misses       4298     4316      +18     
- Partials      508      509       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Mar 25 '25 17:03 codecov[bot]

Setting this PR to draft since the requirements for this PR/ticket is not yet complete.

reichie020212 avatar Apr 07 '25 09:04 reichie020212

@shashikala1998 I will close this for now but will be re-opened when we have this covered in our future plans.

gonzalesedwin1123 avatar Aug 11 '25 06:08 gonzalesedwin1123