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

Farm season #730

Open
wants to merge 3 commits into
base: 17.0
Choose a base branch
from
Open

Farm season #730

wants to merge 3 commits into from

Conversation

reichie020212
Copy link
Member

@reichie020212 reichie020212 commented Jan 23, 2025

Why is this change needed?

To add seasons in the farm activities.

How was the change implemented?

Added a new model for farm seasons.

New unit tests

spp_farmer_registry_base/tests/test_farm_season.py

Unit tests executed by the author

spp_farmer_registry_base/tests/test_farm_season.py

How to test manually

  • Install spp_farmer_registry_default_ui module
  • Go to Registry -> Configuration -> Seasons
  • Create a new record and fill up the required fields.

Test 1

  • Create a new record
  • Make sure that you can create record if start date is less than the end date.
  • Make sure that you can activate the season without checking the Allow Overlap with Other Seasons field.

Test 2

  • Create a 2nd record
  • Try to use the same start date and end date as the 1st record created. Make sure that Allow Overlap with Other Seasons is not checked.
  • Click activate
  • Test if an error season overlaps shows.
  • Check the Allow Overlap with Other Seasons field.
  • Click activate
  • Test if the season is now activated.

Test 3

  • Go to Registry -> Group -> and enter a record.
  • In the Crop Agriculture Tab, Livestock Tab, or Aquaculture Tab, create a record and select an agricultural season.
  • Make sure that in the agriculturan season column that only the active season can be selected.

Related links

#657

Copy link
Contributor

@emjay0921 emjay0921 left a comment

Choose a reason for hiding this comment

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

Please fill the PR Description @reichie020212 .

@emjay0921 emjay0921 self-requested a review February 7, 2025 02:19
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.

[spp_farmer_registry_base] Add Agricultural Season Management
3 participants