Skip to content

Conversation

@tnagorra
Copy link
Collaborator

@tnagorra tnagorra commented Oct 7, 2025

Depends on

Changes

  • Trying to publish an empty project will fail
    • Empty projects do not have tasks or groups
  • Disallow editing requesting organization after project has been published
  • Remove default value for "max task per user"
  • Allow updating "max task per user" even after project has been published
  • Add validation for "verification number" and "group size" in projects
  • Change default value for "group size" when creating a project (depends on project type)
  • Sync back "progress" and "contributor count" on firebase
  • Enable updates on paused, withdrawn and finished project
  • Update uniqueness constraint for project name

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • n+1 queries
  • flake8 issues
  • print
  • typos
  • unwanted comments

This PR contains valid:

  • tests

@tnagorra tnagorra requested review from susilnem and thenav56 October 7, 2025 01:56
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 93.73777% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.54%. Comparing base (d7e7061) to head (b60178b).
⚠️ Report is 21 commits behind head on develop.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/project/serializers.py 68.42% 10 Missing and 8 partials ⚠️
apps/project/exports/exports.py 76.19% 2 Missing and 3 partials ⚠️
apps/tutorial/serializers.py 63.63% 4 Missing ⚠️
project_types/base/project.py 50.00% 1 Missing and 1 partial ⚠️
project_types/street/tests/api_calls_test.py 98.98% 1 Missing and 1 partial ⚠️
apps/common/firebase/base.py 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #185      +/-   ##
===========================================
+ Coverage    84.80%   86.54%   +1.74%     
===========================================
  Files          200      204       +4     
  Lines        11326    11769     +443     
  Branches       968      995      +27     
===========================================
+ Hits          9605    10186     +581     
+ Misses        1354     1219     -135     
+ Partials       367      364       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@thenav56 thenav56 left a comment

Choose a reason for hiding this comment

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

LGTM

susilnem
susilnem previously approved these changes Oct 7, 2025
thenav56
thenav56 previously approved these changes Oct 8, 2025
Copy link
Member

@thenav56 thenav56 left a comment

Choose a reason for hiding this comment

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

LGTM

- enable editing "max tasks per user" on projects later
- add validation for group size
- add validation for verification number
- add default value for group size depending on project type
- use validation for "project name"
- new annoucement was not synced because a value already existed in firebase
@tnagorra tnagorra force-pushed the fix/validation-project branch from dc94359 to b60178b Compare October 8, 2025 10:18
@tnagorra tnagorra merged commit d162d4d into develop Oct 8, 2025
6 checks passed
@tnagorra tnagorra deleted the fix/validation-project branch October 8, 2025 11:11
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.

4 participants